Re: preference transport_maps and alias_maps

2015-06-18 Thread Steve Zeng
smartphone on the Bell network. Original Message From: Viktor Dukhovni Sent: Thursday, June 18, 2015 5:54 PM To: postfix-users@postfix.org Reply To: postfix-users@postfix.org Subject: Re: preference transport_maps and alias_maps On Thu, Jun 18, 2015 at 07:53:58PM +, Steve Zeng wrote

Re: preference transport_maps and alias_maps

2015-06-18 Thread Viktor Dukhovni
On Thu, Jun 18, 2015 at 07:53:58PM +, Steve Zeng wrote: > transport_maps = hash:/etc/postfix/transport > > /etc/postfix/transport > == > trustedcompany.com : > mycompany.com : > * error:5.1.2 recipient domains not allowed > > It works quite well until it is reported that the

Re: preference transport_maps and alias_maps

2015-06-18 Thread Wietse Venema
Steve Zeng: > Is there any way to make the alias map take preference to the transport map? Fundamentally not possible. The transport chooses the delkiery agent. The local delivery agent expands alias_maps. The precedence is described in ADDRESS_REWRITING_README a.k.a. http://www.postfix.org/ADDRE

preference transport_maps and alias_maps

2015-06-18 Thread Steve Zeng
Greetings! I implemented a rule with transport_maps to block all public email delivery except whitelisted domains as below: /etc/postfix/main.cf = transport_maps = hash:/etc/postfix/transport /etc/postfix/transport == trustedcompany.com : mycompany.com : * error