Tuesday, July 3, 2012

solution to postfix saslauthd problem

If you're using sasluath daemon to authentice postfix users and receive always a user & pass error, first check /var/log/maillog to see if the solution applies to. Mine was:

warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory

I've fixed that by adding the following option to /etc/sysconfig/saslauthd :

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



then running the following commands :


mkdir -p /var/spool/postfix/var/run/saslauthd
service saslauthd restart

UPDATE 12 July 2012 : With the above commands the saslauthd problem get fixed but I've got another problem : Mails never send through the server with the following errors :
postfix/qmgr: from=<root@domain.com>, size=421, nrcpt=1 (queue active)
postfix/smtp: fatal: unknown service: smtp/tcp
postfix/qmgr: warning: private/smtp socket: malformed response
postfix/qmgr: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
postfix/master: warning: process /usr/libexec/postfix/smtp pid 29443 exit status 1
postfix/master: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
postfix/error: to=<someemail@gmail.com>, relay=none, delay=1.1, delays=0.1/1/0/0.03, dsn=4.3.0, status=deferred (unknown mail transport error)

I've checked the /etc/postfix/master.cf , one process was chrooted !
smtp      unix  -       -       -       -       -       smtp

I've changed it to :
smtp      unix  -       -       n       -       -       smtp

then restarted postfix and saslauthd and now everything is working fine !

stack : centos 6.2 + virtualmin

No comments:

Post a Comment

How to export Apple Health / Google Fit training activity to TCX format

  I own a Xiaomi Smart Band 7, and recently, my Mi Fitness app stopped syncing running activities to Strava. Mi Fitness supports syncing dat...