Postfix-SMTP: authentication failed

hellbringer

Active Member
Ich weiß nicht mehr weiter. Hab heute meine MySQL Datenbank von Postfix umgestellt (weil ich jetzt postfixadmin verwende) und seitdem kommt beim Mail versenden immer folgende Fehlermeldung im maillog:

postfix/smtpd[910]: warning: hellbringer.mshome.net[192.168.0.1]: SASL LOGIN authentication failed

Hier ist meine smtpd.conf:

pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login cram-md5 digest-md5
sql_engine: mysql
sql_hostnames: localhost
sql_user:
-- cut --
sql_passwd:
-- cut --
sql_database: postfix
sql_select: select password from mailbox where username='%u@%r'


Und hier das Log vom auxprop:

postfix/smtpd[7153]: sql auxprop plugin using mysql engine
postfix/smtpd[7153]: sql plugin Parse the username admin@[/B][I]domain.name[/I]
postfix/smtpd[7153]: sql plugin try and connect to a host
postfix/smtpd[7153]: sql plugin trying to open db 'postfix' on host 'localhost'
postfix/smtpd[7153]: sql plugin Parse the username admin@[/B][I]domain.name[/I]
postfix/smtpd[7153]: sql plugin try and connect to a host
postfix/smtpd[7153]: sql plugin trying to open db 'postfix' on host 'localhost'
postfix/smtpd[7153]: sql plugin Parse the username admin@[/B][I]domain.name[/I]
postfix/smtpd[7153]: sql plugin try and connect to a host
postfix/smtpd[7153]: sql plugin trying to open db 'postfix' on host 'localhost'
postfix/smtpd[7153]: begin transaction
postfix/smtpd[7153]: sql plugin create statement from userPassword admin become.at
postfix/smtpd[7153]: sql plugin doing query select password from mailbox where username='admin@
domain.name';
postfix/smtpd[7153]: sql plugin create statement from cmusaslsecretPLAIN admin become.at
postfix/smtpd[7153]: sql plugin doing query select password from mailbox where username='admin@
domain.name';
postfix/smtpd[7153]: commit transaction
postfix/smtpd[7153]: sql plugin Parse the username admin@[/B][I]domain.name[/I]
postfix/smtpd[7153]: sql plugin try and connect to a host
postfix/smtpd[7153]: sql plugin trying to open db 'postfix' on host 'localhost'


Kann mir jemand helfen?


FreeBSD 5.3

postfix-2.2.8,1
cyrus-sasl-2.1.21_2
courier-authlib-base-0.58
courier-authlib-mysql-0.58
courier-imap-4.0.6_1,1
 
/usr/local/lib/sasl2/smtpd.conf:
Code:
pwcheck_method: authdaemond
log_level: 3
mech_list: LOGIN DIGEST-MD5 CRAM-MD5
authdaemond_path:/var/run/authdaemond/socket

mit saslpasswd2 auch user angelegt?

Wie sieht
Code:
/usr/local/etc/authlib/authdaemonrc
--> authmodulelist="authpgsql"

vi /usr/local/etc/authlib/authpgsqlrc
aus?
Ja, ich verwende postgresql...

In /usr/local/etc/authlib/authmysqlsrc dürfen KEINE whitespaces vorhanden sein
 
asg schrieb:
/usr/local/lib/sasl2/smtpd.conf:
Code:
pwcheck_method: authdaemond
log_level: 3
mech_list: LOGIN DIGEST-MD5 CRAM-MD5
authdaemond_path:/var/run/authdaemond/socket

mit saslpasswd2 auch user angelegt?

Nein, wurde bis jetzt in keinem Howto erwähnt, das ich gelesen habe. Hat auch bis jetzt ohne funktioniert. Wozu ist das gut und wie verwende ich es?

asg schrieb:
Wie sieht
Code:
/usr/local/etc/authlib/authdaemonrc
--> authmodulelist="authpgsql"

vi /usr/local/etc/authlib/authpgsqlrc
aus?
Ja, ich verwende postgresql...

authdaemonrc:

authmodulelist="authmysql"
authmodulelistorig="authmysql"
daemons=5
authdaemonvar=/var/run/authdaemond
subsystem=mail
DEBUG_LOGIN=0
DEFAULTOPTIONS="wbnodsn=1"
LOGGEROPTS=""


authdaemonmysql:

MYSQL_SERVER localhost
MYSQL_PORT 0
MYSQL_OPT 0
MYSQL_UID_FIELD 5000
MYSQL_GID_FIELD 5000
MYSQL_USERNAME
-- cut --
MYSQL_PASSWORD
-- cut --
MYSQL_DATABASE postfix
MYSQL_USER_TABLE mailbox
MYSQL_LOGIN_FIELD username
MYSQL_CRYPT_PWFIELD password
MYSQL_HOME_FIELD '/home/vmail'
MYSQL_NAME_FIELD name
MYSQL_MAILDIR_FIELD maildir
MYSQL_QUOTA_FIELD quota


asg schrieb:
In /usr/local/etc/authlib/authmysqlsrc dürfen KEINE whitespaces vorhanden sein

Darauf habe ich geachtet.
 
Ich habe übrigens die Vermutung, dass es vielleicht mit der Verschlüsselung der Passwörter zusammenhängt. Ich hatte nämlich zuvor alle Passwörter als Plaintext in der Datenbank. Mit Postfixadmin sind jetzt alle verschlüsselt. Kann das schuld sein? Wenn ja, wie sag ich dem smtpd wie er sie entschlüsseln soll?


edit:

Ok, ich denke ich habe die Lösung gefunden: http://frost.ath.cx/software/cyrus-sasl-patches/
 
Zuletzt bearbeitet:
Zurück
Oben