On Thu, May 26, 2016 at 04:30:15PM +0300, Romaneev Vasily wrote:

> 
>                                                    /    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.

What is the purpose of this milter?  Routing by header rather than
envelope easily creates mail forwarding loops and must be avoided.

> 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.

The best way is to not let milters make routing decisions.

-- 
        Viktor.

Reply via email to