首页 > 解决方案 > 后缀:损坏的 SMTP 事务?

问题描述

这很奇怪,但在不改变 Postfix 配置的情况下,我们已经从 Thunderbird (Windows) 和 Outlook (MacOS) 破坏了 SMTP 事务,但从命令行 (Linux) 却没有。

交易看起来像这样:

Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: connect from fix.212.21.212.com[212.212.212.212]
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: smtp_stream_setup: maxtime=300 enable_deadline=0
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_hostname: fix.212.21.212.com ~? 127.0.0.0/8
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_hostaddr: 212.212.212.212 ~? 127.0.0.0/8
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_hostname: fix.212.21.212.com ~? 10.8.200.0/23
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_hostaddr: 212.212.212.212 ~? 10.8.200.0/23
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_hostname: fix.212.21.212.com ~? 79.81.206.215/32
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_hostaddr: 212.212.212.212 ~? 79.81.206.215/32
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_hostname: fix.212.21.212.com ~? 213.200.217.210/32
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_hostaddr: 212.212.212.212 ~? 213.200.217.210/32
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_hostname: fix.212.21.212.com ~? 212.147.27.252/32
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_hostaddr: 212.212.212.212 ~? 212.147.27.252/32
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_hostname: fix.212.21.212.com ~? 212.147.5.60/32
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_hostaddr: 212.212.212.212 ~? 212.147.5.60/32
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_list_match: fix.212.21.212.com: no match
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_list_match: 212.212.212.212: no match
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: auto_clnt_open: connected to private/anvil
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: send attr request = connect
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: send attr ident = smtps:212.212.212.212
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: private/anvil: wanted attribute: status
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: input attribute name: status
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: input attribute value: 0
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: private/anvil: wanted attribute: count
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: input attribute name: count
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: input attribute value: 1
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: private/anvil: wanted attribute: rate
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: input attribute name: rate
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: input attribute value: 1
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: private/anvil: wanted attribute: (list terminator)
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: input attribute name: (end)
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: > fix.212.21.212.com[212.212.212.212]: 220 mail.ourdomain.com ESMTP Postfix (Debian/GNU)
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: xsasl_dovecot_server_create: SASL service=smtp, realm=(null)
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: name_mask: noanonymous
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: xsasl_dovecot_server_connect: Connecting
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: xsasl_dovecot_server_connect: auth reply: VERSION?1?1
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: xsasl_dovecot_server_connect: auth reply: MECH?PLAIN?plaintext
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: name_mask: plaintext
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: xsasl_dovecot_server_connect: auth reply: MECH?LOGIN?plaintext
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: name_mask: plaintext
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: xsasl_dovecot_server_connect: auth reply: SPID?29750
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: xsasl_dovecot_server_connect: auth reply: CUID?141742
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: xsasl_dovecot_server_connect: auth reply: COOKIE?bd665ec25e0c4b7a964903e36eca89b7
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: xsasl_dovecot_server_connect: auth reply: DONE
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: xsasl_dovecot_server_mech_filter: keep mechanism: PLAIN
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: xsasl_dovecot_server_mech_filter: keep mechanism: LOGIN
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: watchdog_pat: 0x7f07a2af8b70
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: < fix.212.21.212.com[212.212.212.212]: ????
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_string: ???? ~? CONNECT
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_string: ???? ~? GET
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_string: ???? ~? POST
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_list_match: ????: no match
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: > fix.212.21.212.com[212.212.212.212]: 502 5.5.2 Error: command not recognized
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: watchdog_pat: 0x7f07a2af8b70
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: < fix.212.21.212.com[212.212.212.212]: ??????
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_string: ? ~? CONNECT
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_string: ? ~? GET
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_string: ? ~? POST
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_list_match: ?: no match
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: > fix.212.21.212.com[212.212.212.212]: 502 5.5.2 Error: command not recognized
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: watchdog_pat: 0x7f07a2af8b70
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: < fix.212.21.212.com[212.212.212.212]: ?
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_string: ? ~? CONNECT
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_string: ? ~? GET
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_string: ? ~? POST
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: match_list_match: ?: no match
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: > fix.212.21.212.com[212.212.212.212]: 502 5.5.2 Error: command not recognized
Apr 13 16:22:44 mailsvr postfix/smtps/smtpd[17458]: watchdog_pat: 0x7f07a2af8b70
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: smtp_get: timeout
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: > fix.212.21.212.com[212.212.212.212]: 421 4.4.2 mail.ourdomain.com Error: timeout exceeded
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_hostname: fix.212.21.212.com ~? 127.0.0.0/8
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_hostaddr: 212.212.212.212 ~? 127.0.0.0/8
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_hostname: fix.212.21.212.com ~? 10.8.200.0/23
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_hostaddr: 212.212.212.212 ~? 10.8.200.0/23
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_hostname: fix.212.21.212.com ~? 79.81.206.215/32
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_hostaddr: 212.212.212.212 ~? 79.81.206.215/32
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_hostname: fix.212.21.212.com ~? 213.200.217.210/32
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_hostaddr: 212.212.212.212 ~? 213.200.217.210/32
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_hostname: fix.212.21.212.com ~? 212.147.27.252/32
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_hostaddr: 212.212.212.212 ~? 212.147.27.252/32
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_hostname: fix.212.21.212.com ~? 212.147.5.60/32
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_hostaddr: 212.212.212.212 ~? 212.147.5.60/32
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_list_match: fix.212.21.212.com: no match
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: match_list_match: 212.212.212.212: no match
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: send attr request = disconnect
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: send attr ident = smtps:212.212.212.212
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: private/anvil: wanted attribute: status
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: input attribute name: status
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: input attribute value: 0
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: private/anvil: wanted attribute: (list terminator)
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: input attribute name: (end)
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: timeout after UNKNOWN from fix.212.21.212.com[212.212.212.212]
Apr 13 16:27:44 mailsvr postfix/smtps/smtpd[17458]: disconnect from fix.212.21.212.com[212.212.212.212]

真的很奇怪,我什至找不到原因可能是什么?

如果有人有任何建议,那就太好了!

非常感谢你的帮助 !

丹尼斯

附言

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
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
message_size_limit = 22020096
mydestination = mail.ourdomain.ch, ..., localhost.ourdomain.ch, localhost
myhostname = mail.ourdomain.ch
mynetworks = ...
myorigin = /etc/mailname
readme_directory = no
recipient_bcc_maps = hash:/etc/postfix/bcc_maps
recipient_delimiter = +
smtp_host_lookup = native
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = permit_sasl_authenticated, check_client_access cidr:/etc/postfix/access
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_client_access cidr:/etc/postfix/access, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_CAfile = ...
smtpd_tls_cert_file = ...
smtpd_tls_key_file = ...
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:1001
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_domains = [list of domains]
virtual_mailbox_limit = 0
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:1001

标签: smtppostfix-mta

解决方案


推荐阅读