HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   SASL authentication failure (http://www.howtoforge.com/forums/showthread.php?t=42468)

clart001 7th January 2010 16:23

SASL authentication failure
 
I set up an Ubuntu Jaunty Jackalope (Ubuntu 9.04) vps server with ISPconfig 2 following this tutorial http://www.howtoforge.com/perfect-se...04-ispconfig-2

All seems to work quite allright but now I run into a problem regarding postfix and smtp.

When I try to send an email I get:

mail.log
Code:

postfix/smtpd[6517]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
postfix/smtpd[6517]: warning: host250-228-dynamic.17-87-r.retail.telecomitalia.it[87.17.228.250]: SASL LOGIN authentication failed: generic failure
postfix/smtpd[6517]: disconnect from host250-228-dynamic.17-87-r.retail.telecomitalia.it[87.17.228.250]

Could anyone help me?

falko 8th January 2010 14:54

Please try this:
Code:

adduser postfix sasl
/etc/init.d/postfix restart
/etc/init.d/saslauthd start


clart001 8th January 2010 17:04

First of all, thank you Falko.
I have done how you suggested me but it seems not work again.

Quote:

Originally Posted by falko (Post 215513)
Please try this:
Code:

adduser postfix sasl
/etc/init.d/postfix restart
/etc/init.d/saslauthd start


Any other suggests?

falko 9th January 2010 11:22

What's the output of
Code:

ps aux | grep saslauthd
?

clart001 9th January 2010 11:25

Quote:

Originally Posted by falko (Post 215589)
What's the output of
Code:

ps aux | grep saslauthd
?


Code:

root@vps314345:~# ps aux | grep saslauthd
root      5348  0.0  0.1  8416  872 ?        Ss  Jan07  0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      5351  0.0  0.0  8416  508 ?        S    Jan07  0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      5352  0.0  0.0  8416  424 ?        S    Jan07  0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      5353  0.0  0.0  8416  424 ?        S    Jan07  0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
root      5356  0.0  0.0  8416  424 ?        S    Jan07  0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
root    10077  0.0  0.1  3336  780 pts/1    R+  11:23  0:00 grep saslauthd


falko 10th January 2010 17:32

What's in /etc/postfix/sasl/smtpd.conf and /etc/default/saslauthd?

clart001 11th January 2010 11:01

Quote:

Originally Posted by falko (Post 215705)
What's in /etc/postfix/sasl/smtpd.conf and /etc/default/saslauthd?


/etc/postfix/sasl/smtpd.conf
Code:

pwcheck_method: saslauthd
mech_list: plain login

/etc/default/saslauthd

Code:

START=yes

DESC="SASL Authentication Daemon"

NAME="saslauthd"

MECHANISMS="pam"

MECH_OPTIONS=""
THREADS=5

OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"


falko 12th January 2010 14:34

What's the output of
Code:

ls -la /var/spool/postfix/var/run/saslauthd/
?

What virtualization technique do you use (OpenVZ/Virtuozzo, Xen, KVM, VMware, etc.)?

clart001 12th January 2010 16:08

Quote:

Originally Posted by falko (Post 215970)
What's the output of
Code:

ls -la /var/spool/postfix/var/run/saslauthd/
?

Code:

root@vps314345:~# ls -la /var/spool/postfix/var/run/saslauthd/
totale 940
drwx--x--- 2 root sasl  4096 2010-01-07 15:02 .
drwxr-xr-x 3 root root  4096 2009-11-02 19:47 ..
-rw------- 1 root root      0 2010-01-07 15:02 cache.flock
-rw------- 1 root root 945152 2010-01-07 15:02 cache.mmap
srwxrwxrwx 1 root root      0 2010-01-07 15:02 mux
-rw------- 1 root root      0 2010-01-07 15:02 mux.accept
-rw------- 1 root root      5 2010-01-07 15:02 saslauthd.pid

Quote:

What virtualization technique do you use (OpenVZ/Virtuozzo, Xen, KVM, VMware, etc.)?
We use Xen

falko 13th January 2010 14:05

Looks ok. Are you absolutely sure that the postfix user is a member of the sasl group? What's the output of
Code:

grep sasl /etc/group
?


All times are GMT +2. The time now is 13:24.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.