在执行HELO握手时失去与mx.servername的连接

我是pipe理邮件服务器的新手,因此当邮件服务器可以发送到某些电子邮件如Gmail,telus和shaw而不是其他电子邮件地址时,我不知所措。 只是具体的我猜。 以下是邮件日志中的一个示例:

<[email protected]>, relay=mx.dockyardsliving.ca[65.254.254.50]:25, delay=67513, delays=67512/0.01/0.35/0, dsn=4.4.2, status=deferred (lost connection with mx.dockyardsliving.ca[65.254.254.50] while performing the HELO handshake)

下面是我的main.cf文件:

 smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no append_dot_mydomain = no readme_directory = no smtpd_tls_cert_file = /etc/ssl/certs/mailserver.pem smtpd_tls_key_file = /etc/ssl/private/mailserver.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 # information on enabling SSL in the smtp client. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = localhost alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination = localhost, localhost.localdomain, , localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all virtual_transport = dovecot dovecot_destination_recipient_limit = 1 virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_tls_security_level = may smtpd_tls_auth_only = yes smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination 

任何想法,为什么我可以发送到一些电子邮件,而不是其他人? 有什么看起来不符合规定的吗?

UPDATE

好,所以我改变了

 myhostname = mail.website.com 

并重新启动后缀服务,但我现在无法接收电子邮件,所以我尝试了myhostname = website.com ,仍然是同样的事情。 所以我刚刚回到本地主机。

UPDATE

所以现在起作用了。 检查日志,电子邮件正在被接受的位置。 必须将下面的行添加到main.cf中

smtp_helo_name = mail.website.com

谢谢

一些邮件服务器对你如何打招呼非常严格,例如他们可以:

Reject connections where the domain provided at HELO and EHLO has neither an 'A' nor an 'MX' record in DNS

要么

Reject the request when the HELO or EHLO hostname is not in fully-qualified domain or address literal form, as required by the RFC

smtp_helo_name默认为$ myhostname (这是在你的main.cf设置为本地主机),所以你可以尝试将其设置为适当的host.example.com

远程服务器给5? 问候并closures连接。

从我的comp(IP地址被掩盖)的“telnettesting”的结果:

 telnet mx.dockyardsliving.ca smtp Trying 65.254.254.51... Connected to mx.dockyardsliving.ca. Escape character is '^]'. 554 impinc04.yourhostingaccount.com NO UCE error: R6.1: aaa.bbb.ccc.ddd is on the Spamhaus blacklist. Please visit: http://www.spamhaus.org Connection closed by foreign host. 

在主机上自己telnet smtp端口来获取主机的原因。