J Thomas Hancock wrote:
I apologize for the questions, but this is how my Boss wants things done and who am I to argue with him. I figure he will listen to me better if I have a creditable source, the SpamAssassin mailing list, backing me up versus me by myself.



Part 1:

My boss is convinced that SpamAssassin can delete an email if it crosses a certain hit threshold. Everything I have read states that SpamAssassin can only add a flag to the message (be it a subject rewrite, something in the header, ect) and that the MTA, postfix in our case, rejects the message based on that flag. So am I correct in stating that SpamAssassin can not delete a message?


SpamAssassin can not delete the message, plain and simple.



Part 2:

My last question to this list was how to able to flag the message for deleting if the required_hits exceeds 15, for argument sake, and rewrite the subject header if the required_hits exceeds 10. I was told SpamAssassin could not do that. I looked into using MailScanner, but the PHB did not like that solution since it took too much customization to read the users preferences from a MySQL table. We came up with 2 ugly solutions.



The first solution is to run two instances of SpamAssassin. Instance one runs the required_hits for deleting the message and the second instance runs the scan for rewriting the subject. Each instance of SpamAssassin can run on a different port/IP address. Does anyone here have any experience with such a configuration?



The second solution would be to set postfix to reject a message if the header contains “Spam Score 15”, “Spam Score 16”, “Spam Score 17” ect.



Ugly, I know.



What are the thoughts of the members of this list? Does anyone have any other suggestions besides MailScanner and our two solutions?


Both SpamAssassin and Postfix should not handle this. What is in between should. I dont know what you are using to integrate postfix and SpamAssassin, but I would look around in that program as to how to do this. I'm using qmail w/ qmail-scanner which (patched) has the ability to delete messages over a certain spam threshold. I would think many other integration programs (like qmail-scanner) would be able to do this as well. This solution is far better than either that you mentioned above.


-Jim



Reply via email to