Re: header_checks bypassing discard rules

2016-06-29 Thread Zalezny Niezalezny
Hi, @Wietse, than You for Your feedback. Now its working with transport map. domain.com relay:[smtp1.domain.local] domain.com relay:[smtp.domain.local] * error: Only one is allowed With "error:" parameter Postfix filtering is working like a charm. :)

Re: header_checks bypassing discard rules

2016-06-29 Thread Wietse Venema
Zalezny Niezalezny: > Hi Noel, > > I just tested Your solution, but its not working with multiple RCPT TO: > > When I`m sending an E-mail using telnet command, an email with single RCPT > TO: zalezny.niezale...@gmail.com is working fine. its blocked. > But when I will put second RCPT TO: u...@dom

Re: header_checks bypassing discard rules

2016-06-29 Thread Benny Pedersen
On 2016-06-29 10:59, Zalezny Niezalezny wrote: But when I will put second RCPT TO: u...@domain.com, then both E-mails are send, even that restricted by transport table. header_checks is not pr recipient so it does not work if you like to make pr recipient use check_policy_service but check_p

Re: header_checks bypassing discard rules

2016-06-29 Thread Zalezny Niezalezny
Hi Noel, I just tested Your solution, but its not working with multiple RCPT TO: When I`m sending an E-mail using telnet command, an email with single RCPT TO: zalezny.niezale...@gmail.com is working fine. its blocked. But when I will put second RCPT TO: u...@domain.com, then both E-mails are se

Re: header_checks bypassing discard rules

2016-06-27 Thread Zalezny
Wow, thanks for that perfect tip. On June 27, 2016 5:15:52 PM GMT+02:00, Noel Jones wrote: >On 6/27/2016 3:39 AM, Zalezny Niezalezny wrote: >> Hi, >> >> using header_checks configuration we are dropping all outgoing >> E-mails except some of them. >> >> >> # discard all mails not going to

Re: header_checks bypassing discard rules

2016-06-27 Thread Noel Jones
On 6/27/2016 3:39 AM, Zalezny Niezalezny wrote: > Hi, > > using header_checks configuration we are dropping all outgoing > E-mails except some of them. > > > # discard all mails not going to cortalconsors.(de|fr) > if /^to:/ > !/^to:?$/ DISCARD discarded > endif > > Following rules dropping

header_checks bypassing discard rules

2016-06-27 Thread Zalezny Niezalezny
Hi, using header_checks configuration we are dropping all outgoing E-mails except some of them. # discard all mails not going to cortalconsors.(de|fr) if /^to:/ !/^to:?$/ DISCARD discarded endif Following rules dropping all outgoing e-mails with recipeint domains different than extern.domain.c