当前,从我的服务器发送的几乎所有邮件都保存在收件人的垃圾邮件中。我在想。是因为我的服务器正在发送垃圾邮件吗?我指的是这篇帖子How to check if server is sending out spam?。输入此命令,我可以检查从服务器发送的所有电子邮件。
cat /var/log/maillog | grep 'to=<[a-z0-9_\.-]\+@[\da-z\.-]\+\.[a-z\.]\{2,6\}>' -o
我确实自己发送了几封电子邮件,但以上命令未列出任何内容。如果我cat /var/log/maillog
,以下是我所得到的。不确定如何阅读。
...
Jul 3 12:38:32 abcde-id467301 spamd[16679]: spamd: connection from localhost [::1]:37410 to port 783, fd 5
Jul 3 12:38:32 abcde-id467301 spamd[16300]: prefork: child states: I
Jul 3 12:38:32 abcde-id467301 dovecot: pop3-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<XaTr4hBwNNJ/AAAB>
Jul 3 12:38:33 abcde-id467301 dovecot: lmtp(10026): Connect from local
Jul 3 12:38:33 abcde-id467301 dovecot: lmtp(10026): Disconnect from local: Successful quit
...
是否有检查垃圾邮件的建议?谢谢。
在修复DMARC,DKIM和SPF(它们全部通过)后进行编辑-现在gmail可以,但是hotmail不能。
进行了几次测试
```
SpamAssassin does not like you
-0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
This negative score will become positive if the signature is validated. See immediately below.
0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
Great! Your signature is valid
0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain
Great! Your signature is valid and it's coming from your domain name
-1.999 FSL_HELO_BARE_IP_2 IP used in the HELO request
The hostname should be a domain name, not an IP address
-1.985 PYZOR_CHECK Similar message reported on Pyzor (http://pyzor.org)
Please test a real content, test Newsletters will always be flagged by Pyzor
Adjust your message or request whitelisting (http://public.pyzor.org/whitelist/)
-0.865 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO
-1.274 RDNS_NONE Delivered to internal network by a host with no rDNS
This may be a false-positive, please check the reverse DNS test below to confirm or not this issue
0.001 SPF_PASS SPF: sender matches SPF record
Great! Your SPF is valid
You're not fully authenticated
We didn't find a server (A Record) behind your hostname .......net.
We check if there is a server (A Record) behind your hostname .......net.
You may want to publish a DNS record (A type) for the hostname .......net or use a different hostname in your mail software.
```
```
"iprev" check: fail
SpamAssassin check: ham
"iprev" check details:
Result: fail (reverse lookup failed (NXDOMAIN))
ID(s) verified: policy.iprev=---.--.---.--
DNS record(s):
---.--.---.--.in-addr.arpa. PTR (NXDOMAIN)
SpamAssassin check details:
SpamAssassin v3.4.0 (2014-02-07)
Result: ham (-0.6 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 SPF_PASS SPF: sender matches SPF record
-0.5 BAYES_05 BODY: Bayes spam probability is 1 to 5%
[score: 0.0157]
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
```
答案 0 :(得分:1)
默认情况下,在cPanel服务器上,电子邮件是使用EXIM发送的。因此,电子邮件日志(用于已接收和已发送的电子邮件)位于/var/log/exim_mainlog
。在这里,您可以查看有关发送到服务器或由服务器发送的电子邮件的详细信息。
很多因素都可能导致您的电子邮件发送到垃圾邮件。仅举几个: -您服务器的IP地址已列入黑名单(您可以使用http://mxtoolbox.com/之类的工具进行检查) -您没有为服务器定义正确的主机名 -您的服务器没有正确的反向DNS -SPF和/或DKIM配置不正确
尝试将电子邮件从服务器发送到Gmail地址(例如,您拥有的Gmail地址)。然后转到Gmail,即使电子邮件降落在垃圾邮件上,也请检查电子邮件标题。在那里,您可以获得有关进行了哪些检查,收到的垃圾邮件得分等信息。这将是一个很好的起点,让您确定为什么已发送的电子邮件会进入垃圾邮件/垃圾邮件。
由于您提供的信息很少,因此很难猜测或提供正确的答案...