我正在使用postfix发送电子邮件。 我有mysql设置来pipe理域,帐户和别名。 我有3个域名设置。 一个域是主要的域,当发送电子邮件到Gmail帐户一切正常。 ssl证书仅适用于主域。
当我使用任何虚拟域名发送电子邮件到一个Gmail帐户,他们被标记为垃圾邮件。 gmail给的原因是电子邮件是未encryption的。 它认识到发送邮件的邮件服务器是主服务器。 Postfix被configuration为只使用tls。
为什么来自虚拟域的邮件不能以encryption方式发送?
如果有帮助,我可以提供任何其他信息。
这是来自电子邮件的标题,configuration了DMARC和SPF。
Delivered-To: [email protected] Received: by 10.79.120.143 with SMTP id d15csp334618ivg; Wed, 13 Apr 2016 18:56:09 -0700 (PDT) X-Received: by 10.55.80.131 with SMTP id e125mr15507566qkb.62.1460598969001; Wed, 13 Apr 2016 18:56:09 -0700 (PDT) Return-Path: <[email protected]> Received: from primary.com (primary.com. [45.##.##.##]) by mx.google.com with ESMTP id 123si7618120qkk.31.2016.04.13.18.56.08 for <[email protected]>; Wed, 13 Apr 2016 18:56:08 -0700 (PDT) Received-SPF: neutral (google.com: 45.##.##.## is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=45.##.##.##; Authentication-Results: mx.google.com; spf=neutral (google.com: 45.##.##.## is neither permitted nor denied by best guess record for domain of [email protected]) smtp[email protected] Received: from primary.com (localhost [127.0.0.1]) by primary.com (Postfix) with ESMTPSA id 72B42140776 for <[email protected]>; Wed, 13 Apr 2016 21:56:07 -0400 (EDT) Mime-Version: 1.0 Date: Thu, 14 Apr 2016 01:56:07 +0000 Content-Type: multipart/alternative; boundary="----=_Part_822_880614403.1460598967" Message-ID: <[email protected]> X-Mailer: AfterLogic webmail client From: "XXXXXX" <[email protected]> Subject: test To: [email protected] X-Priority: 3 (Normal)
mxtoolbox警告
smtp primary.com Reverse DNS is not a valid Hostname More Info dns virtual.me SOA Serial Number Format is Invalid More Info dns virtual.me SOA Expire Value out of recommended range More Info
你需要一个有效的SSL证书和你的Postfix服务器的私钥设置,在你的main.cfg文件中有这样的行
smtpd_tls_cert_file = /etc/pki/tls/certname.crt smtpd_tls_key_file = /etc/pki/tls/certname.key smtpd_tls_CAfile = /etc/pki/tls/ca.bundle smtpd_tls_protocols = SSLv3,TLSv1,!SSLv2 smtp_tls_protocols = SSLv3,TLSv1, !SSLv2 smtpd_tls_cipherlist = ALL:!ADH:RC4 + RSA:+ HIGH:+ MEDIUM:-LOW:-SSLv2:-EXP:-eNULL smtp_tls_cipherlist = ALL:!ADH:RC4 + RSA:+ HIGH:+ MEDIUM: -SSLv2:-EXP:-eNULL
smtp_tls_CAfile =的/ etc / SSL /证书/ ca.bundle