Hallo Wietse, in my /etc/postfix/transport I have this
mydomain.com relay:relay.server.local * discard This configuration accept all E-mails addressed to @mydomain.com. If I will put this to my transport file: supp...@mydomain.com discard mydomain.com relay:relay.server.local * discard It will not work. How to do it properly ? Accept all To: *@mydomain.com except supp...@mydomain.com MfG Zalezny On Wed, Jul 13, 2016 at 1:06 PM, Wietse Venema <wie...@porcupine.org> wrote: > Zalezny Niezalezny: > > Dear Colleagues, > > > > in our test app environment we are using real e-mail addresses to test. > > Each test application sending to our test relay server some e-mails. On > > that machine we are filtering all incoming E-mails from our test > > environment. > > > > > > - we are accepting E-mails addressed to our internal domain (TO: > > u...@mydomain.com) > > - we are dropping all external e-mails (TO: @gmail, @hotmail etc.etc.) > with > > transport table (* error: ) > > > > > > Unfortunately pool of our internal domains, include also technical > > accounts. How to properly discard all E-mails addressed for example TO: > > supp...@mydomain.com ? > > Use a transport table that returns "discard:" for those recipients. > > Wietse >