Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I try to setup postfix with smtp authentication. I want to use /etc/shadow as my realm

Unfortunately I get a "generic error" when i try to authenticate

# nc localhost 25
220 ESMTP Postfix
AUTH PLAIN _base_64_encoded_user_name_and_password_
535 5.7.8 Error: authentication failed: generic failure

In the mail.warn logfile i get the following entry

Oct  8 10:43:40 mail postfix/smtpd[1060]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Oct  8 10:43:40 mail postfix/smtpd[1060]: warning: SASL authentication failure: Password verification failed
Oct  8 10:43:40 mail postfix/smtpd[1060]: warning: _ip_: SASL PLAIN authentication failed: generic failure

However the sasl setup seems to be fine

$ testsaslauthd -u _user_ -p _pass_
0: OK "Success."

i added smtpd_sasl_auth_enable = yes to the

This is my smtpd.conf

$ cat /etc/postfix/sasl/smtpd.conf 
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN
saslauthd_path: /var/run/saslauthd/mux

I tried this conf with the last two commands and without.

I'm running debian stable.

How can postfix find and connect to the saslauthd server?


I'm not sure whether postfix runs in a chroot The looks like this:

saslauth is located in the sbin

$ which saslauthd

The EHLO has this response

EHLO _server_name_
250-SIZE 10240000
250 DSN
share|improve this question
Are you running Postfix in chroot? – quanta Oct 8 '11 at 11:20
Postfix is Running in a chroot. – Franz Bettag Oct 8 '11 at 11:33
So where is your saslauthd located? What does the EHLO show? – mailq Oct 8 '11 at 12:29
# which saslauthd /usr/sbin/saslauthd my looks like this: – user97262 Oct 12 '11 at 12:47
is /var/run/saslauthd/mux made available in the chroot somehow? If not, there might be your problem. – rackandboneman May 19 '12 at 22:23

Are you perhaps missing the symlink from /var/run/saslauthd to /var/spool/postfix/var/run/saslauthd?

From my working system:

root@mail:/etc/postfix/sasl# ls -la /var/run/saslauthd
lrwxrwxrwx 1 root root 36 Dec 31  2010 /var/run/saslauthd -> /var/spool/postfix/var/run/saslauthd
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.