Friday, October 2, 2009

Episode 14: Sendmail Masquerade

Masquerading is a feature which rewrites the hostname in the address of outbound mails. This feature is usually applied to route the inbound mail from a network through a centralized mail hub. This feature is also applied to hide the actual hostname in order to manage mails to avoid using a busy hostname.

To enable this, add the following lines to the /etc/mail/ file:


Update the Sendmail configuration files using the m4 macro processor to generate a new file by executing the following command:

# m4 /etc/mail/ > /etc/mail/

To get the Sendmail macro file, the sendmail-cf package must be installed on the system.

After creating a new /etc/mail/ file, restart Sendmail for the changes to take effect. To do this, use the following command:

# service sendmail restart

For more details on the masquerading of Sendmail, use the following links:

•Red Hat Documentation:

•Sendmail - Masquerading and Relaying:

No comments:

Post a Comment