Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange emails from Cronjob. (No such file or directory)

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

like image 447
Philipp Spiess Avatar asked Feb 20 '11 12:02

Philipp Spiess


People also ask

What is cron job email?

Cron Jobs are used to schedule tasks on the server to run. They're most typically used to automate system management or maintenance.

Does Cron send email?

Cron and MAILTO If you run the script from cron, you can look into using cron's MAILTO= option. You put a [email protected] line in your crontab, and, when a job fails, cron will send a notification to the specified address using system's MTA.


2 Answers

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. :-)

like image 60
Taco Bob Avatar answered Sep 20 '22 21:09

Taco Bob


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.

like image 20
Daniel Avatar answered Sep 21 '22 21:09

Daniel