来自 Cronjob 的奇怪电子邮件。 (没有这样的文件或目录)

发布于 2024-10-18 09:36:45 字数 478 浏览 4 评论 0原文

我在Linux上是个傻瓜。所以我尝试在我的根上设置一些东西。 好吧,过了一段时间,一个可疑的 cron 作业开始轰炸我。我每 10 分钟就会收到一封电子邮件,内容如下:

定时任务 测试-x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp

/usr/share/sendmail/sendmail:行 880: /usr/sbin/sendmail-msp: 没有这样的 文件或目录

有人知道这可能是什么吗?

该电子邮件地址为“[电子邮件受保护]”....

问候

I'm a fool in linux. So i tried to set up some things on my root.
Well and after time a suspicious cron job started to bomb me. i get about 1 email every 10 minutes saying:

Cron
test -x /etc/init.d/sendmail &&
/usr/share/sendmail/sendmail cron-msp

/usr/share/sendmail/sendmail: line
880: /usr/sbin/sendmail-msp: No such
file or directory

Does someone know what this could be?

The email is adressed to "[email protected]"....

greetings

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

心房敞 2024-10-25 09:36:45

解决方案:

apt-get --purge remove sendmail-base sendmail-cf sendmail-doc

这也为我弹出。我以为我在安装 Postfix 时已经删除了 sendmail,但这些 cron 作业开始弹出。从 /etc/cron.d 中删除 sendmail 文件一直有效,直到我重新启动计算机,此时它被重新生成。删除列出的软件包一劳永逸地解决了问题。 :-)

Solution:

apt-get --purge remove sendmail-base sendmail-cf sendmail-doc

This just popped up for me too. I thought that I had removed sendmail when I installed Postfix but these cron jobs started popping up. Removing the sendmail file from /etc/cron.d worked until I restarted the machine, at which point it was regenerated. Removing the packages listed solved the problem once and for all. :-)

度的依靠╰つ 2024-10-25 09:36:45

您的 sendmail 软件包似乎没有完全安装。尝试找到我们的哪个软件包包含sendmail-msp并安装这个软件包。你不应该再收到邮件了。

It seems like your sendmail package isn't completely installed. Try to find our which package contains sendmail-msp and install this package. You shouldn't receive mail anymore.

往事随风而去 2024-10-25 09:36:45

在我的 ubuntu 系统上,它是 /etc/cron.d/sendmail

这似乎是我安装 sendmail 时留下的文件: dlocate -S /etc/cron.d/sendmail 没有返回任何内容...

所以我只是将其删除。

我还发现其他几个 sendmail-* 软件包已被删除但未清除。当我清理它们时,一切都消失了。 :-/

On my ubuntu system, it's /etc/cron.d/sendmail

This seems to be a file left over from when I had sendmail installed: dlocate -S /etc/cron.d/sendmail returns nothing...

So I just removed it.

I also found a couple other sendmail-* packages removed but not purged. When I purged them, it all went away. :-/

甜宝宝 2024-10-25 09:36:45

找到了!
资料来源: http://ubuntuforums.org/showthread.php?t=1557127& ;p=9743741#post9743741

文件 /etc/cron.d/sendmail 似乎是由 sendmail 自动生成的。

"Sendmail crontab - Call sendmail at various times to do the following:
1) Age queues - move undelivered mail to a slower queue
2) Retry any mail queued by the message submission process
3) run the queues (deliver mail) if a standalone daemon is not desired"

因此,如果您转到

sudo nano /etc/cron.d/sendmail

并评论触发 cron 的行,我认为您已经完成了。但这不是问题的根源。

我认为您应该去编辑另一个文件

sudo nano /etc/mail/sendmail.conf

并向下滚动直到“队列”部分,按照内联文档进行尝试,直到您得到它:)

问候!

Found it!
Source: http://ubuntuforums.org/showthread.php?t=1557127&p=9743741#post9743741

The file /etc/cron.d/sendmail seems to be autogenerated by sendmail.

"Sendmail crontab - Call sendmail at various times to do the following:
1) Age queues - move undelivered mail to a slower queue
2) Retry any mail queued by the message submission process
3) run the queues (deliver mail) if a standalone daemon is not desired"

So if you go to

sudo nano /etc/cron.d/sendmail

and comment the line which fires the cron, I think you're done. But that's not the root of the problem.

I think you should go to edit this other file

sudo nano /etc/mail/sendmail.conf

and scroll down until the "queue" sections, follow the inline documentation and try until you got it :)

Regards!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文