Subject: Postfix SASL Problem
To: None <netbsd-users@netbsd.org>
From: None <meberle@uni.de>
List: netbsd-users
Date: 08/02/2005 16:11:48
Hello netbsd-users,

i have a problem with postfix and SASL. The Postfix is Only use for deliver=
 Mails to my Provider. (Not SMTPD).
I use the correct binary (/usr/pkg/libexec/postfix). The Provider use AUTH =
PLAIN LOGIN.
Here is my config:

# uname -a
NetBSD gandalf.eberle.fqdn.fh-h.de 2.0 NetBSD 2.0 (GANDALF) #4: Mon Apr 11 =
08:30:54 CEST 2005  michaele@gandalf.eberle.fqdn.fh-h.de:/usr/src/sys/arch/=
i386/compile/GANDALF i386
# pkg_info|grep postfix
postfix-2.2.3       Postfix SMTP server and tools
# pkg_info|grep sasl
cyrus-sasl-2.1.20nb1 Simple Authentication and Security Layer
--------------------------------------
# postfconf |grep -i sasl
smtp_sasl_auth_enable =3D yes
smtp_sasl_password_maps =3D hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =3D
smtpd_sasl_auth_enable =3D no
smtpd_sasl_local_domain =3D
smtpd_sasl_security_options =3D noanonymous
-----------------------------------------
And here is the /var/log/maillog:

09:54:26 gandalf postfix/qmgr[9127]: 4B8A3556AF: from=3D<michaele@hansenet.=
de>, size=3D597, nrcpt=3D1 (queue active)
Aug  2 09:54:26 gandalf postfix/smtp[24906]: < hansemail.de[62.75.224.174]:=
 220 ESMTP b1gMTA Linux (v1.26 on localhost)
Aug  2 09:54:26 gandalf postfix/smtp[24906]: > hansemail.de[62.75.224.174]:=
 EHLO gandalf.eberle.fqdn.fh-h.de
Aug  2 09:54:26 gandalf postfix/smtp[24906]: < hansemail.de[62.75.224.174]:=
 250-localhost
Aug  2 09:54:26 gandalf postfix/smtp[24906]: < hansemail.de[62.75.224.174]:=
 250-PIPELINING
Aug  2 09:54:26 gandalf postfix/smtp[24906]: < hansemail.de[62.75.224.174]:=
 250-AUTH PLAIN LOGIN
Aug  2 09:54:26 gandalf postfix/smtp[24906]: < hansemail.de[62.75.224.174]:=
 250 8BITMIME
Aug  2 09:54:26 gandalf postfix/smtp[24906]: match_string: PLAIN ~? PLAIN
Aug  2 09:54:26 gandalf postfix/smtp[24906]: match_string: LOGIN ~? PLAIN
Aug  2 09:54:26 gandalf postfix/smtp[24906]: match_string: LOGIN ~? LOGIN
Aug  2 09:54:26 gandalf postfix/smtp[24906]: server features: 0x1027 size 0
Aug  2 09:54:26 gandalf postfix/smtp[24906]: Using ESMTP PIPELINING, TCP se=
nd buffer size is 4096
Aug  2 09:54:26 gandalf postfix/smtp[24906]: maps_find: smtp_sasl_passwd: h=
ash:/etc/postfix/sasl_passwd(0,100): hansemail.de =3D XXXXXXX:XXXX
Aug  2 09:54:26 gandalf postfix/smtp[24906]: smtp_sasl_passwd_lookup: host =
`hansemail.de' user `XXXXXXXX' pass `XXXX'
Aug  2 09:54:26 gandalf postfix/smtp[24906]: starting new SASL client
Aug  2 09:54:26 gandalf postfix/smtp[24906]: smtp_sasl_authenticate: hansem=
ail.de[62.75.224.174]: SASL mechanisms PLAIN LOGIN
Aug  2 09:54:26 gandalf postfix/smtp[24906]: warning: SASL authentication f=
ailure: No worthy mechs found
Aug  2 09:54:26 gandalf postfix/smtp[24906]: connect to subsystem private/d=
efer
Aug  2 09:54:26 gandalf postfix/smtp[24906]: send attr nrequest =3D 0
Aug  2 09:54:26 gandalf postfix/smtp[24906]: send attr flags =3D 0
Aug  2 09:54:26 gandalf postfix/smtp[24906]: send attr queue_id =3D 4B8A355=
6AF
Aug  2 09:54:26 gandalf postfix/smtp[24906]: send attr original_recipient =
=3D meberle@uni.de
Aug  2 09:54:26 gandalf postfix/smtp[24906]: send attr recipient =3D meberl=
e@uni.de
Aug  2 09:54:26 gandalf postfix/smtp[24906]: send attr offset =3D 117
Aug  2 09:54:26 gandalf postfix/smtp[24906]: send attr status =3D 4.0.0
Aug  2 09:54:26 gandalf postfix/smtp[24906]: send attr action =3D delayed
Aug  2 09:54:26 gandalf postfix/smtp[24906]: send attr reason =3D Authentic=
ation failed: cannot SASL authenticate to server hansemail.de[62.75.224.174=
]: no mech
anism available
Aug  2 09:54:26 gandalf postfix/smtp[24906]: private/defer socket: wanted a=
ttribute: status
Aug  2 09:54:26 gandalf postfix/smtp[24906]: input attribute name: status
Aug  2 09:54:26 gandalf postfix/smtp[24906]: input attribute value: 0
Aug  2 09:54:26 gandalf postfix/smtp[24906]: private/defer socket: wanted a=
ttribute: (list terminator)
Aug  2 09:54:26 gandalf postfix/smtp[24906]: input attribute name: (end)
Aug  2 09:54:26 gandalf postfix/smtp[24906]: 4B8A3556AF: to=3D<meberle@uni.=
de>, relay=3Dhansemail.de[62.75.224.174], delay=3D43136, status=3Ddeferred =
(Authentication
failed: cannot SASL authenticate to server hansemail.de[62.75.224.174]: no =
mechanism available)
Aug  2 09:54:26 gandalf postfix/smtp[24906]: flush_add: site uni.de id 4B8A=
3556AF
Aug  2 09:54:26 gandalf postfix/smtp[24906]: match_hostname: uni.de ~? gand=
alf.eberle.fqdn.fh-h.de
Aug  2 09:54:26 gandalf postfix/smtp[24906]: match_hostname: uni.de ~? loca=
lhost.eberle.fqdn.fh-h.de
Aug  2 09:54:26 gandalf postfix/smtp[24906]: match_hostname: uni.de ~? eber=
le.fqdn.fh-h.de
Aug  2 09:54:26 gandalf postfix/smtp[24906]: match_list_match: uni.de: no m=
atch
Aug  2 09:54:26 gandalf postfix/smtp[24906]: flush_add: site uni.de id 4B8A=
3556AF status 4
Aug  2 09:54:26 gandalf postfix/smtp[24906]: name_mask: resource
Aug  2 09:54:26 gandalf postfix/smtp[24906]: name_mask: software
Aug  2 09:54:26 gandalf postfix/smtp[24906]: disposing SASL state informati=
on


Michael



--=20
_______________________________________________
FreeMail und FreeSMS auf www.uni.de