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!