OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: bind to specific interface...
From: Jürgen Fluk (louisntm-gmbh.de)
Date: Tue Feb 08 2000 - 07:30:53 CST


Wietse Venema wrote:
> Sebastian Schaefer:
...
> > or is it possible to patch postfix to use another ip address for each
> > virtual domain... ? like virtuals for incoming mail (with inet_interfaces
> > set to all) so i could account outgoing email traffic by ip addresses...
>
> You can run multiple Postfix instances, each having its own IP
> address. Just specify: "inet_interfaces = $myhostname". Each
> instance needs its own queue and its own config-directory. Multiple
> instances can share binaries.
...
> Wietse

Is having multiple instances also the only solution if I'm in process
of changing my official IP address (as we are changing provider)?

I would like to set
        inet_interfaces = <newIP> <oldIP>
so it listens to both (does work) and would send out on any (the first)
of them (does not work as both IPs are only aliases and smtp_connect
does not bind).

I also tried the other suggestion using
        <oldIP>:smtp ... smtpd
        <newIP>:smtp ... smtpd
in master.cf (no inet_interfaces in main.cf), which works for listening.
But then the smtp-sender does not know about my interfaces (at least I
couldn't tell him).

louis

-- 
Jürgen Fluk                                 louisntm-gmbh.de
New Technologies Management GmbH            Tel +49 89 993415-56
Stefan-George-Ring 24, D-81929 München      Fax +49 89 993411-99