1837101 Members
2201 Online
110112 Solutions
New Discussion

error mail

 
SOLVED
Go to solution
peterchu
Super Advisor

error mail

We have a crontab user ( eg. cron_usr ) that have a scheduld job to use the "sendmail" to send out mail from the system , if the mail fail to send out ( eg. wrong e-mail address ) , then a error mail will return to the cron_usr , I think this is the default receiver of the return mail , is it possible to set another user to receive this mail ? eg. system administrator . thx.
2 REPLIES 2
Steve Steel
Honored Contributor
Solution

Re: error mail

Hi


Since the mailer only has the cron_usr mail address to return to there is no way to change it . You could try autoforward options (depending on your mailer) to send mail on to othe user.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Denver Osborn
Honored Contributor

Re: error mail

If your "cron_usr" is not a normal user account, I would set an alias for the user to redirect any mail to the sys admin.

# vi /etc/mail/aliases
cron_usr : sysadmin@yourhost

# newaliases

Or you could change the way this cron_usr sends outbound email... ie/ address could be masked as someone else, but setting the alias would be a simple solution.

Hope this helps,
-denver