How to configure cron's mail?

René Berber
Wed Sep 27 19:16:00 GMT 2006

René Berber wrote:

> Joost Kraaijeveld wrote:
>> Can I configure where cron sends the mail to? It seems to be 
>> "user@localhost", where user is the account cron is running under,
>> but I would like it to go to "".
> Yes, in /etc/ssmtp/ssmtp.conf, but when you install the ssmtp package
> you are supposed to run ssmtp-config.  Anyway you can edit the file,
> just define root and rewriteDomain so that cron uses those.

I forgot to add that there is a second option: specify MAILTO inside crontab.

In fact that is a more flexible option, you could make cron send emails to several addresses, also to different ones for each job.
René Berber

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list