Ich hab da ein Problem mit saslauthd (und postfix) auf Debian sarge. Ich möchte daß die Authentifizierung über den saslauthd läuft, via TLS.
Wenn ich nun Mails von Mozilla aus versende, möchte ich mich ja mit user & pass authentifizieren. Leider geht der Mailversand auch ohne daß ich mich authentifiziere, was nicht sein soll.
Wenn ich eine e-mail versende, wird in /var/log/mail.log geloggt, was mir derzeit aber nicht wirklich weiterhilft:
Code: Select all
705 Sep 17 12:33:01 debian postfix/smtpd[27762]: connect from cm183xx.liwest.at[81.10.xx.xx]
706 Sep 17 12:33:01 debian postfix/smtpd[27762]: 474C0DFC004: client=cm183xx.liwest.at[81.10.xx.xx]
707 Sep 17 12:33:01 debian postfix/cleanup[27765]: 474C0DFC004: message-id=<414ABD5C.80905@xyz.com>
708 Sep 17 12:33:01 debian postfix/qmgr[27761]: 474C0DFC004: from=<i-mehl@xyz.com>, size=614, nrcpt=1 (queue active)
709 Sep 17 12:33:01 debian postfix/local[27766]: 474C0DFC004: to=<gerald@abc.com>, relay=local, delay=0, status=sent (delivered to maildir)
710 Sep 17 12:33:01 debian postfix/qmgr[27761]: 474C0DFC004: removed
711 Sep 17 12:33:01 debian postfix/smtpd[27762]: disconnect from cm183xx.liwest.at[81.10.xx.xx]Wenn ich mich aber nun doch authentifizieren will, wirft er das Passwort zurück weil er sich nicht mit dem saslauthd verbinden kann (saslauthd läuft aber):
/var/log/mail.log:
Code: Select all
721 Sep 17 13:11:59 debian postfix/smtpd[28024]: connect from cm183xx.liwest.at[81.10.xx.xx]
722 Sep 17 13:12:05 debian postfix/smtpd[28024]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
723 Sep 17 13:12:05 debian postfix/smtpd[28024]: warning: SASL authentication failure: Password verification failed
724 Sep 17 13:12:05 debian postfix/smtpd[28024]: warning: cm183xx.liwest.at[81.10.xx.xx]: SASL PLAIN authentication failed
725 Sep 17 13:12:05 debian postfix/smtpd[28024]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
726 Sep 17 13:12:05 debian postfix/smtpd[28024]: warning: cm183xx.liwest.at[81.10.xx.xx]: SASL LOGIN authentication failed
727 Sep 17 13:12:07 debian postfix/smtpd[28024]: lost connection after AUTH from cm183xx.liwest.at[81.10.xx.xx]
728 Sep 17 13:12:07 debian postfix/smtpd[28024]: disconnect from cm183xx.liwest.at[81.10.xx.xx]
729 Sep 17 13:12:08 debian postfix/smtpd[28024]: connect from cm183xx.liwest.at[81.10.xx.xx]
730 Sep 17 13:12:13 debian postfix/smtpd[28024]: lost connection after EHLO from cm183xx.liwest.at[81.10.xx.xx]
731 Sep 17 13:12:13 debian postfix/smtpd[28024]: disconnect from cm183xx.liwest.at[81.10.xx.xx]Code: Select all
Sep 17 12:28:08 debian saslauthd[27406]: detach_tty : master pid is: 27406
Sep 17 12:28:08 debian saslauthd[27406]: ipc_init : listening on socket: /var/run/saslauthd/mux/etc/postfix/main.cf
Code: Select all
smtpd_banner = $myhostname ESMTP Mailserver
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
myhostname = host.abc.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, localhost.$mydomain, $mydomain
#relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
# block possible attacks
smtpd_error_sleep_time = 1s
smtpd_soft_error_limit = 10
smtpd_hard_error_limit = 20
# use maildir style instead of mbox format
home_mailbox = Maildir/
# virtual domain stuff
virtual_alias_domains = domain2.com
virtual_alias_maps = hash:/etc/postfix/virtual_alias
# TLS stuff
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_enforce_tls = no
broken_sasl_auth_clients = yes
# SASL
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_sasl_local_domain =
smtp_sasl_auth_enable = no
smtpd_tls_auth_only = yesCode: Select all
pwcheck_method: saslauthd
mech_list: plain loginIch hab leider keine Idee was genau da schief läuft, wenn mir jemand einen Tipp geben könnte wär ich recht dankbar :)
