OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Live modification of smtp_bind_address

From: Wietse Venema (wietseporcupine.org)
Date: Fri Dec 02 2005 - 08:39:45 CST


Emmanuel Lacour:
> On Fri, Dec 02, 2005 at 11:21:21AM +0100, Emmanuel Lacour wrote:
> >
> > Hi,
> >
> > I would like to route mails via diff?rent smtp_bind_address based on a
> > mail header or an address mail extension.
> >
> > My first idea was to define one smtp for each IP in master.cf like this:
> >
> > smtp-25 unix - - - - - smtp -o smtp_bind_address=10.0.0.25
> > smtp-24 unix - - - - - smtp -o smtp_bind_address=10.0.0.26
> >
> >
> I'm able to make it working with a transport maps based on email
> extension:
>
> /^(.*)\+(.*)(.*)$/ smtp-$2:
>
> but I now need to remove the extension before sending. Is this possible?

With the Postfix 2.2 generic_maps feature.

        Wietse