Hallo, ich mal wieder... glaube, ich bekomme meinen Mailserver nie zum Laufen :roll:
Diesmal hapert es an SMTP-Auth. Es läuft ein Postfix, der nimmt Mails an, die ich auch per Imap (Courier) abholen kann. Soweit prima!
Durch das viele rumprobieren (auch mit Cyrus als Imap-Server) gibts jetzt so viele Dateien, dass ich kaum noch durchblicke :roll:
Aber zum eigentlichen Problem:
Versuche ich, über den Server eine Mail zu verschicken, erscheint im LOG folgendes:
In der main.cf ist folgendes eingetragen:
Dann habe ich eine /etc/pam.d/smtp(d) (beide haben den gleichen Inhalt):
Und dann noch eine /usr/(local/)lib/sasl2/smtpd.conf:
Ein testsaslauthd -u username -p passwort ist übrigens erfolgreich...
So langsam bin ich am verzweifeln
Diesmal hapert es an SMTP-Auth. Es läuft ein Postfix, der nimmt Mails an, die ich auch per Imap (Courier) abholen kann. Soweit prima!
Durch das viele rumprobieren (auch mit Cyrus als Imap-Server) gibts jetzt so viele Dateien, dass ich kaum noch durchblicke :roll:
Aber zum eigentlichen Problem:
Versuche ich, über den Server eine Mail zu verschicken, erscheint im LOG folgendes:
Code:
warning: SASL authentication failure: no secret in database
warning: i577A4819.versanet.de[87.122.72.25]: SASL CRAM-MD5 authentication failed
warning: SASL authentication failure: Password verification failed
warning: i577A4819.versanet.de[87.122.72.25]: SASL PLAIN authentication failed
warning: i577A4819.versanet.de[87.122.72.25]: SASL LOGIN authentication failed
In der main.cf ist folgendes eingetragen:
Code:
smtpd_recipient_restrictions = check_relay_domains, permit_sasl_authenticated
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
Dann habe ich eine /etc/pam.d/smtp(d) (beide haben den gleichen Inhalt):
Code:
#%PAM-1.0
#auth required pam_unix2.so nullok
#account required pam_unix2.so
#password required pam_pwcheck.so nullok
#password required pam_unix2.so nullok use_first_pass use_authtok
#session required pam_unix2.so none # debug or trace
auth sufficient pam_mysql.so user=yyy passwd=xxx host=localhost db=virtual_server_database table=mail_virtboxes usercolumn=address passwdcolumn=password crypt=0 logtable=
log logmsgcolumn=message logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time
account required pam_mysql.so user=yyy passwd=xxx host=localhost db=virtual_server_database table=mail_virtboxes usercolumn=address passwdcolumn=password crypt=0 logtable
=log logmsgcolumn=message logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time
Und dann noch eine /usr/(local/)lib/sasl2/smtpd.conf:
Code:
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
log_level: 3
sql_engine: mysql
sql_hostnames: localhost
sql_database: virtual_server_database
sql_user: yyy
sql_passwd: xxx
sql_select: SELECT %p FROM mail_virtboxes WHERE address = '%u'
sql_usessl: no
Ein testsaslauthd -u username -p passwort ist übrigens erfolgreich...
So langsam bin ich am verzweifeln