Re: Delivering to virtual_alias_maps only?

2020-10-10 Thread Viktor Dukhovni
On Sat, Oct 10, 2020 at 05:15:37PM +0200, Marek Kozlowski wrote: > Is it possible to accept mail if the recipients address is found in > virtual_alias_maps and reject in all other cases? Let's imagine I have > two entries for virtual_alias_maps: Following

Re: Delivering to virtual_alias_maps only?

2020-10-10 Thread Wietse Venema
Wietse Venema: > Marek Kozlowski: > > :-) > > > > Must be simple... but I missed it. > > The answer is in http://www.postfix.org/ADDRESS_CLASS_README.html. > > If you don't want to receive and deliver email for the local class, > set local_recipient_maps to empty, or set the local_transport to

Re: Delivering to virtual_alias_maps only?

2020-10-10 Thread Wietse Venema
Marek Kozlowski: > :-) > > Must be simple... but I missed it. The answer is in http://www.postfix.org/ADDRESS_CLASS_README.html. If you don't want to receive and deliver email for the local class, set local_recipient_maps to empty, or set the local_transport to "error:email to this domain is

Delivering to virtual_alias_maps only?

2020-10-10 Thread Marek Kozlowski
:-) Must be simple... but I missed it. I asked for it in the context on LDAP but I think I may simplify my question: Is it possible to accept mail if the recipients address is found in virtual_alias_maps and reject in all other cases? Let's imagine I have two entries for virtual_alias_maps: