changing cron's From: address in emails
Daniel C. Dowse
dcdowse at gmx.net
Sun Oct 25 01:10:12 UTC 2009
On Sat, 24 Oct 2009 01:08:21 -0600
Kelly Martin <kellymartin at gmail.com> wrote:
> Greetings, here's a simple question for the FreeBSD gurus out there. I
> have several servers running cron scripts daily for me, and they all
> send me e-mail with their output. Regardless of which server it is,
> each of these e-mails have the From: address looking exactly the same.
> They all say they are from the "Cron Daemon". Fine, but I'd like to
> know more clearly which server the cron output is from.
> How can I change the From: address of these emails to "Myserver Cron
> Daemon" instead? I know cron runs as the user, so it's not immediately
> obvious to me how to change the From: field. Already the subject line
> says something like "Cron <root at Myserver> ..." but this doesn't stand
> out enough for my tired eyes.
Why don`t you just create some filter rules in your mua ?
It may makes it clear for you if you create a folder for each host
and filter your msg on receiving ?
- Host 1
- Host 2
Just because I don`t care - Doesn`t mean I don`t understand !
-- Homer J. Simpson
More information about the freebsd-questions