I've patched cyrus-sasl-2.1.20 with the patch at http://www.viperstrike.com/~lopaka/sysadmin/cyrus-sasl-mysql-encrypt/ + some minor modifications. The changes I made were to change strlcpy to strncpy, comment out the crypt_set_format lines(the TSL version of crypt autodetects the salt type) and add -lcrypt to the build options.

It seems to handle the comparison fine but when I get a successful login the smptd process handling the connection dies. Entering an incorrect password does not cause this problem. I'm using postfix-2.1.5 and mysql-4.1.7. The passwords are encrypted using md5. Here is the error I get in my log file:

Feb 10 14:17:13 oak postfix/master[8629]: warning: process /usr/lib/postfix/smtpd pid 12333 exit status 127

Below is my sasl config for postfix:

pwcheck_method: auxprop
auxprop_plugin: sql
sql_engine: mysql
mech_list: PLAIN LOGIN
sql_hostnames: localhost
sql_user: postfix
sql_passwd: -removed-
sql_database: postfix
sql_select: SELECT password FROM mailbox WHERE username = '[EMAIL PROTECTED]'

Any ideas anyone has would be greatly appreciated.

Thanks,
Oscar


_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to