Unsolved
This post is more than 5 years old
2 Posts
0
37308
August 1st, 2005 08:00
Change sendmail from "localhost.localdomain"
I have a new pre-installed RHEL 4 server.
How (and where) can I change the sendmail to reflect the actual domain without reloading the entire OS ??
The hostname is correct - I've changed the sendmail.cf - checked the domaintables - not working.
All help appreciated.
How (and where) can I change the sendmail to reflect the actual domain without reloading the entire OS ??
The hostname is correct - I've changed the sendmail.cf - checked the domaintables - not working.
All help appreciated.
0 events found
No Events found!


rpenna
3 Posts
0
August 2nd, 2005 13:00
You should be able to change that setting in /etc/mail/sendmail.cf, but I'm assuming you already tried this?
Scan for this line:
#Dj$w.Foo.COM
Uncomment it and put your fully qualified domain name after Dj. So if your machine name was server.domain.com:
Djserver.domain.com
Restart sendmail.
Message Edited by rpenna on 08-02-2005 09:48 AM
Eric BY
2 Intern
•
815 Posts
0
August 13th, 2005 14:00
In in sendmail.mc file
change this line
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
to
MASQUERADE_DOMAIN(mydomain.com)dnl
then restart sendmail. In RHEL4 the sendmail-cf rpm will update the sendmail.cf file if there is an update to the sendmail.mc file on restart of the sendmail service.
You can also install postfix which is easier and faster to configure than sendmail.