|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: header checks not working
From: Magnus Bäck (magnus
dsek.lth.se)
Date: Wed Jul 01 2009 - 01:39:57 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, July 1, 2009 8:13 am, Rob Brandt said:
> Could I get an example of how to use postmap -q? I have tried:
>
> postmap -q "X-Spam-Flag: YES" /etc/postfix/header_checks
>
> where "X-Spam-Flag: YES" is the header I am trying to check and
> /etc/postfix/header_checks is the current name of my header_checks file.
Yes, but you need to tell Postfix that it's a regexp map:
postmap -q "X-Spam-Flag: YES" regexp:/etc/postfix/header_checks
> I get no return values, I've read the man and I think I'm supposed to
> get a 0 when it matches.
Correct. If you get a match postmap(1) will print the matching line.
--
Magnus Bäck
magnus
dsek.lth.se
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]