Re: dummy question, discard rcpt-to with header_checks

2020-08-10 Thread Viktor Dukhovni
On Mon, Aug 10, 2020 at 03:21:00PM -0300, SysAdmin EM wrote: > Hello, I am trying to discard the message after the DISCARD I add a > message which I use for informational purposes in the system. > > Example: > > /^To.*gus...@gmail.com/ DISCARD BLABLA001 This regular expr

Re: dummy question, discard rcpt-to with header_checks

2020-08-10 Thread SysAdmin EM
Hello, I am trying to discard the message after the DISCARD I add a message which I use for informational purposes in the system. Example: /^To.*gus...@gmail.com/ DISCARD BLABLA001 Aug 10 10:40:22 smarthost01-ded postfix/cleanup[9766]: 13F1D60065: warning: header From: Hi

Re: dummy question, discard rcpt-to with header_checks

2020-08-08 Thread Viktor Dukhovni
On Sat, Aug 08, 2020 at 01:00:20PM -0300, SysAdmin EM wrote: > I'm trying to block a recipient's address (To:) but it doesn't work. Please be more precise about what you mean by "block". Are you trying to: 1. REJECT the recipient in incoming SMTP deliveries 2. REJECT messages where that

dummy question, discard rcpt-to with header_checks

2020-08-08 Thread SysAdmin EM
Hello, I'm trying to block a recipient's address (To:) but it doesn't work. # main.cf header_checks = regexp:/etc/postfix/header_checks /^To.*gus...@gmail.com/ DISCARD warning: header Subject: test Sat, 08 Aug 2020 12:44:14 -0300 from vps-1107836-x.dattaweb.com[179.43.12