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

My sendmail config is like so:


We are running "saslauthd"

root 32102 1 0 81 0 - 1128 fcntl_ 11:37 ? 00:00:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam

When I saslauth with account name "cccc" everything works OK. But when I saslauth with account name "" it fails.

saslauthd[32103]: do_auth : auth failure: [user=cccc] [service=smtp] [] [mech=pam] [reason=PAM auth error]

What's the problem?

share|improve this question

migrated from Apr 8 '11 at 9:47

This question came from our site for professional and enthusiast programmers.

Your saslauthd is using pam as the backend for authentication.

Mostly on a system the smtp/imap check is just a lookup of you system account.

And there are no system accounts like So pam cannot find such a user and so rejecting authentication.

Take a look in /etc/pam.d/smtp

If you really want using pam, which I would suggest you, you can use a mysql table for your authentication or other fancy things. Take a look at pam-mysql e.g.

Either use a apropriate setup for you pam or use sasldb as a backend for sasalauthd

saslauthd -a sasldb

Then you can use the userland tool saslpasswd2 for setting up your accounts.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.