Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to do host masquerading in postfix?

Status
Not open for further replies.

InigoMontoya

IS-IT--Management
Jun 18, 2003
51
0
0
US
Hello All,

I have a linux workstation that when I send mail from it it shows the hostname.domain.com in the From line. I want it to behave as other workstations (sendmail) where the 'hostname' portion is masqueraded with the 'mailserver'. The From: line then has mailserver.domain.com?
In sendmail I set the parameter with MASQUERADE_AS line. I was able to have the same effect in postfix by changing the 'myhostname' parameter in the main.cf line to myhostname = mailserver.domain.com instead of hostname.domain.com. But I'm not sure if this is the correct way of doing it.
Is what I did wrong? Is there a correct or better way to perform the masquerading? Thanks.
BTW...there is a masquerade_domains parameter in the main.cf file but it doesn't hide the hostname. There is no masquerade_hostname that I see but it would make sense if there is one. Anyway...thanks for any help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top