[WBEL-users] Postfix sasl mylsq : SASL PLAIN authentication failed

Casper Pedersen cpedersen@c-note.dk
Sat, 16 Oct 2004 14:09:37 +0200


--=-BSj2+uwg99nrMwSG/Dtf
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Christian,

Did you do a 'services saslauthd restart'?

Regards/Casper


On Sat, 2004-10-16 at 13:58, Christian Huegel wrote:
> Casper Pedersen wrote:
> > Hi Christian,
> >=20
> > I had some problem to get it to work (pam authentication), and I found
> > that I had to add: "saslauthd_version: 2" to smtpd.conf to get postfix
> > to work.
> >=20
> > Regards/Casper
> >=20
> > On Sat, 2004-10-16 at 01:53, Christian Huegel wrote:
> >=20
> >>Hello everybody,
> >>
> >>
> >>i=C2=B4m trying to set up postfix with sasl AUTH against an mysql-datab=
ase=20
> >>and when i connect from evolution i get the following message in mail.l=
og :
> >>	SASL PLAIN authentication failed
> >>
> >>
> >>Here are the configs i=C2=B4m using:
> >>/usr/lib/sasl2/smtpd.conf:
> >>
> >>  log_level: 3
> >>pwcheck_method: auxprop
> >>auxprop_plugin: sql
> >>mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
> >>sql_engine: mysql
> >>sql_hostnames: localhost
> >>sql_user: vmailuser
> >>sql_passwd: *****
> >>sql_database: mail
> >>sql_select: select clear from postfix_users where email=3D'%u@%r'
> >>sql_usessl: no
> >>
> >>/etc/postfix/main.cf:
> >>
> >>-----snip--------
> >>smtpd_sasl_auth_enable =3D yes
> >>smtpd_sasl_security_options =3D noanonymous
> >>smtpd_sasl_local_domain =3D $myhostname
> >>broken_sasl_auth_clients =3D yes
> >>smtpd_recipient_restrictions =3D permit_sasl_authenticated,
> >>reject_unauth_destination
> >>alias_maps =3D mysql:/etc/postfix/mysql-aliases.cf
> >>relocated_maps =3D mysql:/etc/postfix/mysql-relocated.cf
> >>smtpd_helo_required =3D yes
> >>disable_vrfy_command =3D yes
> >>smtpd_data_restrictions =3D reject_unauth_pipelining
> >>smtpd_etrn_restrictions =3D reject
> >>
> >># SSL Part
> >>
> >>smtpd_use_tls =3D yes
> >>smtp_use_tls =3D yes
> >>smtpd_tls_auth_only =3D no
> >>smtp_tls_note_starttls_offer =3D yes
> >>smtpd_tls_key_file =3D /etc/postfix/ssl/smtpd.key
> >>smtpd_tls_cert_file =3D /etc/postfix/ssl/smtpd.crt
> >>smtpd_tls_CAfile =3D /etc/postfix/ssl/cacert.pem
> >>smtpd_tls_loglevel =3D 1
> >>smtpd_tls_received_header =3D yes
> >>smtpd_tls_session_cache_timeout =3D 3600s
> >>tls_random_source =3D dev:/dev/urandom
> >>-------snap------------
> >>
> >>telnet localhost 25
> >>
> >>ehlo localhost
> >>250-mail.postfix.de
> >>250-PIPELINING
> >>250-SIZE 10240000
> >>250-ETRN
> >>250-STARTTLS
> >>250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5
> >>250-AUTH=3DPLAIN LOGIN DIGEST-MD5 CRAM-MD5
> >>250 8BITMIME
> >>
> >>The imapd-ssl authentication with the same username and passwort works=20
> >>fine with mysql.
> >>
> >>
> >>
> >>Am i missing something?
> >>
> >>Thanks, i guess i goo to sleep now: trying about 5 hours to get this=20
> >>working and i=C2=B4m kind of frustated.
> >>
> >>Best regards
> >>
> >>Christian
>=20
>=20
> Hi Casper,
>=20
> i tried adding the option: saslauthd_version: 2 to=20
> /usr/lib/sasl2/smtpd.conf as yu suggested but it didn=C2=B4t work ;(
>=20
> Thx anyway
>=20
> Regard
>=20
> Christian
--=20
GPG Public key is available from: http://www.keyserver.net/
Fingerprint =3D 56ED 74A4 7B00 20E2 B493 0C1A 6B4E BF8F A086 FE57


--=-BSj2+uwg99nrMwSG/Dtf
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBBcQ+Ba06/j6CG/lcRAvkLAJ9tp/KBwPLto59vfID8pi0+Ee99XQCgoEsV
bU5IdvCk8dbuMOOSrulw4Dc=
=0qa0
-----END PGP SIGNATURE-----

--=-BSj2+uwg99nrMwSG/Dtf--