wir sitzen jetzt hier zu zweit schon seit mehreren Stunden an einem Problem und auch Google konnte uns trotz längerer Recherche nicht weiterhelfen.
Wir wollen Postfix mit SASL-Authentifizierung über die normalen Unix-User aus /etc/passwd realisieren. Scheinbar bekommt Postfix aber keine Verbindung zum SASL-Socket. Vielleicht kann einer von Euch ja unseren Denkfehler entdecken!
Das ganze läuft mit Postfix 2.3.8 und SASL 2.1.22
postconf -n
Code: Select all
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
mailbox_size_limit = 0
mydestination = server03.xxx.net, localhost, localhost.localdomain, localhost
myhostname = localhost
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated,reject_unauth_destination,permit_mynetworks
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
Code: Select all
log_level: 7
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN
saslauthd_path: /var/spool/postfix/var/run/saslauthd
Code: Select all
START=yes
MECHANISMS="pam"
MECH_OPTIONS=""
THREADS=5
OPTIONS="-c"
PWDIR="/var/spool/postfix/var/run/saslauthd"
PARAMS="-m ${PWDIR}"
mail.log
Code: Select all
Sep 13 19:21:12 Ubuntu-704-feisty-64-minimal postfix/smtpd[5423]: > localhost[127.0.0.1]: 250-8BITMIME
Sep 13 19:21:12 Ubuntu-704-feisty-64-minimal postfix/smtpd[5423]: > localhost[127.0.0.1]: 250 DSN
Sep 13 19:21:12 Ubuntu-704-feisty-64-minimal postfix/smtpd[5423]: watchdog_pat: 0x65f0c0
Sep 13 19:21:25 Ubuntu-704-feisty-64-minimal postfix/smtpd[5423]: < localhost[127.0.0.1]: auth plain amltbXkAamltbXkAem90dGVs
Sep 13 19:21:25 Ubuntu-704-feisty-64-minimal postfix/smtpd[5423]: xsasl_cyrus_server_first: sasl_method plain, init_response
amltbXkAamltbXkAem90dGVs
Sep 13 19:21:25 Ubuntu-704-feisty-64-minimal postfix/smtpd[5423]: xsasl_cyrus_server_first: decoded initial response jimmy
Sep 13 19:21:25 Ubuntu-704-feisty-64-minimal postfix/smtpd[5423]: warning: SASL authentication failure: Password verification
failed
Sep 13 19:21:25 Ubuntu-704-feisty-64-minimal postfix/smtpd[5423]: warning: localhost[127.0.0.1]: SASL plain authentication fa
iled: authentication failure
Sep 13 19:21:25 Ubuntu-704-feisty-64-minimal postfix/smtpd[5423]: > localhost[127.0.0.1]: 535 5.7.0 Error: authentication fai
led: authentication failure
Sep 13 19:21:25 Ubuntu-704-feisty-64-minimal postfix/smtpd[5423]: watchdog_pat: 0x65f0c0
Allerdings ist hier zu sehen, dass Postfix keine Verbindung zu SASL bekommt -> in der SASL-Log tut sich gar nix.
Vielen Dank für die Hilfe, falls noch weitere Infos gebraucht werden, einfach bescheid sagen.
Tarta