本地主机在传出消息

我有完全相同的问题。 简而言之,我使用mime :: lite发送pipe理员邮件,但由于本地主机[127.0.0.1]出现在标题中,因此它们似乎被标记为垃圾邮件。

我的问题是如何摆脱电子邮件标题中的本地主机&127.0.0.1的引用?

上面提到的问题的答案是安装postfix,不幸的是这已经安装在Fedora 14主机上,并没有什么区别。

消息build立之后,这条线用于发送邮件:

MIME::Lite->send("sendmail", "/usr/lib/sendmail -t -oi -oem -froot\@mail.mydomain.com"); 

我已经尝试了main.cf中的各种configuration,myhostname被设置为“mail.mydomain.com”。 我试着明确地设置'myorigin = $ myhostname',但不出所料,因为这是默认的没有任何区别。

在下面的所有例子中,真实的公共IP地址被replace为1.1.1.1,域replace为mydomain.com和mydomain1.com。

这是一个示例(编辑)标题,冒犯的位以粗体显示:

 Return-path: <[email protected]> Received: from smtpin.myisp.com ([10.30.30.30]) by ms.myisp.com (ISP server details removed (built Aug 10 2011)) with ESMTP id <[email protected]> for [email protected]; Thu, 13 Oct 2011 12:49:08 +0000 (GMT) Original-recipient: rfc822;[email protected] Received: from mail.mydomain.com ([1.1.1.1.111]) by smtpin.myisp.com (ISP server details removed (built Jan 31 2010)) with ESMTP id <[email protected]> for [email protected] (ORCPT [email protected]); Thu, 13 Oct 2011 05:49:08 -0700 (PDT) Received: from mail.mydomain.com ( localhost [127.0.0.1] ) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.mydomain.com (Postfix) with ESMTPS id 6ZZ6Z6Z6666 for <[email protected]> Thu, 13 Oct 2011 12:49:02 +0000 (UTC) Received: (from root@localhost ) by mail.mydomain.com (8.14.4/8.14.4/Submit) 

这是postconf -n的输出:

 alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases bounce_queue_lifetime = 1 broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no inet_interfaces = all inet_protocols = all local_recipient_maps = mail_owner = postfix mailbox_command = mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man maximal_queue_lifetime = 1 mydestination = mail.mydomain01.com, mail.mydomain.com myhostname = mail.mydomain.com mynetworks = 127.0.0.0/8 [::1]/128 myorigin = $myhostname newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.7.5/README_FILES sample_directory = /usr/share/doc/postfix-2.7.5/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_tls_note_starttls_offer = yes smtp_use_tls = yes smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem smtpd_tls_auth_only = no smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_source = dev:/dev/urandom unknown_local_recipient_reject_code = 550 

这个/ etc / hosts的内容:

 127.0.0.1 localhost localhost.localdomain
 1.1.1.1 mail.mydomain.com main.mydomain1.com邮件

我不能从实际上已经被标记为垃圾邮件的邮件发送邮件到我的真实地址不再被标记为垃圾邮件,因为我从我们的服务器为电子邮件设置了“不垃圾”标志。 AOL是(testing)目的地之一,不能使用AOL Web界面显示标题。 邮件发送到一个Gmail地址根本没有到达,我猜服务器是善意阻止交付。

我使用http://www.mxtoolbox.com进行了检查,结果因为没有明显的原因而变化,但是我们的服务器地址在两个列表中出现(然后再次消失),因为“返回代码是127.0.0.6”,这很奇怪,因为特定的回送地址从来没有出现在我们的电子邮件中,除非postfix做的事情真的很奇怪,这似乎不太可能。

如果需要其他configuration数据,请告诉我。

这是您邮件的唯一相关行:

 Received: from mail.mydomain.com ([1.1.1.1.111]) by smtpin.myisp.com (ISP server details removed (built Jan 31 2010)) with ESMTP id <[email protected]> for [email protected] (ORCPT [email protected]); Thu, 13 Oct 2011 05:49:08 -0700 (PDT) 

而且根本没有本地主机的迹象。 所以你假设你的邮件被标记为基于“本地主机”问题的垃圾邮件是不正确的。 它必须是不同的东西。

是否有更多的标题比你提供? 我问,因为如果一个电子邮件被标记为类似Spamassassin的垃圾邮件,它会在邮件中添加标题,说明它给了什么分数的电子邮件和什么样的testing“失败”。 如果你有这些标题,可以发布它们,这将会对你的问题更加清楚。 例如,我所说的标题通常在某个地方有垃圾邮件

 X-Spam-Status: x-Spam-Score: 

那种types的东西。

如果您在电子邮件中没有看到任何垃圾邮件标题,那么听起来像您的电子邮件客户端本身正在决定您的电子邮件是垃圾邮件。 它如何确定这将非常依赖于你使用的电子邮件客户端。