PDA

View Full Version : Ubuntu + postfix + sasl trouble


twinspop
12th July 2006, 00:57
I followed the instructions here:

http://www.howtoforge.com/perfect_setup_ubuntu_6.06

But I continue to get the error messages:

(date) mail postfix/smtpd[13388]: TLS connection established from unknown[12.34.56.66]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
(date) mail postfix/smtpd[13388]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
(date) mail postfix/smtpd[13388]: warning: SASL authentication failure: Password verification failed
(date) mail postfix/smtpd[13388]: warning: unknown[12.34.56.66]: SASL PLAIN authentication failed
(date) mail postfix/smtpd[13388]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
(date) mail postfix/smtpd[13388]: warning: unknown[12.34.56.66]: SASL LOGIN authentication failed

Any tips MUCH appreciated.

Thanks,
Jon

falko
12th July 2006, 15:18
Please make sure your sasluthd configuration is exactly as in the tutorial.
What's the output of ps aux | grep saslauthd?

twinspop
12th July 2006, 18:33
Thanks for the help! Here's the output:

root 14357 0.0 0.0 6020 996 ? Ss Jul11 0:00 /usr/sbin/saslauthd -m /var/spool/postfix/var/run/saslauthd -r -a pam
root 14358 0.0 0.0 6020 596 ? S Jul11 0:00 /usr/sbin/saslauthd -m /var/spool/postfix/var/run/saslauthd -r -a pam
root 14359 0.0 0.0 6020 544 ? S Jul11 0:00 /usr/sbin/saslauthd -m /var/spool/postfix/var/run/saslauthd -r -a pam
root 14360 0.0 0.0 6020 544 ? S Jul11 0:00 /usr/sbin/saslauthd -m /var/spool/postfix/var/run/saslauthd -r -a pam
root 14361 0.0 0.0 6020 544 ? S Jul11 0:00 /usr/sbin/saslauthd -m /var/spool/postfix/var/run/saslauthd -r -a pam

falko
13th July 2006, 16:01
Did you do this:
mkdir -p /var/spool/postfix/var/run/saslauthd

and edit /etc/default/saslauthd and /etc/init.d/saslauthd as described here? http://www.howtoforge.com/perfect_setup_ubuntu_6.06_p5

twinspop
13th July 2006, 17:28
root@mail:~# ls -l /var/spool/postfix/var/run/saslauthd/
total 4
srwxrwxrwx 1 root root 0 2006-07-11 16:36 mux
-rw------- 1 root root 0 2006-07-11 16:36 mux.accept
-rw------- 1 root root 6 2006-07-11 16:36 saslauthd.pid

root@mail:~# cat /etc/default/saslauthd
# This needs to be uncommented before saslauthd will be run automatically
START=yes

PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"

# You must specify the authentication mechanisms you wish to use.
# This defaults to "pam" for PAM support, but may also include
# "shadow" or "sasldb", like this:
# MECHANISMS="pam shadow"

MECHANISMS="pam"

twinspop
13th July 2006, 17:30
and the pidfile:

root@mail:~# grep PIDFILE /etc/init.d/saslauthd
PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid"

falko
14th July 2006, 13:16
Please reboot your system and try again.