LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2008, 01:12 PM   #1
Ryan@Matraex.com
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
change root@localhost.domain.com when sending email.


I am sending all my root email into one account. I am then setting up filters so that each servers email goes into it's own folder.

The problem is, some servers send their mail as, for example server "maple" in domain "matraex", will show as "FROM: root@maple.matraex.com". While others will come in as "FROM: root@localhost.domain.com." Of course I can't filter that cause 10 servers are coming in not actually showing localhost as "maple" which is the server name.

I also have logwatch emails coming in as "logwatch@localhost.domain.com" instead of "logwatch@maple.matraex.com."

I checked /etc/sysconfig/network & /etc/hosts/ but I'm not sure if these are places I want to be and if they are, what to add, remove, edit, etc.

So how do I change this so the actual name shows up, not "localhost"

Thanks guys!
 
Old 03-27-2008, 06:31 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
If you are using postfix, check /etc/postifx/main.cf. Look for this: mydestination = $myhostname, localhost.$mydomain
 
Old 07-17-2011, 03:42 PM   #3
danger89
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
It should be:
Code:
nano /etc/postfix/main.cf
 
Old 07-14-2013, 03:05 AM   #4
Treikayan
Member
 
Registered: Oct 2008
Location: Albany Park, Chicago IL
Distribution: RHEL 5.1 i386
Posts: 75

Rep: Reputation: 15
How about for Sendmail? All my messages headers have "root@localhost.localdomain" in them. Thank you.
 
  


Reply



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
Email@localhost.domain.com ?? robodeath Linux - Server 2 02-15-2007 10:07 AM
mail daily root@localhost to private email? robberttheman Linux - Newbie 4 08-27-2004 07:36 AM
issue sending email with non-root account xunzi Linux - Newbie 2 07-02-2004 09:18 PM
Changing root@localhost to root@domain.com Stingreen Linux - General 14 12-17-2002 06:21 PM
Change from root@localhost to something differnent in RH? justiceisblind Linux - Newbie 3 03-19-2002 10:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 AM.

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