I'm having some trouble with postfix and SASL when using a MySQL backend on an Ubuntu server.
auth.log
Oct 12 13:25:21 lvps92-60-121-255 postfix/smtpd[28508]: sql auxprop plugin using mysql engine
Oct 12 13:25:21 lvps92-60-121-255 postfix/smtpd[28508]: SQL engine 'mysql' not supported
Oct 12 13:25:21 lvps92-60-121-255 postfix/smtpd[28508]: auxpropfunc error no mechanism available
Oct 12 13:25:21 lvps92-60-121-255 postfix/smtpd[28508]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sqlite
/etc/postfix/sasl/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login cram-md5 digest-md5
log_level: 7
allow_plaintext: true
auxprop_plugin: mysql
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: postfix
sql_passwd: (password)
sql_database: postfix
sql_select: select password from mailbox where username = '%u@%r'
Since the POP/IMAP configuration works and can connect I'm a bit stumped. The only references I can find to this error are trailing spaces at the end of each line, which I've checked for. I'm using Ubuntu. Does anyone have an idea of where I'm going wrong?
Edit: it looks like I'm missing an appropriate libmysql.so
(guessing the name) in /usr/lib/sasl2
(where there is a libsqlite.so and a libsql.so). How can I get this?