![]() |
How to stop root sending email to a private address
system is RedHat v4. I removed root: admin-name@domain from /etc/aliases then ran /usr/bin/newaliases.
The admin does not get the emails but now the email generated by the cronjobs is being sent to my-name@domain outlook email from "root@localhost.localddomain". No other changes were made. Where should I start looking for the definition of sent crontab email to my-name@domain? thanks |
I would check /root/.forward to see if that is the culprit.
You can always search the server for the email address where the email is being sent: find <directory> -type f -exec grep -il "my-name@domain" {} \; That will help you find what file is inserting this email address as the destination address. |
I may have solved this. It seems that an old but still valid smtp email address was in the /root/.forward file.
|
I read the post after I found the .forward file. Thanks for your time though.
|
| All times are GMT -5. The time now is 05:07 AM. |