I am currently using a postfix/spamassassin mail gateway.  I have spamassassin getting individual required_hits from a MySQL data base.  I would like to be able to add to the header X-Spam-Deleteable YES of the socre is above 15 other wise add X-Spam-Deleteable NO.  The score is 10 or higher I would like to rewrite the subject line with the score.  I can then use postfix to reject any email with X-Spam-Deleteable YES.

 

What is the easiest/best way to accomplish this?  Would I need to add a record to each username in the userpref tables something like required_hits_to_delete?  Once defined I could then do  something like:

 

if ( spamscore > required_hits_to_delete)

            add_header all Deleteable YES

endif

 

Any input would be helpful,

Tom

 

Reply via email to