Web Hosting Talk







View Full Version : cron mails -> problem -> need help


realalien
01-31-2003, 05:23 AM
hello,

my RH server sends by default all the CRON events mails to <root@localhost>. I did try to change this to another mail address f.eg. cron@mydomain.com but I can't find the way to do this.

could you pls tell me where I can configure this in shell or webmin?

thanks indeed!

Noldar
01-31-2003, 08:07 AM
Log in to your server, su to root and edit your crontab by typing:

crontab -e

Add the following line to the top of your crontab file:

MAILTO=cron@mydomain.com

Save you file and your new setting will be loaded. To check your crontab you can type:

crontab -l

For more information on the crontab file type:

man 5 crontab

Richard