Dear Meghanand,
On Wed, Sep 24, 2008 at 2:18 PM, Meghanand Acharekar vasco.debian@gmail.com wrote:
Hi,
I have written a perl/shell script on one of our servers which checks the server health and send alert emails to administrators.The script runs as a cron job under root privileges, it is working properly.But the email which we receive has From email address : root@server.name, Is there any way to change this email address ? Is this possible to chang 'from' email header ? If yes how ? and Is it possible to assign multiple email addresses to a single system user (not aliases)
man 5 crontab
use LOGNAME and MAILTO env variable as per your needs.
-- Regards, मेघानंद नं. आचरेकर Meghanand N. Acharekar
HTH With regards,