* Wietse Venema <postfix-users@postfix.org>:
> Patrick Ben Koetter:
> > I'm having trouble with a simple header check running in a pre-queue amavis
> > setup.
> > 
> > The filter should DISCARD any Subject that begins with "SPAM-Verdacht
> > CUSTOMERNAME:"
> > 
> > # Pattern                               Aktion
> > /^Subject:\ (SPAM-Verdacht CUSTOMERNAME:\ .*)$/   DISCARD $1
> 
> To test the rule with actual mail:
> 
> postmap -hq - pcre:/path/to/file < messagefile

Had done so before without -h and did it again with -h:

# postmap -hq - pcre:/etc/postfix/header.chk < /home/p/spam-2.msg 
Subject: SPAM-Verdacht CUSTOMERNAME: Testpattern        DISCARD SPAM-Verdacht 
CUSTOMERNAME: Testpattern

I also ran cleanup verbose, but it wouldn't report anything related to
header_checks.

Rather clueless at the moment.

p@rick

-- 
All technical questions asked privately will be automatically answered on the
list and archived for public access unless privacy is explicitely required and
justified.

saslfinger (debugging SMTP AUTH):
<http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>

Reply via email to