I am running NetBSD 4.0 and pkg installed cyrus
and cram/digest/login mechanisms.

I then roll my own postfix and link against these accordingly.


(I have postfix/sasl2 running fine under solaris, so I have the ideas down)


But on this machine, I cannot get postfix to auth:
I see the cram/digest exchange, but then this:

postfix/smtpd[24344]: warning: SASL authentication failure: Could not open db
postfix/smtpd[24344]: warning: SASL authentication failure: no secret in database

I am not running chrooted at the moment, so thats not it.
I do have smtpd.conf in /usr/pkg/lib/sasl2:

pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5

and ldd on postfix shows:

# ldd /usr/sbin/postfix
/usr/sbin/postfix:
        -lcrypt.0 => /lib/libcrypt.so.0
        -lcrypto.3 => /usr/lib/libcrypto.so.3
        -lssl.4 => /usr/lib/libssl.so.4
        -lresolv.1 => /usr/lib/libresolv.so.1
        -lsasl2.2 => /usr/pkg/lib/libsasl2.so.2
        -lc.12 => /usr/lib/libc.so.12

..I noticed that when I run /usr/pkg/sbin/saslpasswd2 it runs
w/o complaints but I cant find any file it creates and then sasldblistusers2 shows 'listusers failed'.

But, if I invoke saslpasswd2 -f /etc/sasldb - it will create the file
and then if ran against sasldblistusers2, it shows users.

I am not sure whats going on or where postfix might be looking for this auth file? - If I could tell postfix to look at /etc/sasldb2.db that would help too.

Any tips on how to further troubleshoot this would be appreciated.

-JD

Reply via email to