Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Feb 2005 20:34:00 -0800
From:      Joshua Tinnin <krinklyfig@spymac.com>
To:        freebsd-questions@freebsd.org
Cc:        Kyle Jensen <kljgroups@gmail.com>
Subject:   Re: Sending nightly cron job output without running sendmail
Message-ID:  <200502102034.00362.krinklyfig@spymac.com>
In-Reply-To: <200502102024.42558.krinklyfig@spymac.com>
References:  <fa357bee05021020041f5a004c@mail.gmail.com> <200502102024.42558.krinklyfig@spymac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 10 February 2005 08:24 pm, Joshua Tinnin 
<krinklyfig@spymac.com> wrote:
> On Thursday 10 February 2005 08:04 pm, Kyle Jensen
> <kljgroups@gmail.com> wrote:
> > Hi,
> >
> > I have deactivated sendmail via
> >
> >     sendmail_enable="NONE"
> >
> > in my /etc/rc.conf.  However, I
> > would like to receive the output
> > of my periodic cron jobs via email.
> > How can I configure my system for
> > this?
>
> sendmail_enable="NO"
>
> This disables sendmail's incoming mail service, but it will still
> deliver system mail.
>
> I also use this:
>
> sendmail_flags="-q1m"
>
> This means sendmail will process the queue once a minute.
>
> Also, in my crontab, I have:
>
> MAILTO=username
>
> ... which will email the output of cron jobs to username. I only use
> this in my local crontabs, but I guess you could put this in the main
> one.

Also, almost forgot, but if you want the output of periodic jobs (daily, 
weekly, monthly, security run) mailed to username instead of root, you 
can put this in your /etc/mail/aliases:

root:	username

This will mail everything that would normally go to root to username, 
which includes those periodic jobs. If you want to change this on a 
more granular level, check /etc/defaults/periodic.conf

- jt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502102034.00362.krinklyfig>