OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: SASL authentication failure

From: Andreas Winkelmann (mlawinkelmann.de)
Date: Fri Oct 06 2006 - 16:42:25 CDT


Am Thursday 05 October 2006 09:52 schrieb Geoffrey Chisnall:

Do not Hijack foreign Threads.

> i have installed postfix and the relevant packages following this site
> http://flurdy.com/docs/postfix/#intro_reqs on ubuntu.
>
> when i try and authenticate to smtp i get this
>
> ==> /var/log/mail.info <==
> Oct 5 09:45:04 osiris postfix/smtpd[4729]: warning: SASL authentication
> failure: Password verification failed
> Oct 5 09:45:04 osiris postfix/smtpd[4729]: warning:
> unknown[10.100.250.10]: SASL PLAIN authentication failed
> Oct 5 09:45:04 osiris postfix/smtpd[4729]: warning:
> unknown[10.100.250.10]: SASL LOGIN authentication failed
>
> i have this section in my main.cf
>
> smtpd_sasl_auth_enable = yes
> broken_sasl_auth_clients = yes
> smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
> smtpd_sasl_security_options = noanonymous
> smtpd_sasl_local_domain =
>
> and then a sasl/smtpd.conf
>
> pwcheck_method: auxprop
> auxprop_plugin: sql

Is the sql-Auxprop Plugin installed?

> mech_list: plain login

Why only plain and login? Are the Passwords encrypted in your Database?

> sql_engine: mysql

Is the sql-Plugin build with mysql-Support?

> sql_hostnames: 127.0.0.1

Does the mysql Server listen on an inet-Interface?

> sql_user: postfix
> sql_passwd: postfx
> sql_database: postfixdb
> sql_select: select password from mailbox where username='%u' and active = 1

Do you see Queries in your MySQL-Log?

> p.s everything else works 100% except authentication to smtp.

--
        Andreas