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?

Thank you a lot.
--Francesco

-----Messaggio originale-----
Da: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
Per conto di i...@itrezero.it
Inviato: martedì 15 luglio 2014 15:45
A: postfix-users@postfix.org
Oggetto: Sender transport settings not override default transport

Hi all,
I'm facing with a strange problem with my Postfix machine.
I have some different IP addresses and dovecot as po3-before-smtp 
authentication system.
I can login to postfix using userna...@mydomain.com + password and send emails 
using default smtp transport (these emails are sent through the same IP where 
the user was logged in).
Now I want to setup another IP to be used as the former one: a user can login 
using userna...@mydomain.com on second IP and his emails must have to be 
delivered through this second IP.
In practice I want this:
[ user 1 ] authenticating on IP1 => postfix sends emails using transport on
IP1
[ user 2 ] authenticating  on IP2 => postfix sends emails using transport on
IP2
[ user n ].....

I tried to configure sender_dependent_default_transport_maps as here
(regexp):
/^username1\@mydomain\.com$/ smtp1:
/^username2\@mydomain\.com$/ smtp2:

and in master.cf I have:
smtp unix -       -       n       -       -       smtp
smtp1 unix -       -       n       -       -       smtp
   -o smtp_bind_address=x.y.z.d
   -o smtp_helo_name=mx1.mydomain.com
   -o syslog_name=postfix-smtp1
smtp2 unix -       -       n       -       -       smtp
   -o smtp_bind_address=x.y.z.f
   -o smtp_helo_name=mx2.mydomain.com
   -o syslog_name=postfix-smtp2

The "smtp" transport is intended to be used from all other users and is the 
"default transport" of my Postfix instance.

The PROBLEM is that this configuration is not executed and all emails are sent 
through default transport.
Can you help me?
Thanks a lot
-Francesco



---
Questa e-mail è priva di virus e malware perché è attiva la protezione avast! 
Antivirus.
http://www.avast.com


---
Questa e-mail è priva di virus e malware perché è attiva la protezione avast! 
Antivirus.
http://www.avast.com

Reply via email to