This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to configure cron's mail?


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 "otheruser@somewhere.com".
> 
> 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:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]