OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Confusion over masquading/rewriting...

From: Kelly Price (strredwolfgmail.com)
Date: Fri Jul 01 2005 - 10:56:06 CDT


Okay, I'm having *some* confusion here. A sanitized version:

Right now, I'm working on a Postfix 2.1.5 server that belives it's
"test.domain2.tld". This server is behind a firewall, and gets mail
just fine via Fetchmail from "mail.domain.tld". domain2.tld isn't
registered anywhere, so there's no DNS other than the local system
/etc/hosts file. However, mail going out to the Internet (eg this
account on Gmail) is using localhost.domain2.tld as the local sender.
 It needs to be domain.tld (for replies and mail back to deliver
properly).

Upgrading to 2.2 is out of the question as it's a bundled server software suite.

The easy way would be to make the server belive it's "test.domain.tld"
and set masquading to "domain.tld". I may not have that option.

The only other way seems to be setting /etc/postfix/cannonical, but
that looks like to be specific users and not all users. The
documentation isn't much help in this reguard.

--
Kelly "STrRedWolf" Price
http://strredwolf.furrynet.com