我的服务器不断向 [email protected] 发送电子邮件

我的服务器不断向 [email protected] 发送电子邮件

当我在服务器上输入 mailq 时,我得到:

BB523653A62     4025 Wed Jun  4 10:40:07  MAILER-DAEMON
(delivery temporarily suspended: host p3smtpout.secureserver.net[208.109.80.54] refused to talk to me: 554 p3plsmtpout002.prod.phx3.secureserver.net : DED : AJeb1o0334uf1Y801 : DED : You've reached your daily relay quota - IP.ADDRESS)
                                         [email protected]

B33AD653A4A     4025 Wed Jun  4 08:20:07  MAILER-DAEMON
(delivery temporarily suspended: host p3smtpout.secureserver.net[208.109.80.54] refused to talk to me: 554 p3plsmtpout002.prod.phx3.secureserver.net : DED : AJeb1o0334uf1Y801 : DED : You've reached your daily relay quota - IP.ADDRESS)
                                         [email protected]

B77DF653A63     4025 Wed Jun  4 10:50:07  MAILER-DAEMON
(delivery temporarily suspended: host p3smtpout.secureserver.net[208.109.80.54] refused to talk to me: 554 p3plsmtpout001.prod.phx3.secureserver.net : DED : AJvF1o00L4uf1Y801 : DED : You've reached your daily relay quota - IP.ADDRESS)
                                         [email protected]

B943C653A3C     4025 Wed Jun  4 06:40:07  MAILER-DAEMON
(delivery temporarily suspended: host p3smtpout.secureserver.net[208.109.80.54] refused to talk to me: 554 p3plsmtpout001.prod.phx3.secureserver.net : DED : AKBv1o00P4uf1Y801 : DED : You've reached your daily relay quota - IP.ADDRESS)
                                         [email protected]

(大概有 50 个这样的,我今天已经清理了队列),你知道这些可能来自哪里吗?是我的服务器向“hostmaster”发送了一些日志吗?我已经用“MYDOMAIN”替换了我的实际域名。

我如何才能找到发送这些电子邮件的人?服务器最近被黑客攻击了,所以我也有点担心。

谢谢!

答案1

检查以确保您的服务器未充当开放中继。您可以使用http://mxtoolbox.com/SuperTool.aspx#使用测试电子邮件服务器选项。

答案2

以下是问题所在以及我如何修复它:

感谢“Some Linux Nerd”的评论,我才能够弄清楚这封电子邮件是什么。

首先我暂停了电子邮件的发送:

sudo postconf -e defer_transports=smtp;sudo postfix reload

然后我等到看到队列中有几封电子邮件时使用:

mailq

我获得了其中一封电子邮件的 ID,然后我使用它来完整查看该电子邮件:

postcat -vq <id>

这让我看到电子邮件实际上是由 cron 发送的。我忘记在每个 cron 末尾添加以下内容:

>/dev/null 2>&1

For example it can be used like:

* * * * * SOMECOMMAND >/dev/null 2>&1

然后不要忘记重新启用 postfix 来发送电子邮件:

sudo postconf -e defer_transports=;sudo postfix reload;sudo postfix flush

相关内容