OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: cyrus-sasl + mysql auth isn't working

From: Aaron Gallagher (habnabitgmail.com)
Date: Tue Nov 29 2005 - 02:11:21 CST


On Nov 29, 2005, at 12:03 AM, Patrick Ben Koetter wrote:
> As you can see, all mechanisms available are listed. This indicates
> that
> Postfix does not read smtpd.conf at the current location you've put
> it. You
> can iterate by trial and error, moving smtpd.conf to /etc/sasl2,
> /usr/lib/sasl2, /var/lib/sasl2 and telnet as above to see if the
> output
> changes. If you keep "mech_list: plain login" in smtpd.conf you
> will know the
> correct location for smtpd.conf as soon as you get this output:
>
> 220 ferazelhosting.net ESMTP Postfix
> EHLO there
> 250-ferazelhosting.net
> 250-PIPELINING
> 250-SIZE 10240000
> 250-VRFY
> 250-ETRN
> 250-AUTH LOGIN PLAIN
> 250-AUTH=LOGIN PLAIN
> 250 8BITMIME
>
> The only thing that still might need some fixing then might be to
> tell libsasl
> in Postfix where to find the saslauthd socket. But let's see to
> that later.

Okay, the smtpd.conf file seems to be working in /usr/lib/sasl2. This
is what I get now:

220 ferazelhosting.net ESMTP Postfix
EHLO there
250-ferazelhosting.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME

I think you're right in that postfix can't find the socket. I see
this in my logfile now:
Nov 29 00:10:18 mazer postfix/smtpd[4489]: warning: SASL
authentication failure: cannot connect to saslauthd server: No such
file or directory

Aaron Gallagher
<habnabitgmail.com>