At 03:21 PM 6/03/03, [EMAIL PROTECTED] sent this up the stick:
We have a mail server on the inside of our network, that cannot be reached
externally, but serves all mail for our systems. Postfix on our
firewall/gateway is to forward all mail destined for our mail systems to
this server.  To complicate things, we have more than one domain name, but
postfix should automagically change the domain name to our regular one on
the way through. (Ie. [EMAIL PROTECTED] should be changed
to [EMAIL PROTECTED] and passed through to our internal mail
server.) Additionally, scripts on the firewall/gateway send to the root
user and the root user has a .forward file which contains my email
address.

To rewrite domains, you use the masqurerade_domains option.


myorigin = $mydomain
mydomain = capitalholdings.com.au
masquerade_domains = capitalholdingsgroup.com.au

You might also want to check http://www.postfix.org/rewrite.html and man(5) virtual for address redirection.

I'm not sure what to set mydestination to as according to the docs it
"specifies what domains this machine will deliver locally rather than
forwarding to another machine". However if postfix is proxying, do I set
this as per normal - in which case how should I set it for our other
domain names? (Is below correct?)

mydestination is used for local delivery


Have a look at http://www.postfix.org/faq.html#firewall for setting up Postfix on a firewall

Here's the parameters I think may need to be set in main.cf (got a feeling
I've got this wrong as the proxying concepts aren't clear for me):

myorigin = $mydomain
mydestination = $myhostname localhost.$mydomain $mydomain
relaydomains = $mydomain capitalholdingsgroup.com.au
mynetworks = 192.168.100.0/24, 27.0.0.0/8"
proxy_interfaces = 192.168.100.1
virtual_alias_maps = hash:/etc/postfix/virtual

mydestination should be the hostname of the internal mailserver. There really is no need to allow relaying for the whole 127.0.0.0/8 subnet .... you really only need 127.0.0.1/32



and /etc/postfix/virtual to contain the following line:
capitalholdingsgroup.com.au capitalholdings.com.au

I'm not sure you'll need that


cheers,
Rob


--
The optimist thinks this is the best of all possible worlds. The pessimist is afraid that it is.


This is random quote 1033 of 1254.

Distance from the centre of the brewing universe
[15200.8 km (8207.8 mi), 262.8 deg](Apparent) Rennerian

Public Key fingerprint = 6219 33BD A37B 368D 29F5 19FB 945D C4D7 1F66 D9C5

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to