Hello!

                                                   /    External relay 1        
Smtp client ->  milter -> postfix  -    Local mail
                                                   \    External relay 2        

Now i'm route this messages via transport, based on X-MAC header, which set by 
milter.

The problem, is when email have both local and external recipients : To: 
u...@localmail.com, u...@external.com

If i set X-MAC: Ext1 - whole email - goes to External relay1 and my localmail 
sends me back. As a result, localmail delivers longer, than external.

If i set X-MAC: Local - whole email - goes to local delivery and external mail 
sends directly from postfix, while i want to send it via relay.


What is the best way to send local mail via local transport and external mail 
via another relays ? How can i mark message(or all messages from 
sending_domain) to choose relay for external emails.

Thank you!


------
Romaneev Vasily
mobile: +7-987-636-62-67

Reply via email to