OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Two Postfix instances
From: Ralf Hildebrandt (news-list.postfix.usersinnominate.de)
Date: Fri Sep 01 2000 - 03:09:02 CDT


Problem: Firewall setup -- incoming mail needs to be rewritten (addresses) and
sent to one box inside the network.

No problem, I implemented that.

Real problem: The same firewall box running postfix is supposed to be used
as an outgoing relay. Of course I DON'T want mail to be rewritten if it goes
out.

Idea for a solution: For handling incoming mail, I use

in /etc/postfix/main.cf:
inet_interfaces = 213.61.xx.xx

for outgoing in /etc/postfix.outgoing/main.cf:
inet_interfaces = 192.168.40.99

and start two Postfix instances using:

exec /usr/sbin/postfix ${1+"$"}
exec /usr/sbin/postfix -c /etc/postfix.outgoing ${1+"$"}

Will that work? Will the Postfix using /etc/postfix/main.cf still be able to
relay the mail coming in at 213.61.xx.xx into the internal 192.168.x.x
network? And vice versa?

-- 
ralf.hildebrandtinnominate.de
Dipl.-Informatiker                                       innominate AG
system engineer                                      networking people
tel: +49.30.308806-62  fax: -77   http://innominate.de  pgp at request