Re: postfix header check question

2023-02-24 Thread Wietse Venema
Wietse Venema: > Spam Petya: > > Hi! > > > > I am still getting NDR-s. I uploaded come ndr header to a txt file to test > > with postmap, and I am seeing the REJECT, so the header_check is working if > > I understand right. > > I used this command to test: postmap -vq - > >

Re: postfix header check question

2023-02-24 Thread Wietse Venema
Spam Petya: > Hi! > > I am still getting NDR-s. I uploaded come ndr header to a txt file to test > with postmap, and I am seeing the REJECT, so the header_check is working if > I understand right. > I used this command to test: postmap -vq - > regexp:/etc/postfix/header_checks < uploaded_text.txt

Re: postfix header check question

2023-02-24 Thread Spam Petya
Hi! I am still getting NDR-s. I uploaded come ndr header to a txt file to test with postmap, and I am seeing the REJECT, so the header_check is working if I understand right. I used this command to test: postmap -vq - regexp:/etc/postfix/header_checks < uploaded_text.txt Output: (...) postmap:

Re: postfix header check question

2023-02-16 Thread Wietse Venema
Spam Petya: > Hi! > Thank you for the examples. But the solution is this not working. I wrote > this to the header_checks: > /^From: (.*)mailer-dae...@fmfwd00.freemail.hu(.*)$/ REJECT message > /^Received: (.*)fmfwd00.freemail.hu(.*)$/ REJECT message > > Still NDR-s are passing through. Header

Re: postfix header check question

2023-02-16 Thread Xavier Beaudouin
Hello > Hi! > Thank you for the examples. But the solution is this not working. I wrote this > to the header_checks: > /^From: (.*)mailer-dae...@fmfwd00.freemail.hu(.*)$/ REJECT message > /^Received: (.*)fmfwd00.freemail.hu(.*)$/ REJECT message > Still NDR-s are passing through. Header examples

Re: postfix header check question

2023-02-16 Thread Spam Petya
Hi! Thank you for the examples. But the solution is this not working. I wrote this to the header_checks: /^From: (.*)mailer-dae...@fmfwd00.freemail.hu(.*)$/ REJECT message /^Received: (.*)fmfwd00.freemail.hu(.*)$/ REJECT message Still NDR-s are passing through. Header examples from NDR:

Re: postfix header check question

2023-02-14 Thread Juan Carlos Rey Anaya
Here are some examples to detect Subject headers: Hope it is useful. if /^Subject: / /Professor Positions - Faculty Positions in Higher Education/ REJECT subject rejected /Dear Friend,/    REJECT subject rejected /The closest thing to flying a REAL plane!/    REJECT subject rejected /Your Last

Re: postfix header check question

2023-02-14 Thread Yves-Marie LE PORS-CHAUVEL
Hi there, *Also postmap hader_checks gives me a warning: Header_check line1: record is in "key: value" format; is this an alias file?* That's normal, you don't need to *postmap* regex files ! -- Postmastery *Email Infrastructure, Analytics and Deliverability* Amsterdam, NL / Paris, FR

Re: postfix header check question

2023-02-14 Thread Cédric Gallo
Hi, Here are some examples : /^Subject: (.*)New Notification Regarding Your Storage(.*)$/ DISCARD Anti-phishing /^From: (.*)it.ad...@server.fr(.*)$/ REJECT Anti-phishing /^Subject: new photos from my party!/ REJECT /^Reply-To: (.*)(.*)$/  DISCARD SPAM Hope that can help... Cedric Le

postfix header check question

2023-02-14 Thread Spam Petya
Hi! I would like to use postfix header check. I read the manual, examples, and forums, yet I am unable to set up what I would like. We are getting non delivery reports, and I'd like to silent drop/delete them. Any working examples are welcome. My settings are: *main.cf :*