Re: How to configure cron's mail?

2006-09-27 Thread René Berber
René Berber wrote:

> Joost Kraaijeveld wrote:
> 
>> Can I configure where cron sends the mail to? It seems to be 
>> "[EMAIL PROTECTED]", where user is the account cron is running under,
>> but I would like it to go to "[EMAIL PROTECTED]".
> 
> 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/



RE: How to configure cron's mail?

2006-09-27 Thread Harig, Mark
> -Original Message-
> Sent: Tuesday, September 26, 2006 11:50 PM
> To: Cygwin Users
> Subject: How to configure cron's mail?
> 
> Hi,
> 
> Can I configure where cron sends the mail to? It seems to be
> "[EMAIL PROTECTED]", where user is the account cron is running 
> under, but I
> would like it to go to "[EMAIL PROTECTED]".
> 
> 

cygcheck -l cron
cygcheck -l ssmtp

See then the Cygwin-specific README files in /usr/share/doc/Cygwin/.

---

--
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/



Re: How to configure cron's mail?

2006-09-26 Thread René Berber
Joost Kraaijeveld wrote:

> Can I configure where cron sends the mail to? It seems to be
> "[EMAIL PROTECTED]", where user is the account cron is running under, but I
> would like it to go to "[EMAIL PROTECTED]".

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.
-- 
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/