I can't seem to figure out why root
is sending out several emails every minute. I would like it to stop because I am making out my ability to send emails every 24 hours (over 5k a day).
First thing I have done is trying to forward root email to an external account to maybe get more detail about the emails being sent. This is not what I need to accomplish, just showing you I tried it. Anyways I can't get it to work, the emails do not forward.
[Email Forwarding]
I tried
Edit: /etc/aliases and added `root: myemail@email.com
Edit: /root/.forward and added my email
Both methods didn't forward the emails.
[Cron Jobs]
The next thing I thought and read was that crond was sending the emails due to my cronjobs. Yes, I do have cron jobs that run every minute so I thought this could be the issue.
I tried
Editing /etc/crontab and changing the values
MAILTO=root
to MAILTO=
as well as I tried MAILTO=""
I also manually changed all the cron jobs to run once an hour to see if they stop, they did not and yet continued.
I also stopped my crond daemon, but root keeps sending mail.
Here is a email example Delivery Report from WHM; I can't see anything that helps.
Here is also what my mailog
file looks like and again I can't see anything.
Can anyone point me in the right direction to find out why root is sending emails to root every minute several times?