I can't get cron to stop spamming me with completed job notifications. It's getting out of hand and starting to clog up my 'real' email server, so I'd like to just disable postfix while I figure out which job isn't going to /dev/null (any help on this is appreciated as well.)
I can stop the service, but everytime I reboot it kicks out all the emails it's been holding on to, and my mail server goes down ago.
Best Answer
Postfix is started in
init.d
, so you can useupdate-rc.d
to disable it on startup:When you want to enable it again:
Even if it's disabled you can still start it manually with
sudo service postfix start
.If
update-rc.d
is not in your system, you'll have to install the packagesysvinit-utils
orsysv-rc
, or similar (those are for 12.04, I don't remember if 10.04 use the same names).As for the notifications, usually the email will give you a clue on which job sent it, but if you want to track all jobs run by cron, you can take a look at the crontab and
/etc/cron.*
. See the section NOTES inman cron
for details.You could also check the syslog: