<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hallo zusammen,</div>
<div>ich habe Probleme mit der SASL-Authentifizierung von Postfix über Dovecot. Mit Kmail kann ich die Mails über IMAP abrufen, die Authentifizierung an Dovecot klappt hier.</div>
<div>Wenn ich aber Mails versenden will, wird die Authentifizierung nicht durchgeführt, sondern die Mail durch postscreen abgelehnt:</div>
<div>
<div>Jan 10 17:46:34 mail postfix/postscreen[3025]: CONNECT from [93.231.147.114]:46336 to [192.168.1.3]:25<br/>
Jan 10 17:46:34 mail postfix/dnsblog[3032]: addr 93.231.147.114 listed by domain zen.spamhaus.org as 127.0.0.10<br/>
Jan 10 17:46:37 mail postfix/postscreen[3025]: DNSBL rank 8 for [93.231.147.114]:46336<br/>
Jan 10 17:46:37 mail postfix/tlsproxy[3033]: CONNECT from [93.231.147.114]:46336<br/>
Jan 10 17:46:37 mail postfix/tlsproxy[3033]: Anonymous TLS connection established from [93.231.147.114]:46336: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)<br/>
Jan 10 17:46:37 mail postfix/postscreen[3025]: NOQUEUE: reject: RCPT from [93.231.147.114]:46336: 550 5.7.1 Service unavailable; client [93.231.147.114] blocked using zen.spamhaus.org; from=<info@example.com>, to=<flo.brucker@example.com>, proto=ESMTP, helo=<ukunda.localnet></div>
<div> </div>
<div>Meine main.cf sieht so aus:</div>
<div>alias_database = hash:/etc/aliases<br/>
alias_maps = hash:/etc/aliases<br/>
append_dot_mydomain = no<br/>
biff = no<br/>
bounce_queue_lifetime = 1d<br/>
broken_sasl_auth_clients = yes<br/>
config_directory = /etc/postfix<br/>
disable_vrfy_command = yes<br/>
html_directory = /usr/share/doc/postfix/html<br/>
inet_interfaces = all<br/>
inet_protocols = all<br/>
mailbox_size_limit = 0<br/>
maximal_backoff_time = 1800s<br/>
maximal_queue_lifetime = 1d<br/>
message_size_limit = 26214400<br/>
milter_default_action = accept<br/>
milter_protocol = 6<br/>
minimal_backoff_time = 300s<br/>
mydestination = mail.example.com, localhost.example.com, localhost<br/>
myhostname = mail.example.com<br/>
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128<br/>
myorigin = /etc/mailname<br/>
postscreen_bare_newline_enable = no<br/>
postscreen_blacklist_action = drop<br/>
postscreen_cache_cleanup_interval = 24h<br/>
postscreen_cache_map = proxy:btree:$data_directory/postscreen_cache<br/>
postscreen_dnsbl_action = enforce<br/>
postscreen_dnsbl_sites = b.barracudacentral.org=127.0.0.2*7 dnsbl.inps.de=127.0.0.2*7 bl.mailspike.net=127.0.0.2*5 bl.mailspike.net=127.0.0.[10;11;12]*4 dnsbl.sorbs.net=127.0.0.10*8 dnsbl.sorbs.net=127.0.0.5*6 dnsbl.sorbs.net=127.0.0.7*3 dnsbl.sorbs.net=127.0.0.8*2 dnsbl.sorbs.net=127.0.0.6*2 dnsbl.sorbs.net=127.0.0.9*2 zen.spamhaus.org=127.0.0.[10;11]*8 zen.spamhaus.org=127.0.0.[4..7]*6 zen.spamhaus.org=127.0.0.3*4 zen.spamhaus.org=127.0.0.2*3 hostkarma.junkemailfilter.com=127.0.0.2*3 hostkarma.junkemailfilter.com=127.0.0.4*1 hostkarma.junkemailfilter.com=127.0.1.2*1 wl.mailspike.net=127.0.0.[18;19;20]*-2 hostkarma.junkemailfilter.com=127.0.0.1*-2<br/>
postscreen_dnsbl_threshold = 8<br/>
postscreen_dnsbl_ttl = 5m<br/>
postscreen_greet_action = enforce<br/>
postscreen_greet_banner = $smtpd_banner<br/>
postscreen_greet_ttl = 2d<br/>
postscreen_greet_wait = 3s<br/>
postscreen_non_smtp_command_enable = no<br/>
postscreen_pipelining_enable = no<br/>
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps<br/>
queue_run_delay = 300s<br/>
readme_directory = /usr/share/doc/postfix<br/>
recipient_delimiter = +<br/>
relay_domains = proxy:mysql:/etc/postfix/sql/mysql_virtual_mxdomain_maps.cf<br/>
relay_recipient_maps = proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf<br/>
relayhost =<br/>
smtp_header_checks = pcre:/etc/postfix/mailcow_anonymize_headers.pcre<br/>
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt<br/>
smtp_tls_cert_file = /etc/ssl/mail/mail.crt<br/>
smtp_tls_key_file = /etc/ssl/mail/mail.key<br/>
smtp_tls_loglevel = 1<br/>
smtp_tls_security_level = may<br/>
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache<br/>
smtpd_banner = $myhostname<br/>
smtpd_data_restrictions = reject_unauth_pipelining, permit<br/>
smtpd_delay_reject = yes<br/>
smtpd_error_sleep_time = 10s<br/>
smtpd_hard_error_limit = ${stress?1}${stress:5}<br/>
smtpd_helo_required = yes<br/>
smtpd_proxy_timeout = 600s<br/>
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, reject_unknown_reverse_client_hostname, reject_unauth_destination<br/>
smtpd_restriction_classes = z1_greylisting<br/>
smtpd_sasl_auth_enable = yes<br/>
smtpd_sasl_authenticated_header = yes<br/>
smtpd_sasl_path = private/auth<br/>
smtpd_sasl_type = dovecot<br/>
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/sql/mysql_virtual_sender_acl.cf, proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf<br/>
smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch, permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated, reject_unlisted_sender, reject_unknown_sender_domain<br/>
smtpd_soft_error_limit = 3<br/>
smtpd_tls_auth_only = yes<br/>
smtpd_tls_cert_file = /etc/ssl/mail/mail.crt<br/>
smtpd_tls_dh1024_param_file = /etc/ssl/mail/dhparams.pem<br/>
smtpd_tls_eecdh_grade = strong<br/>
smtpd_tls_exclude_ciphers = ECDHE-RSA-RC4-SHA<br/>
smtpd_tls_key_file = /etc/ssl/mail/mail.key<br/>
smtpd_tls_loglevel = 1<br/>
smtpd_tls_mandatory_ciphers = high<br/>
smtpd_tls_mandatory_exclude_ciphers = ECDHE-RSA-RC4-SHA<br/>
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3<br/>
smtpd_tls_security_level = may<br/>
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache<br/>
tls_high_cipherlist = EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA<br/>
virtual_alias_maps = proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf, proxy:mysql:/etc/postfix/sql/mysql_virtual_spamalias_maps.cf, proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf, proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf<br/>
virtual_gid_maps = static:5000<br/>
virtual_mailbox_base = /var/vmail/<br/>
virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf<br/>
virtual_mailbox_maps = proxy:mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf, proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_mailbox_maps.cf<br/>
virtual_minimum_uid = 104<br/>
virtual_transport = lmtp:unix:private/dovecot-lmtp<br/>
virtual_uid_maps = static:5000<br/>
z1_greylisting = permit_dnswl_client list.dnswl.org, check_policy_service inet:127.0.0.1:10023</div>
<div> </div>
<div>Die Dovecot-Installation:</div>
<div># 2.2.13: /etc/dovecot/dovecot.conf<br/>
# OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.2<br/>
auth_mechanisms = plain login<br/>
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@<br/>
dict {<br/>
sqlquota = mysql:/etc/dovecot/dovecot-dict-sql.conf<br/>
}<br/>
disable_plaintext_auth = yes<br/>
listen = *,[::]<br/>
log_timestamp = "%Y-%m-%d %H:%M:%S "<br/>
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k<br/>
mail_fsync = always<br/>
mail_gid = vmail<br/>
mail_home = /var/vmail/%d/%n<br/>
mail_nfs_index = yes<br/>
mail_nfs_storage = yes<br/>
mail_plugins = quota acl<br/>
mail_privileged_group = vmail<br/>
mail_uid = vmail<br/>
managesieve_notify_capability = mailto<br/>
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave<br/>
mmap_disable = yes<br/>
namespace {<br/>
list = yes<br/>
location = maildir:%%h/:INDEXPVT=~/Shared/%%u<br/>
prefix = Shared/%%u/<br/>
separator = /<br/>
subscriptions = yes<br/>
type = shared<br/>
}<br/>
namespace inbox {<br/>
inbox = yes<br/>
location =<br/>
mailbox Archiv {<br/>
special_use = \Archive<br/>
}<br/>
mailbox Archive {<br/>
auto = subscribe<br/>
special_use = \Archive<br/>
}<br/>
mailbox Archives {<br/>
special_use = \Archive<br/>
}<br/>
mailbox "Deleted Messages" {<br/>
special_use = \Trash<br/>
}<br/>
mailbox Drafts {<br/>
auto = subscribe<br/>
special_use = \Drafts<br/>
}<br/>
mailbox Entwürfe {<br/>
special_use = \Drafts<br/>
}<br/>
mailbox "Gelöschte Objekte" {<br/>
special_use = \Trash<br/>
}<br/>
mailbox Gesendet {<br/>
special_use = \Sent<br/>
}<br/>
mailbox Junk {<br/>
auto = subscribe<br/>
special_use = \Junk<br/>
}<br/>
mailbox Papierkorb {<br/>
special_use = \Trash<br/>
}<br/>
mailbox Sent {<br/>
auto = subscribe<br/>
special_use = \Sent<br/>
}<br/>
mailbox "Sent Messages" {<br/>
special_use = \Sent<br/>
}<br/>
mailbox Trash {<br/>
auto = subscribe<br/>
special_use = \Trash<br/>
}<br/>
prefix =<br/>
separator = /<br/>
}<br/>
passdb {<br/>
args = /etc/dovecot/dovecot-mysql.conf<br/>
driver = sql<br/>
name =<br/>
}<br/>
plugin {<br/>
acl = vfile<br/>
acl_anyone = allow<br/>
acl_shared_dict = file:/var/vmail/shared-mailboxes.db<br/>
quota = dict:User quota::proxy::sqlquota<br/>
quota_rule2 = Trash:storage=+100%%<br/>
sieve = /var/vmail/sieve/%u.sieve<br/>
sieve_after = /var/vmail/sieve/global.sieve<br/>
sieve_max_script_size = 1M<br/>
sieve_quota_max_scripts = 0<br/>
sieve_quota_max_storage = 0<br/>
}<br/>
protocols = imap sieve lmtp pop3<br/>
recipient_delimiter = +<br/>
service auth {<br/>
unix_listener /var/spool/postfix/private/auth_dovecot {<br/>
group = postfix<br/>
mode = 0660<br/>
user = postfix<br/>
}<br/>
unix_listener auth-master {<br/>
mode = 0600<br/>
user = vmail<br/>
}<br/>
unix_listener auth-userdb {<br/>
mode = 0600<br/>
user = vmail<br/>
}<br/>
user = root<br/>
}<br/>
service dict {<br/>
unix_listener dict {<br/>
group = vmail<br/>
mode = 0660<br/>
user = vmail<br/>
}<br/>
}<br/>
service lmtp {<br/>
unix_listener /var/spool/postfix/private/dovecot-lmtp {<br/>
group = postfix<br/>
mode = 0600<br/>
user = postfix<br/>
}<br/>
user = vmail<br/>
}<br/>
service managesieve-login {<br/>
inet_listener sieve {<br/>
port = 4190<br/>
}<br/>
process_min_avail = 2<br/>
service_count = 1<br/>
vsz_limit = 128 M<br/>
}<br/>
service managesieve {<br/>
process_limit = 256<br/>
}<br/>
ssl_cert = </etc/ssl/mail/mail.crt<br/>
ssl_cipher_list = EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA<br/>
ssl_dh_parameters_length = 2048<br/>
ssl_key = </etc/ssl/mail/mail.key<br/>
ssl_protocols = !SSLv3 !SSLv2<br/>
userdb {<br/>
args = /etc/dovecot/dovecot-mysql.conf<br/>
driver = sql<br/>
name =<br/>
}<br/>
verbose_proctitle = yes<br/>
protocol imap {<br/>
mail_plugins = quota imap_quota imap_acl acl<br/>
}<br/>
protocol lmtp {<br/>
auth_socket_path = /var/run/dovecot/auth-master<br/>
mail_plugins = quota sieve acl<br/>
postmaster_address = postmaster@example.com<br/>
}<br/>
protocol sieve {<br/>
managesieve_logout_format = bytes=%i/%o<br/>
}<br/>
remote 127.0.0.1 {<br/>
disable_plaintext_auth = no<br/>
}</div>
<div> </div>
<div>Wobei ich in der 10-master.conf folgenden Eintrag gemacht hatte</div>
<div>
<div>service auth {<br/>
unix_listener auth-userdb {<br/>
mode = 0666<br/>
user = vamil<br/>
group = vmail<br/>
}</div>
<div> # Postfix smtp-auth<br/>
unix_listener /var/spool/postfix/private/auth {<br/>
mode = 0666<br/>
user = postfix<br/>
group = postfix<br/>
}</div>
<div>und den "service auth"-Eintrag in der dovecot.conf kommentiert hatte.</div>
<div>Jedesmal ein service dovecot reload und postfix reload.</div>
<div>Ich bekomme die SMPT-Auth nicht über Dovecot hin. Dafür ist regelrecht dauerhaft</div>
</div>
<div>srw-rw---- 1 postfix postfix 0 Jan 10 17:41 /var/spool/postfix/private/auth_dovecot</div>
<div>sichtbar. Dagegen fehlt</div>
<div>/var/spool/postfix/private/auth</div>
<div>komplett.</div>
<div>Gibt es etwas, das ich übersehen habe?</div>
<div>Viele Grüße</div>
<div>Flo</div>
</div></div></body></html>