[Postfixbuch-users] Postfix Connect Timeout

Simon Metzger simon.metzger at gmx.net
Fr Apr 27 14:35:22 CEST 2012


Hallo zusammen,

ich habe auf meinem Rootserver Postfix in Verbindung mit Dovecot 
installiert. Für die Userverwaltung wird eine SQL-Datenbank genutzt. 
Dovecot stellt nach außen imap und imaps zur Verfügung. Die Mailabruf 
mit imap/imaps funktioniert einwandfrei. Leider bekomme ich aber wenn 
ich Mails senden möchte (mit Hilfe von Thunderbird), jedes mal einen 
Timeout nach einer gewissen Zeit... also die Connection läuft in ein 
Timeout und die Mail kann nicht gesendet werden.

*Also /var/log/mail.info bringt mit verbose folgende Warnings:*
Apr 27 10:23:00 donald postfix/smtpd[19301]: > unknown[193.196.7.170]: 
220 donald.owno.de ESMTP
Apr 27 10:23:00 donald postfix/smtpd[19301]: 
xsasl_dovecot_server_create: SASL service=smtp, realm=(null)
Apr 27 10:23:00 donald postfix/smtpd[19301]: name_mask: noanonymous
Apr 27 10:23:00 donald postfix/smtpd[19301]: 
xsasl_dovecot_server_connect: Connecting
Apr 27 10:23:00 donald postfix/smtpd[19301]: 
xsasl_dovecot_server_connect: auth reply: MECH?PLAIN?plaintext
Apr 27 10:23:00 donald postfix/smtpd[19301]: name_mask: plaintext
Apr 27 10:23:00 donald postfix/smtpd[19301]: 
xsasl_dovecot_server_connect: auth reply: MECH?LOGIN?plaintext
Apr 27 10:23:00 donald postfix/smtpd[19301]: name_mask: plaintext
Apr 27 10:23:00 donald postfix/smtpd[19301]: 
xsasl_dovecot_server_connect: auth reply: VERSION?1?0
Apr 27 10:23:00 donald postfix/smtpd[19301]: 
xsasl_dovecot_server_connect: auth reply: SPID?26301
Apr 27 10:23:00 donald postfix/smtpd[19301]: 
xsasl_dovecot_server_connect: auth reply: CUID?182
Apr 27 10:23:00 donald postfix/smtpd[19301]: 
xsasl_dovecot_server_connect: auth reply: DONE
Apr 27 10:23:00 donald postfix/smtpd[19301]: 
xsasl_dovecot_server_mech_filter: keep mechanism: PLAIN
Apr 27 10:23:00 donald postfix/smtpd[19301]: 
xsasl_dovecot_server_mech_filter: keep mechanism: LOGIN
Apr 27 10:23:00 donald postfix/smtpd[19301]: < unknown[193.196.7.170]: ??
Apr 27 10:23:00 donald postfix/smtpd[19301]: match_string: ?? ~? CONNECT
Apr 27 10:23:00 donald postfix/smtpd[19301]: match_string: ?? ~? GET
Apr 27 10:23:00 donald postfix/smtpd[19301]: match_string: ?? ~? POST
Apr 27 10:23:00 donald postfix/smtpd[19301]: match_list_match: ??: no match
Apr 27 10:23:00 donald postfix/smtpd[19301]: > unknown[193.196.7.170]: 
502 5.5.2 Error: command not recognized
Apr 27 10:23:00 donald postfix/smtpd[19301]: < unknown[193.196.7.170]: 
??<???$??$?.8-f?9?g
Apr 27 10:23:00 donald postfix/smtpd[19301]: match_string: ? ~? CONNECT
Apr 27 10:23:00 donald postfix/smtpd[19301]: match_string: ? ~? GET
Apr 27 10:23:00 donald postfix/smtpd[19301]: match_string: ? ~? POST
Apr 27 10:23:00 donald postfix/smtpd[19301]: match_list_match: ?: no match
Apr 27 10:23:00 donald postfix/smtpd[19301]: > unknown[193.196.7.170]: 
502 5.5.2 Error: command not recognized
*
**Ohne Verbose bringt /var/log/mail.info einfach nur folgendes:
*Apr 27 10:26:11 donald postfix/smtpd[19413]: connect from 
unknown[193.196.7.170]
Apr 27 10:27:57 donald postfix/smtpd[19413]: lost connection after 
UNKNOWN from unknown[193.196.7.170]
Apr 27 10:27:57 donald postfix/smtpd[19413]: disconnect from 
unknown[193.196.7.170]*

**
Hier meine main.cf:*
myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP
biff = no

auth_verbose=yes

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
#smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_cert_file=/etc/apache2/ssl/donald_certificate.pem
smtpd_tls_key_file=/etc/apache2/ssl/donald_privatekey.pem
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
#smtpd_tls_security_level = may

# SASL parameters
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_authenticated_header = yes
#smtpd_sasl_security_options = noanonymous
#smtpd_sasl_local_domain = $mydomain
#smtpd_sasl_local_domain = donald.owno.de
broken_sasl_auth_clients = yes

# policies
smtpd_require_helo = yes
smtpd_client_restrictions = permit_mynetworks, 
permit_sasl_authenticated,reject_invalid_hostname,  
reject_unknown_client, reject_rbl_client
smtpd_sender_restrictions = permit_mynetworks, 
reject_unknown_address,reject_unknown_sender_domain, reject_non_fqdn_sender
smtpd_recipient_restrictions = permit_mynetworks, 
permit_sasl_authenticated, reject_unauth_destination
smtpd_recipient_limit = 250


# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = donald.owno.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.owno.de, localhost.owno.de, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 193.196.7.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

# Postfix should use Dovecot
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1

# Mapping to database given by postfixadmin
virtual_mailbox_domains = 
proxy:mysql:/etc/postfix/mysql/virtual_domains_maps.cf
virtual_mailbox_maps = 
proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf,proxy:mysql:/etc/postfix/mysql/virtual_alias_domain_mailbox_maps.cf
virtual_alias_maps = 
proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf,proxy:mysql:/etc/postfix/mysql/virtual_alias_domain_maps.cf,proxy:mysql:/etc/postfix/mysql/virtual_alias_domain_catchall_maps.cf
mydomain = donald.owno.de

Ich habe schon einiges probiert... aber komme zu keiner Lösung.
Ich hoffe es hat noch jemand eine Idee.

Viele Grüße
Simon Metzger

Am 27.04.2012 12:32, schrieb Kai Fürstenberg:
> Am 27.04.2012 12:22, schrieb Simon Metzger:
>> Die /var/log/mail.info sagt folgendes:
> ...
>
> nix?
> Dann gibt es auch keinen connect. Evtl. Falscher Port?
>
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <https://listi.jpberlin.de/pipermail/postfixbuch-users/attachments/20120427/59b136ed/attachment.html>


Mehr Informationen über die Mailingliste Postfixbuch-users