Operating System - Linux
1827597 Members
2841 Online
109966 Solutions
New Discussion

mail sent from host with old & new host name

 
SOLVED
Go to solution
Ratzie
Super Advisor

mail sent from host with old & new host name

I am running RedHat ES 3.0
I have configured my machine to just send outgoing emails to a relay server. I have shutdown sendmail since I do not need it.

Here is the problem..
I changed host names, and now I get dupicated emails, one using the old host name and one from the new.

AC Switch care

AC Switch care

Couple of questions...

I never stipulated anywhere that the "from" should be AC Switch care, where does it pick this up from...

And second, the 2nd email just has the hostname and not hostname.domain, where do I correct this?


2 REPLIES 2
Alexander Chuzhoy
Honored Contributor
Solution

Re: mail sent from host with old & new host name

if you use sendmail then for start edit /etc/mail/sendmail.mc.
Locate the line with masquerade_as and try to set it with your definitions.
Don't forget to run
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf when done editing.
Another important issue -save a backup of
/etc/mail/sendmail.cf first

at last
service sendmail restart
Ratzie
Super Advisor

Re: mail sent from host with old & new host name

Thanks