This is a discussion on Postmap and regexp.pcre within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Anyone got any ideas as to why my postmap isn't doing as it's supposed to? I have header_checks ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Anyone got any ideas as to why my postmap isn't doing as it's supposed to?
I have header_checks as shown below and a sample email, but postmap doesn't seem to work in the way it's supposed to. header_checks:- /^Subject: .*Affordable Health Coverage/ REJECT /^Subject: .*Affordable Health Insurance/ REJECT /^Subject: .*Aging Breakthrough/ REJECT test email:- From: Postmaster@here.com To: Postmaster@there.com Cc: Bcc: Subject: Affordable Health Coverage Reply-To: # postmap -q - regexp:/tmp/header_checks < /tmp/testmail Gives nothing # postmap -q "Subject: Affordable Health Coverage" regexp:/tmp/header_checks # REJECT As you can see it seems to work there. Any ideas why the first one doesn't work, which is how it's suppose to - pcre does the same btw? Cheers, Pete |
![]() |
| Thread Tools | |
| Display Modes | |
|
|