我在ubuntu服务器(9.04)上运行的postfix(V:2.5.5-1.1)开始拒绝大约两周前从外面进入的邮件。 通过telnet进行“手动”会话显示连接总是在closures之后closures
MAIL FROM: [email protected]
行input,消息“由外部主机closures连接”。
从局域网内的另一个客户端做同样的工作。 在日志文件中,我从“xxxxx.tld [xxx.xxx.xxx.xxx]”得到MAIL之后的“MAIL丢失连接”这行后面是一些行:
match_hostaddr: XXX.XXX.XXX.XXX ~? [::1]/128 match_hostname: XXXX.tld ~? 192.168.1.0/24 ... match_list_match: xxx.xxx.xxx.xxx: no match
这似乎build议某种filter,检查允许的地址。 我一直无法find这个filter的位置,或者如何closures它。 我甚至不确定这是什么原因导致我的问题。 来自LAN内部的连接不会断开连接,即使它们也显示“match_list_match:… no match”行。
我最近没有更改任何configuration文件,下面是我目前的main.cf文件。 我真的不知道所有的参数做什么以及它们如何相互作用。 我刚刚设置它,它工作正常(直到最近)。
smtpd_banner = $myhostname ESMTP $mail_name (GNU) biff = no readme_directory = no # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/server.crt smtpd_tls_key_file=/etc/ssl/private/server.key #smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtp_sasl_auth_enable = no smtp_use_tls=no smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth myhostname = XXXXXXX.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = XXXX.XXXX.com, XXXX.com, localhost.XXXXX.com, localhost relayhost = XXX.XXX.XXX.XXX mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all smtpd_sasl_local_domain = #smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_authenticated_header = yes broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_
当检查进程列表时,postfix / smtpd运行为
smtpd -n smtp -t inet -u -c -o stress -v -v
任何线索?
事实certificate,这与我的configuration没有任何关系,但似乎我的isp正在终止smtp连接。 他们已经被一家新公司所接pipe,新的政策似乎已经到位。
我最终使用我的ISP的邮件服务器作为中继。 这很简单,因为它们允许从池中的任何IP进行中继访问,而无需身份validation。