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 PHONE : +33 6 16 83 48 97 www.postmastery.com We welcome all (positive 😉) feedback at: https://www.trustpilot.com/review/postmastery.com Le mar. 14 févr. 2023 à 09:32, Cédric Gallo <cedric.ga...@univ-lyon1.fr> a écrit : > 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: (.*)<sales@medprolasers\.com> <sales@medprolasers%5C.com>(.*)$/ > DISCARD SPAM > > Hope that can help... > Cedric > Le 14/02/2023 à 09:08, Spam Petya a écrit : > > 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 <http://main.cf>:* > > header_checks = regexp:/etc/postfix/header_checks > > *header_checks:* > > /^From:.mailer-dae...@domain.com/ REJECT comment > > /^Received: .*sending_domain_hostname.com > <http://sending_domain_hostname.com>.* / REJECT comment > > Also postmap hader_checks gives me a warning: Header_check line1: record > is in "key: value" format; is this an alias file? > > > Could anyone give me a hint please, or some working examples? > Thank you > >