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.
Postfix is started in init.d
, so you can use update-rc.d
to disable it on startup:
sudo update-rc.d postfix disable
When you want to enable it again:
sudo update-rc.d postfix enable
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 package sysvinit-utils
or sysv-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 in man cron
for details.
crontab -l
sudo crontab -l
ls -lr /etc/cron.*
You could also check the syslog:
sudo grep -i cron /var/log/syslog
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments