Probleme Postfix und Dovecot



larsM

New Member
Hallo zusammen,

Hab ein kleines Problem. Habe nach dieser Anleitung Postfix samt Dovecot aufgesetzt. Als Adminoberfläche dient postfixadmin.

https://youtu.be/x190WFAHC8k
Nun läuft Dovecot und Postfix aber wenn ich mich einloggen will kommt diese Meldung um Syslog:

Code:
Mar 12 20:54:19 h2530151 postfix/smtpd[32664]: connect from mail-lb0-f171.google.com[209.85.217.171]
Mar 12 20:54:19 h2530151 dovecot: master: Error: service(auth): command startup failed, throttling for 8 secs
Mar 12 20:54:19 h2530151 postfix/smtpd[32664]: fatal: no SASL authentication mechanisms
Mar 12 20:54:20 h2530151 postfix/master[27203]: warning: process /usr/lib/postfix/smtpd pid 32664 exit status 1
Mar 12 20:54:20 h2530151 postfix/master[27203]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Mar 12 20:56:00 h2530151 postfix/anvil[32666]: statistics: max connection rate 1/60s for (smtp:209.85.217.171) at Mar 12 20:54:19
Mar 12 20:56:00 h2530151 postfix/anvil[32666]: statistics: max connection count 1 for (smtp:209.85.217.171) at Mar 12 20:54:19
Mar 12 20:56:00 h2530151 postfix/anvil[32666]: statistics: max cache size 1 at Mar 12 20:54:19
Mar 12 20:56:43 h2530151 postfix/smtpd[32672]: connect from mail-lb0-f180.google.com[209.85.217.180]
Mar 12 20:56:43 h2530151 dovecot: master: Error: service(auth): command startup failed, throttling for 16 secs
Mar 12 20:56:43 h2530151 postfix/smtpd[32672]: fatal: no SASL authentication mechanisms
Mar 12 20:56:44 h2530151 postfix/master[27203]: warning: process /usr/lib/postfix/smtpd pid 32672 exit status 1
Mar 12 20:56:44 h2530151 postfix/master[27203]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Mar 12 20:58:24 h2530151 postfix/anvil[32674]: statistics: max connection rate 1/60s for (smtp:209.85.217.180) at Mar 12 20:56:43
Mar 12 20:58:24 h2530151 postfix/anvil[32674]: statistics: max connection count 1 for (smtp:209.85.217.180) at Mar 12 20:56:43
Mar 12 20:58:24 h2530151 postfix/anvil[32674]: statistics: max cache size 1 at Mar 12

Meine Config:

Code:
g# postconf -n
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
dovecot_destination_recipient_limit = 1
inet_interfaces = all
inet_protocols = all
local_transport = virtual
mailbox_size_limit = 0
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
myhostname = mail.cloud-surfer.eu
mynetworks = 127.0.0.0/8 81.169.130.87/32
myorigin = /etc/mailname
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
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql-sender-login-maps.cfsmtpd_sender_restrictions = reject_authenticated_sender_login_mismatch reject_unknown_sender_domain
smtpd_tls_cert_file = /etc/letsencrypt/live/cloud-surfer.eu/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/cloud-surfer.eu/privkey.pem
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual-alias-maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual-domains-maps.cf
virtual_mailbox_limit = 0
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual-mailbox-maps.cfvirtual_minimum_uid = 104
virtual_transport = virtual
virtual_uid_maps = static:5000

kann mir da jemand helfen?
 
Last edited by a moderator:
Hi,

melde dich mal via PM bei Intresse!

Das Problem ist die SASL Auth. bez die chroot von Postfix im zusammenhang mit SASL.
SASL brauchst du um dich anzumelden.

*Habe selber lange zeit ein solches Setup (Postfix / Postfixadmin und Dovecot) am laufen gehapt.

Tipp: lege den Socket von SASL in die chroot von Postfix (sasl config: /etc/default/saslauthd)
 
Last edited by a moderator:
Das wäre erledigt danke.
Nun hätte ich das nächste Problem.

Code:
Mar 13 01:13:21 h2530151 postfix/smtpd[3022]: NOQUEUE: reject: RCPT from localhost[::1]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<h2530151.stratoserver.net>
Mar 13 01:13:21 h2530151 postfix/smtpd[3022]: warning: non-SMTP command from localhost[::1]: To: [email protected]
Mar 13 01:13:21 h2530151 postfix/smtpd[3022]: disconnect from localhost[::1]
Mar 13 01:15:01 h2530151 CRON[3031]: (www-data) CMD (php -f /var/www/owncloud/cron.php)
Mar 13 01:15:01 h2530151 CRON[3032]: (www-data) CMD (cd /var/www/owncloud && sudo -u www-data php occ files:scan --all)
Mar 13 01:16:41 h2530151 postfix/anvil[3023]: statistics: max connection rate 1/60s for (smtp:::1) at Mar 13 01:13:21
Mar 13 01:16:41 h2530151 postfix/anvil[3023]: statistics: max connection count 1 for (smtp:::1) at Mar 13 01:13:21
Mar 13 01:16:41 h2530151 postfix/anvil[3023]: statistics: max cache size 1 at Mar 13 01:13:21
 
Code:
Mar 13 01:13:21 h2530151 postfix/smtpd[3022]: NOQUEUE: reject: RCPT from localhost[::1]... Relay access denied...
Code:
mynetworks = 127.0.0.0/8 81.169.130.87/32
...
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination

IPv4<->IPv6. Alles klar?

--
.A.
 
Back
Top