I'm trying to setup a postfix server with cyrus-sasl and a MySQL database backend for everything (on FC4).
I was able to successfully get postfix installed with MySQL support (from source RPM).
I was able to successfully (I think) get cyrus-sasl installed with MySQL support (from source RPM as well). These are the packages installed: cyrus-sasl-2.1.20-5 cyrus-sasl-sql-2.1.20-5 cyrus-sasl-md5-2.1.20-5 cyrus-sasl-devel-2.1.20-5 cyrus-sasl-plain-2.1.20-5
I have Postfix recognizing cyrus as I'm getting a correct response from EHLO, but am unable to get it to authenticate a user.
I've just noticed I've got two smtpd.conf files. One located in /usr/lib/sasl2/smtpd.conf and the other at /usr/lib/sasl/smtpd.conf.
Here are the contents of those files:
[sasl2/stmpd.conf]
[sasl/smtpd.conf]
The database has the user logon name stored in dbmail_users.userid as plain text. The password is stored in dmail_users.passwd as an MD5 hash.
I know the username and password I'm typing in are correct - but it doesn't authenticate.
Anyone know what might be going on? Also what are the options "%u@%r" in the select statement - I've been doing some searching and I can't find what they mean, and what are the other options (in case that's what's wrong)?
I was able to successfully get postfix installed with MySQL support (from source RPM).
I was able to successfully (I think) get cyrus-sasl installed with MySQL support (from source RPM as well). These are the packages installed: cyrus-sasl-2.1.20-5 cyrus-sasl-sql-2.1.20-5 cyrus-sasl-md5-2.1.20-5 cyrus-sasl-devel-2.1.20-5 cyrus-sasl-plain-2.1.20-5
I have Postfix recognizing cyrus as I'm getting a correct response from EHLO, but am unable to get it to authenticate a user.
I've just noticed I've got two smtpd.conf files. One located in /usr/lib/sasl2/smtpd.conf and the other at /usr/lib/sasl/smtpd.conf.
Here are the contents of those files:
[sasl2/stmpd.conf]
Code:
pwcheck_method: auxprop
auxprop_plugin: sql
sql_engine: mysql
mech_list: DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
sql_hostnames: localhost
sql_user: <user>
sql_passwd: <password>
sql_database: <dbase>
sql_verbose: yes
sql_select: SELECT passwd FROM dbmail_users WHERE userid='%u@%r'
[sasl/smtpd.conf]
Code:
pwcheck_method: saslauthd
saslauthd_version: 2
The database has the user logon name stored in dbmail_users.userid as plain text. The password is stored in dmail_users.passwd as an MD5 hash.
I know the username and password I'm typing in are correct - but it doesn't authenticate.
Anyone know what might be going on? Also what are the options "%u@%r" in the select statement - I've been doing some searching and I can't find what they mean, and what are the other options (in case that's what's wrong)?