Meghanand Acharekar 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 ?
if you have root access, will it not be easier to setup a privileged user account to run such scripts with a name such as "noreply". or you can have a dummy user and send mail as that user with sudo, put the stat files in a path accessible to that user
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)
user@server.name is usual for any mail server, any other assigned mail id is called as an alias as far as I know.
Regards Surya Pratap