|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Alex Pita (newmail_at_softhome.net)
Date: Thu Oct 24 2002 - 10:30:07 CDT
Hi Douglas,
Some news , i dont know if good but...
I changed in /usr/local/lib/sasl2/smtpd.conf from
pwcheck_method: pam
now in
pwcheck_method: saslauthd
I tryed to send a message using smtp-auth and the mai was sent! I
afraid that not using auth.
I can read in logs: mysql plugin couldnt connect to any host
Does it mean that pam_mysql plugin is not authorized the connection????
[root
dinu root]# tail -f /var/log/messages
Oct 24 18:14:23 dinu saslauthd[5956]: START: saslauthd 2.1.9
Oct 24 18:14:23 dinu saslauthd[5968]: master PID is: 5968
Oct 24 18:14:23 dinu saslauthd[5968]: daemon started, listening on
/var/state/saslauthd/mux
Oct 24 18:14:30 dinu postfix/smtpd[5978]: mysql plugin couldnt connect
to any host
[root
dinu root]# tail -f /var/log/maillog
Oct 24 18:14:22 dinu postfix/postfix-script: starting the Postfix mail
system
Oct 24 18:14:23 dinu postfix/master[5922]: daemon started -- version
1.1.11-20021015
Oct 24 18:14:30 dinu postfix/smtpd[5978]: connect from
ns1.test.ro[192.168.0.2]
Oct 24 18:14:31 dinu postfix/smtpd[5978]: 40E154BFF:
client=ns1.test.ro[192.168.0.2], sasl_method=PLAIN, sasl_username=mimi.3323
Oct 24 18:14:31 dinu postfix/cleanup[5982]: 40E154BFF:
message-id=<200210241658.23017.mimi
test.ro>
Oct 24 18:14:31 dinu postfix/qmgr[5974]: 40E154BFF: from=<mimi
test.ro>,
size=465, nrcpt=1 (queue active)
Oct 24 18:14:32 dinu postfix/smtpd[5978]: disconnect from
ns1.test.ro[192.168.0.2]
Oct 24 18:14:32 dinu postfix/virtual[5988]: 40E154BFF:
to=<alex
test.ro>, relay=virtual, delay=1, status=sent (maildir)
Douglas Blood wrote:
>Sorry one more thing .. do you have pam_mysql.so on your system?
>----- Original Message -----
>From: "Alex Pita" <newmail
softhome.net>
>To: "Douglas Blood" <dblood
matraex.com>
>Cc: <postfix-users
postfix.org>
>Sent: Thursday, October 24, 2002 8:49 AM
>Subject: Re: Mysql+Cyrus-sasl2 sample for smtp-auth!
>
>
>>Hi Douglas,
>>
>>Many thanks for your reply but is not working. I do exact as you suggest
>>and see below the logs:
>>
>>All the time i can read: SASL authentication problem: unknown password
>>verifier!!!!!!!
>>
>>Oct 24 17:37:58 dinu postfix/postfix-script: starting the Postfix mail
>>system
>>Oct 24 17:37:58 dinu postfix/master[5275]: daemon started -- version
>>1.1.11-20021015
>>Oct 24 17:38:07 dinu postfix/smtpd[5329]: connect from
>>ns1.test.ro[192.168.0.2]
>>Oct 24 17:38:07 dinu postfix/smtpd[5329]: warning: SASL authentication
>>problem: unknown password verifier
>>Oct 24 17:38:07 dinu postfix/smtpd[5329]: warning: SASL authentication
>>failure: Password verification failed
>>Oct 24 17:38:07 dinu postfix/smtpd[5329]: warning:
>>ns1.test.ro[192.168.0.2]: SASL PLAIN authentication failed
>>Oct 24 17:38:08 dinu postfix/smtpd[5329]: disconnect from
>>ns1.test.ro[192.168.0.2]
>>
>>
>>Douglas Blood wrote:
>>
>>>I had this problem last week and finally got it solved.
>>>in your smtpd.conf file have the line: "pwcheck_method: pam"
>>>then in your /etc/pam.conf or /etc/pam.d/smtp have the following lines
>>>pam.conf:
>>>smtp auth optional pam_mysql.so user=testuser
>>>passwd=password db=mail host=localhost table=users usercolumn=username
>>>passwdcolumn=password
>>>smtp account required pam_mysql.so user=testuser
>>>
>passwd=password
>
>>>db=mail host=localhost table=users usercolumn=username
>>>
>passwdcolumn=password
>
>>>pam.d/smtp:
>>>auth optional pam_mysql.so user=testuser passwd=password
>>>db=mail host=localhost table=users usercolumn=username
>>>
>passwdcolumn=password
>
>>>account required pam_mysql.so user=testuser passwd=password
>>>db=mail host=localhost table=users usercolumn=username
>>>
>passwdcolumn=password
>
>>>The entries in pam are for plain text password fields. You can change
>>>
>what
>
>>>type of encryption you use with
>>>crypt(0) -- Used to decide to use MySQL's PASSWORD() function or crypt()
>>>0 = No encryption. Passwords in database in plaintext. NOT recommended!
>>>1 = Use crypt
>>>2 = Use MySQL PASSWORD() function
>>>
>>>Hope this helps
>>>
>>>----- Original Message -----
>>>From: "Jussi Silvennoinen" <jussi_postfix
silvennoinen.net>
>>>To: <postfix-users
postfix.org>
>>>Sent: Thursday, October 24, 2002 7:11 AM
>>>Subject: Re: Mysql+Cyrus-sasl2 sample for smtp-auth!
>>>
>>>
>>>>On Thu, 24 Oct 2002, Alex Pita wrote:
>>>>
>>>>>Hello Jussi,
>>>>>
>>>>>Thanks for your reply.
>>>>>Acording to cyrus-sasl doc, in my /usr/lib/sasl2/smtpd.conf must be
>>>>>
>>>writted
>>>
>>>>>pwcheck_method: auxprop
>>>>>
>>>>>But auxprop is not supported by default. So is needed some aditiona
>>>>>patch ( i found one on freshmeat but for 2.1.2 version of cyrus-sasl2,
>>>>>named mysql_ldapauxprop.patch)
>>>>>
>>>>>Can anybody tell me where i can download the new one?
>>>>>
>>>>>Regards,
>>>>>Alex
>>>>>
>>>>>
>>>>>Jussi Silvennoinen wrote:
>>>>>
>>>>>>On Thu, 24 Oct 2002, Alex Pita wrote:
>>>>>>
>>>>>>>Hello postfix experts,
>>>>>>>
>>>>>>>Can anybody gime me a little help to setup smtp-auth using
>>>>>>>cyrus-sasl2+mysql?
>>>>>>>I saw in cyrus docs that this job is done using auxprop method
>>>>>>>(saslauthd -a auxprop) and also small description about how to setup
>>>>>>>user, pass to connect to mysql database!
>>>>>>>The problem is that i can't undetstand where must me specified this
>>>>>>>
>>>options!
>>>
>>>>>>/usr/lib/sasl2/smtpd.conf
>>>>>>
>>>>>>Or where ever you installed the auth-mechs.
>>>>>>
>>>>You might wanna try searching for 'cyrus sasl download' on google?
>>>>First link is the right one.
>>>>v2.1.7 onwards there is native support for mysql.
>>>>
>>>>--
>>>>
>>>> Jussi
>>>>
>>>>-
>>>>To unsubscribe, send mail to majordomo
postfix.org with content
>>>>(not subject): unsubscribe postfix-users
>>>>
>>>-
>>>To unsubscribe, send mail to majordomo
postfix.org with content
>>>(not subject): unsubscribe postfix-users
>>>
>>
>>
>>-
>>To unsubscribe, send mail to majordomo
postfix.org with content
>>(not subject): unsubscribe postfix-users
>>
>
>
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]