Save the message to a file. And test like this:

% postmap -q - pcre:/etc/postfix/body_checks.pcre <messagefile

So does this.

 cat << EOF > /tmp/testfile
 TEST BAD CONTENT
 EOF
 postmap -q - pcre:/etc/postfix/body_checks.pcre </tmp/testfile
   TEST BAD CONTENT REJECT  554 5.7.1 Message not allowed

But the message sent from gmail still gets through.

I get this feeling I'm missing something really simple here :-/
You could use the message file from your imap server or look at the raw message in your mail program and save that to a file...
Thanks,

Billy

Christian

Reply via email to