This isn't exactly what you asked.... but, you could
change the subject of each by using mail explicitly in
your crontab file, something like
1 2 3 * * /bin/date | mailx -s'Date Output from machine
BOB' me myaddress
Or make a shell script wrapper that does all of the email
stuff
along with the tasks you want to perform, and put that shell
script
into cron.
Chris
-----Original Message-----
From: nahant-list-bounces redhat.com on behalf of
inode0
Sent: Thu 4/5/2007 8:27 AM
To: Red Hat Enterprise Linux 4 (Nahant) Discussion List
Subject: Re: change the "From" line in crond's
mails, how?
On 4/5/07, Roger Peņa <orkcu yahoo.com> wrote:
> Hello everybody
>
> I feel a litle disoriented about this topic, I could
> not find any hint about what to do to change the
> "FROM" text (not the address) of emails
generated by
> crond, the one run it by root
>
> I have several servers who send its root's emails to
> one specific address (through aliases offcourse), the
> problem is that I want to notice which message belong
> to which server without open it
> the subject is the same in all mails an so the FROM
> text (not the address ofcourse)
Depending on your mail system you might be able to use
plussed
addresses. So rather than aliasing the root mail on box
x.y.z to
bob a.b.c you might be able to send it to bob+x.y.z a.b.c
instead
where the +x.y.z would be different on each system
indicating which
machine it is coming from in the From: header.
John
--
nahant-list mailing list
nahant-list redhat.com
h
ttps://www.redhat.com/mailman/listinfo/nahant-list
--
nahant-list mailing list
nahant-list redhat.com
h
ttps://www.redhat.com/mailman/listinfo/nahant-list
|