[SOLVED] - How to change/where change email to receive alerts cron daemon alerts?

5 posts / 0 new
Last post
#1 Mon, 08/20/2018 - 17:54
herculesnetwork

[SOLVED] - How to change/where change email to receive alerts cron daemon alerts?

How to change/where change email to receive alerts cron daemon alerts?

I'm getting many thousands of emails coming to my hotmail email account, there are so many that hotmail is sending messages from my mail server to spam! because many emails are leaving my server for hotmail with the title cron damon from cron root@vps.myserver.com are many emails, what is bothering me, is that I have browsed my operating systems after a file that contains my email from hotmail and my servers do not have this data! So ... please, how do I set which email will receive these alerts?

I've already tried for 2 days to figure out how to find something on webmin / virtualmin to set the email that will receive alerts! and I find nothing !, I just found a command to add the alerts to nothing: /croninstructions >/dev/null 2>&1 I don't want to delete/block alerts, I want to send them to a specific email account, not to hotmail, becuze they mark me as a spammer! :/

I really appreciate your help.

Tue, 08/21/2018 - 03:29
noisemarine

I don't believe the root account is set to send email to anyone by default, so it is likely something that has been manually set. You could look in /etc/aliases as that is the most likely place to set up something like that. You could also look for a .forward file in /root or in the home directory of the owner of the cron job.

Tue, 08/21/2018 - 09:53 (Reply to #2)
herculesnetwork

Hi @noisemarine Thank You So Much.

I really did not remember, that a long time ago, I created an alias to root yo 4 e-mail accounts of mine!

Thank youuu!!

Tue, 08/21/2018 - 09:05
jimdunn

Each cron script has (can have) the entry:

MAILTO=user@example.com

If not, then the output will (by default) be emailed to the "root" account. You would then edit the /etc/aliases file to specify where you want root email to be delivered:

root: user@example.com

NOTE: After editing /etc/aliases, you must run the "newaliases" script to update the system with a new aliases.db.

Tue, 08/21/2018 - 10:27 (Reply to #4)
herculesnetwork

Hi @jimdunn. Thank you so much. It's like I said in the comment above, it was a problem in aliases(my mistake), and thanks for reminding yourself in newaliases that it's important to reload new definitions.

Topic locked