Tenon Intersystems Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation

Search tenon.com

Thanks to:

Post.Office

spam scores in message headers (script)

To: post_office@xxxxxxxxxxxxxxx
Subject: spam scores in message headers (script)
From: Joe Savelberg <joe@xxxxxxxxxxx>
Date: Thu, 29 Jan 2004 02:35:36 +0100
Hi all,

The first version of my script to rewrite spam messages is now online.

http://www.euregio.net/joe/postoffice/spamsort.html

What the script does:

- it scans your local spam-catcher mailbox through a cron job
- found messages can be run through SpamAssassin again to add a spam report
- found messages can just get their subject rewritten (which is faster)
- the messages are re-distributed to their original local recipient
- re-distribution can be done to the original POP3 inbox or a separate folder which is accessible by an IMAP client
- messages from the spam-catcher mailbox are deleted after processing
- the scanning/rewrite process can be limited to just some mailboxes


These options can be enabled and disabled in the script.

There is an online wizard which makes configuration of the script quite easy.


Why would you use this script?


Let's imagine you run a Post.Office mail server with several hundred accounts. You've setup SpamAssassin on that server to filter out unwanted messages. However as a conscientious postmaster, you decided to collect all filtered messages in a local mailbox for manual review. Any false positives are forwarded by you to their original recipient.

After a while, there are hundreds of messages waiting for a manual review. It's time consuming and there is still a chance that you miss a false positive after a red-eyed programming session.

It would be so much easier if Post.Office could rewrite the message subjects and put the messages into the original recipient's mailboxes making your manual review obsolete.

This scenario is quite likely -- it's what's happening around our office. So I decided to write the script which scans the spam-catcher mailbox and then re-distributes the messages back into the original mailboxes with a changed subject.

However there are a few clients who can't care less about any false positives, so there is a possibility to exclude those accounts from the redistribution.

After I hinted on this mailing list that I was working on such a script, I received a lot of interest (even from Tenon :-)). So I spent the last 10 hours working on this script and testing it. The first public release is now available on my Post.Office tips and tricks web site.

http://www.euregio.net/joe/postoffice/

The documentation is still a little bit rough around the edges but I think if you've got some experience with running shell scripts, you can manage to install the script and get it working on your server.

Running all filtered messages through SpamAssassin again is not a very elegant solution but it gets the job done (taking quite some time). Therefore there is still the original subject rewrite option in the script which works quite fast.

How the messages will be analyzed by SpamAssassin depends on your setup. It looks at the current SpamAssassin configuration which is also used by Post.Office. I might add some more features (such as a separate SA config file) when I see enough interest in the script.

A quick hint, make sure your SpamAssassin configuration (/etc/mail/spamassassin/local.cf) uses following commands:

rewrite_subject 1
always_add_headers      1
subject_tag     *****SPAM*****
report_safe     1
use_terse_report        0

If you are adventurous you can also play around with the SpamAssassin report settings...


Comments, feedback and donations are welcome... ;-)


Joe.


PS: Use with care. It's been tested on our server and I tried to make sure it works on other systems as well but you never know... therefore I suggest you play around with it and just include your own mailbox for starters.


--
-----------------+----------------+----------------------------------
Jochen Savelberg | Euregio.Net AG | domain registrations, co-location
joe@xxxxxxxxxxx  | Wirtzfeld 140  | hosting, marketing, entertainment
Online Producer  | 4760 Bullingen | consulting, training, development
MIS/IT Director  | Belgium        |      http://www.euregio.net
-----------------+----------------+----------------------------------
Internet Services since 1995 - AFS-Returnee '93, Belgium to Australia
---------
Tenon Intersystems' Post.Office Mailing List
To unsubscribe: send mailto:post_office-request@xxxxxxxxxxxxxxx
with the body only containing: unsubscribe
Find the searchable mailing list archives at:
http://postoffice.computeroil.com/

<Prev in Thread] Current Thread [Next in Thread>
  • spam scores in message headers (script), Joe Savelberg <=

| Tenon Home | Products | Order | Contact Us | About Tenon | Register | Tech Support | Resources | Press Room | Mailing Lists |

Powered By iTools

Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara, CA 93101. All rights reserved.
Questions about our website - Contact: webmaster@tenon.com.


Tenon Home  Tenon Home  Tenon Home  Tenon Home Product Info  Tenon Ordering Contact About Register Support Resources Press Mailing Lists