Sendmail masquerade outgoing email address

Posted: September 14, 2008 in LINUX
Tags: ,

If you just need an outgoing email from web server use sendmail. But what is masquerading?

With the help of masquerading your outgoing email appers from instead of This will also hide your internal user name or host name from rest of the world.

So this feature rewrites the hostname in the address of outgoing mail. This is also used when you have centralized mail server i.e. mail hub.

Sendmail masquerading configuration

Open your sendmail config file /etc/mail/
# vi /etc/mail/
Append/add/modify the lines as follows:

Save and close the file. Replace domain name with your actual domain name. Update and restat sendmail server:
# m4 /etc/mail/ > /etc/mail/
# /etc/init.d/sendmail restart


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s