Gurunandan R. Bhat a écrit :
> Hi,
> 
>     I am configuring Virtual domains and mailboxes on CentOS 5.5 using
> MySQL for data maps and SASL for SMTP Auth.  As far as I can say, I have
> followed The Book of Postfix.
> 
>     Dovecot and Postfix both use the same tables for authentication and
> POP authentication works perfectly. However any attempt at SMTP
> authentication gives the following (SASL?) error:
> 
> May  7 01:02:23 Server1 postfix/smtpd[11760]: auxpropfunc error invalid
> parameter supplied
> May  7 01:02:23 Server1 postfix/smtpd[11760]: sql_select option missing
> May  7 01:02:23 Server1 postfix/smtpd[11760]: auxpropfunc error no
> mechanism available
> 
> and then followed by:
> 
> May  7 01:02:24 Server1 saslauthd[11666]: do_auth: auth failure:
> [user=XXXX] [service=smtp][realm=XXXXX] [mech=pam][reason=PAM auth error]
> 
> My /usr/lib/sasl2/smtpd.conf reads:
> 
> log_level: 8
> pwcheck_method: auxprop
> mech_list: PLAIN LOGIN
> auxprop_plugin: sql
> sql_verbose: yes
> sql_engine: mysql
> sql_hostnames: localhost
> sql_user: XXXXXX
> sql_passwd: XXXXXX
> sql_database: postfix
> sql_select: select password from mailbox where username = '%...@%r
> <mailto:u...@%r>'
> 
> I would really appreciate your help in figuring whats wrong.
> 

maybe it looks for an smtpd.conf in another place. unfortunately, this
is system dependent. you can check this by intentionally putting a
syntax error in the file.

if your postfix version supports dovecot sasl, then use it. It is far
easier than cyrus-sasl (and it's also more secure since less code is
linked against postfix).

Reply via email to