i...@itrezero.it:
> Good morning.
> Maybe I wasn't able to write a clear request :-( I'll try another way.
> 
> I've a set of IPs. I need to authenticate against each of them
> (useing different accounts on the same domain: us...@domain.com ,
> us...@domain.com , ) and want that emails are to be sent through
> the same IP.  For instance, if user1 makes authentication (I use
> Postfix + Dovecot for a pop3-before-smtp) using IP1, his emails
> must go out through IP1. The same with user2 on IP2, etc.  How can
> I reach this target?

To properly implement distinct MTA personalities, use one MTA per
IP address: http://www.postfix.org/MULTI_INSTANCE_README.html.
Unfortunately some (Linux) distributions tinker with Postfix and
unintentionally break multi-instance support.  You may have to shop
around or build from source.

It is possible to implement a partial solution with master.cf overrides:

    # filter without nexthop, requires Postfix 2.7. 
    address1:smtp .. .. .. .. .. .. smtpd -o filter=smtp1:
    address2:smtp .. .. .. .. .. .. smtpd -o filter=smtp2:

    smtp1 .. .. .. .. .. .. smtp -o smtp_bind_address=address1
    smtp2 .. .. .. .. .. .. smtp -o smtp_bind_address=address2

http://www.postfix.org/postconf.5.html#smtp_bind_address
http://www.postfix.org/master.5.html
ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-2.7.16.RELEASE_NOTES

        Wietse

Reply via email to