我的 postfix 有问题,我的 mail.log 中有错误
postfix/smtpd[12802]: timeout after CONNECT from nm4-vm1.bullet.mail.ne1.yahoo.com[98.138.91.44]
我不太清楚发生了什么,它发生在像 yahoo、gmail 或 outlook 这样的邮件提供商上。
这是我目前的 postfix 配置
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = yes
biff = no
broken_sasl_auth_clients = yes
compatibility_level = 2
inet_protocols = all
mailbox_size_limit = 0
mydestination = mail.our-mail.com, localhost, localhost.localdomain, our-mail.com
mynetworks = 127.0.0.0/8 192.168.1.0/24 192.168.2.0/24 192.168.103.0/24 [::1]/128
mynetworks_style = subnet
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = mail.hwg.web.id ESMTP
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous noplaintext
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:${data_directory}/smtpd_scache
smtpd_use_tls = yes
答案1
您的连接不稳定(或防火墙阻止了某些东西)。Yahoo 尝试连接,成功了,但没有发送任何内容,因为它正在等待您的服务器。检查您的连接和防火墙日志,您将看到第一个数据包之后的数据包被拒绝。