[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Postfix + SASL + Amavis-new + ClamAV + Courier-(imap, imap-ssl, maildrop) problems.



On Tuesday 16 November 2004 07:12 pm, Ralph Crongeyer wrote:
> Hi all,
> I just got my system up and running (went from Mandrake to Debian) and
> i'm having problems getting Postfix to authenticate with saslauthd.
> This is on a "Testing"/"Sarge" system.
> To check that sasl is working, I used the testsaslauthd command:
> testsaslauthd -u my-username -p my-password
> -f /var/spool/postfix/var/run/saslauthd/mux
> and I get:
> 0: OK "Success."
>
> However when I do this:
> perl -MMIME::Base64 -e 'print encode_base64
> ("my-username\0my-username\0my-password");'
>
> It returns this:
> dXNlcm5hbWUAdXNlcm5hbWUAcGFzc3dvcmQ=
>
> Then I:
> telnet server 25
> EHLO server
>
> Then issue this:
> AUTH PLAIN dXNlcm5hbWUAdXNlcm5hbWUAcGFzc3dvcmQ=
>
> I get:
> 535 Error: authentication failed
>
> Here's a snip of my mail.log file:
> ------------------------Begin Snip------------------------------
> Nov 16 15:57:56 server postfix/smtpd[11993]: starting TLS engine
> Nov 16 15:57:56 server postfix/smtpd[11993]: TLS engine: do need at least
> RSA _or_ DSA cert/key data
> Nov 16 15:57:56 server postfix/smtpd[11993]: connect from
> server.mydomain.com[192.168.10.100]
> Nov 16 15:58:56 server postfix/smtpd[11993]: warning: SASL authentication
> failure: Can only find author (no password)
> Nov 16 15:58:56 server postfix/smtpd[11993]: warning:
> server.mydomain.com[192.168.10.100]: SASL PLAIN authentication failed
> Nov 16 15:59:24 server postfix/smtpd[11993]: disconnect from
> server.mydomain.com[192.168.10.100]
> --------------------------End Snip--------------------------------
>
> I can't relay/send messages when logged in securely becayse I'm not being
> authentaced.
> I need some help getting this working.
>
> Thanks
> Ralph

I'm not sure what steps you have taken to get this setup, but I found 
http://lists.q-linux.com/pipermail/plug/2003-July/029503.html very helpful.

it looks like you have at least copied /var/run/saslauthd 
to /var/spool/postfix/var/run/.

Did you also then make /var/run/saslauthd a symlink to postfix's chroot?
Did you edit /etc/postfix/sasl/smtpd.conf to contain the authentication 
methods?
etc.

I hope this helps,
Josh



Reply to: