saslauthd problems

Greg Groth ggroth99 at
Sun Feb 26 22:09:02 PST 2006

I am having great difficulty in getting SMTP-AUTH working on a mail server.  
I went through this not too long ago on another box, and was able to get it 
working (SSL is another story).  On this box, when I try to send an email, I 
get the following in maillog:

Feb 26 23:42:16 ns1 sm-mta[1783]: NOQUEUE: connect from []
Feb 26 23:42:16 ns1 sm-mta[1783]: AUTH: available mech=NTLM LOGIN ANONYMOUS 
Feb 26 23:42:16 ns1 sm-mta[1783]: k1R5gGCB001783: Milter: no active filter
Feb 26 23:42:17 ns1 sm-mta[1783]: k1R5gGCB001783: ruleset=check_rcpt, 
arg1=<ggroth at>, 
[], reject=550 5.7.1 <ggroth at>... Relaying 
denied. Proper authentication required.

I checked to see if saslauthd was running:
ns1# ps -aux | grep saslauthd
root     532  0.0  0.4  2824  1884  ??  Is    8:41PM   0:00.02 
/usr/local/sbin/saslauthd -a pam
root     533  0.0  0.3  2776  1604  ??  I     8:41PM   0:00.00 
/usr/local/sbin/saslauthd -a pam
root     534  0.0  0.3  2776  1604  ??  I     8:41PM   0:00.00 
/usr/local/sbin/saslauthd -a pam
root     535  0.0  0.3  2776  1604  ??  I     8:41PM   0:00.00 
/usr/local/sbin/saslauthd -a pam
root     536  0.0  0.3  2776  1604  ??  I     8:41PM   0:00.00 
/usr/local/sbin/saslauthd -a pam

The only other mention in any of the logs regarding sasl I could find was 

Feb 26 20:41:53 ns1 saslauthd[532]: detach_tty      : master pid is: 532
Feb 26 20:41:53 ns1 saslauthd[532]: ipc_init        : listening on socket: 

System is FreeBSD 6.0 using a fresh install.  System has latest ports of 
Sendmail, IMAP-UW, Cyrus-SASL2, Cyrus-SASL2-Auth

I can relay without a problem if I add my IP to the Sendmail Access db, but 
it won't work with SMTP-AUTH.

Sendmail was installed as part of the base install.  I added the following 
commands to /etc/make.conf:
SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2

I then ran the whole make buildworld, make kernel, etc. deal, then 
recompiled Sendmail as follows:

cd /usr/src/usr.sbin/sendmail
make clean
make depend
make install

Added the following to my mc file:


ran make cf
make install
make restart

I added saslauthd_enable="YES" to /etc/rc.conf, and it appears to be 
starting at boot.

I checked /usr/local/lib/sasl2/Sendmail.conf, and have the following:
pwcheck_method: saslauthd

I then went back through and checked all of the Makefiles and startup 
scripts as I saw a bug mentioned in the docs that said to check the library 
paths (if compiling from scratch), and everything seems to be pointing to 
where it should be.  I've gone through both systems and cannot find a 
difference in either the way they were compiled or configured, yet I'm at a 
standstill.  The only difference is that on the system that is giving me 
fits is I rebuilt the /etc/pwd.db and /etc/spwd.db from a backup of 
master.passwd using pwd_mkdb.  I checked the password dbs on both systems 
thinking I might have some kind of db compatability problem, both files on 
both systems came back as follows:

ns1# file /etc/pwd.db
/etc/pwd.db: Berkeley DB 1.85 (Hash, version 2, native byte-order)

ns1# file /etc/spwd.db
/etc/pwd.db: Berkeley DB 1.85 (Hash, version 2, native byte-order)

As far as I can figure out, saslauthd is configured to fall back to it's own 
database authentication scheme if other methods fail, and the "Milter: no 
active filter" error is probably it complaining that it can't find the 
database.  Why isn't it checking the password file?  Anyone have any ideas?  
I'm at my wit's end.

Greg Groth

Is your PC infected? Get a FREE online computer virus scan from McAfee® 

More information about the freebsd-questions mailing list