来自 Cronjob 的奇怪电子邮件。 (没有这样的文件或目录)
我在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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
解决方案:
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. :-)
您的 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.
在我的 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. :-/找到了!
资料来源: http://ubuntuforums.org/showthread.php?t=1557127& ;p=9743741#post9743741
文件 /etc/cron.d/sendmail 似乎是由 sendmail 自动生成的。
因此,如果您转到
并评论触发 cron 的行,我认为您已经完成了。但这不是问题的根源。
我认为您应该去编辑另一个文件
并向下滚动直到“队列”部分,按照内联文档进行尝试,直到您得到它:)
问候!
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.
So if you go to
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
and scroll down until the "queue" sections, follow the inline documentation and try until you got it :)
Regards!