How can I control where output mail from my crontab is sent to?

Question:

I noticed that whatever e-mail is sent by cron it is stored in ~/Mailbox , is there a way to forward these mail to my POP account hosted on the same server?

Answer:

Yes, put the line:

MAILTO=your_email_address@your_domain.com

at the top of your crontab file. This will send all crontab output to that email address

Leave a Reply

Your email address will not be published. Required fields are marked *