Alternate checks for reinjected mail

This is a discussion on Alternate checks for reinjected mail within the mailing.postfix.users forums, part of the Mail Servers and Related category; I am running SpamAssassin via an after-queue content filter. After processing, the filter reinjects the message using the sendmail ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-24-2005
Jorey Bump
 
Posts: n/a
Default Alternate checks for reinjected mail

I am running SpamAssassin via an after-queue content filter. After
processing, the filter reinjects the message using the sendmail command,
thus subjecting it to redundant header/body checks. The first line in my
header_checks is:

/^X-Spam-Flag: YES/ HOLD

This allows me to review messages marked as spam, so the redundant
header check does serve a purpose. Is there a way to bypass all checks
after reinjection, but specify an alternate header_checks file that
would continue to perform this role?

My master.cf content filter:

spamfilter unix - n n - - pipe
flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f
${sender} -- ${recipient}

My content filter, spamfilter.sh:

#!/usr/bin/bash
/usr/bin/spamc | /usr/sbin/sendmail -i "$@"
exit $?




Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0