I have sendmail working on RHES behind NAT with a PIX firewall for some time. I would now like to masquerade "myhostname.mydomain.com" as "mail.mydomain.com" so that my outgoing email headers show mail originating from mail.mydomain.com instead of the actual hostname.
I have checked the criteria at http://www.linuxselfhelp.com/quick/sendmail.html
which are admittedly dated, but comprehensive, and so far
-my zone file shows
IN NS myhostname.mydomain.com
IN MX mail.mydomain.com
localhost IN A 192.168.1.3
myhostname IN A 192.168.1.3
mydomain.com. IN A 192.168.1.3
mail.mydomain.com. IN A 192.168.1.3
www IN CNAME myhostname.mydomain.com.
ns IN CNAME myhostname.mydomain.com.
- /etc/mail/sendmail.cf shows
- /etc/sysconfig/network shows
ain.com //default entry, disabled
- /etc/hosts shows
127.0.0.1 localhost.localdomain localhost
192.168.1.3 myhostname.mydomain.com myhostname loghost
I have a second virtual domain on this server using the same IP for mail, but that's another question for another day. This is a good start but I'm concerned about /etc/sysconfig/network. I'm working remotely and I'm not comfortable running ifdown/ifup on eth0 to get it to respond to a different hostname because I don't know what that will do to my ssh connection. Even though the ACLs and routes on the PIX are IP-based, the IPs are mapped to hostnames, and if eth0 now responds to "mail" instead of the hostname, I may have a problem. So my question is: if this configuration is correct, will it work with the PIX?