LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to stop root sending email to a private address (http://www.linuxquestions.org/questions/linux-server-73/how-to-stop-root-sending-email-to-a-private-address-842315/)

bstafford51 11-04-2010 09:35 AM

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

jwl17330536 11-04-2010 10:29 AM

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.

bstafford51 11-04-2010 12:52 PM

I may have solved this. It seems that an old but still valid smtp email address was in the /root/.forward file.

bstafford51 11-04-2010 12:54 PM

I read the post after I found the .forward file. Thanks for your time though.


All times are GMT -5. The time now is 11:16 AM.