Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-04-2010, 09:35 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 23

Rep: Reputation: 1
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?


Last edited by bstafford51; 11-04-2010 at 09:37 AM.
Old 11-04-2010, 10:29 AM   #2
Registered: Feb 2010
Location: Raleigh, NC
Posts: 83

Rep: Reputation: 22
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.
1 members found this post helpful.
Old 11-04-2010, 12:52 PM   #3
LQ Newbie
Registered: Jul 2008
Posts: 23

Original Poster
Rep: Reputation: 1
I may have solved this. It seems that an old but still valid smtp email address was in the /root/.forward file.
Old 11-04-2010, 12:54 PM   #4
LQ Newbie
Registered: Jul 2008
Posts: 23

Original Poster
Rep: Reputation: 1
I read the post after I found the .forward file. Thanks for your time though.


crontab, email, root

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop sending me email j.todd LQ Suggestions & Feedback 3 10-07-2008 04:53 PM
Sending a form to an email address problems! cucolin@ Programming 1 06-23-2004 05:21 AM
Sending Email to an SMTP address from sendmail guilmetrp Linux - Newbie 6 03-01-2004 08:51 PM
Sending email to a smtp address through sendmail guilmetrp Linux - General 0 02-27-2004 08:02 PM
sending an email to a email address after a perl operation meluser Programming 9 04-07-2003 01:26 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration