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

RE: SPAM & HAM Reporting Suggestions

To: <post_office@xxxxxxxxxxxxxxx>
Subject: RE: SPAM & HAM Reporting Suggestions
From: "Dan Tappin" <dan.tappin@xxxxxxxxxxxxxxx>
Date: Wed, 3 Dec 2003 09:09:42 -0700
As a follow-up here is the handy spam / ham processing script that I created:

-----------------------------------------------

echo "Processing SPAM..."

sa-learn --spam --showdots --file
/var/spool/mailbox/177/sa_learn/spam/*@*

echo "Deleting processed SPAM..."

rm -rf /var/spool/mailbox/177/sa_learn/spam/*

echo "Cleaning up Mailbox..."

touch /var/spool/mailbox/177/sa_learn/spam/__lock__
touch /var/spool/mailbox/177/sa_learn/spam/__cache__

chown mta:mail /var/spool/mailbox/177/sa_learn/spam/*
chmod 600 /var/spool/mailbox/177/sa_learn/spam/*

echo "Processing HAM..."

sa-learn --spam --showdots --file
/var/spool/mailbox/177/sa_learn/ham/*@*

echo "Deleting processed HAM..."

rm -rf /var/spool/mailbox/177/sa_learn/ham/*

echo "Cleaning up Mailbox..."

touch /var/spool/mailbox/177/sa_learn/ham/__lock__
touch /var/spool/mailbox/177/sa_learn/ham/__cache__

chown mta:mail /var/spool/mailbox/177/sa_learn/ham/*
chmod 600 /var/spool/mailbox/177/sa_learn/ham/*

-------------------------------------

I created a sa-learn account in PO and a IMAP account in my e-mail client.  I 
just drag and drop my spam and ham to the appropriate
folders and I have cron running this script every night.

The script does the following:

 - runs sa-learn
 - deletes the processed message(s)
 - recreates the cache and lock files with the proper permissions

You will need to check the appropriate mailbox number on your system when you 
create your learning account.

Any tweaks or suggestions are welcomed.

> -----Original Message-----
> From: Dan Tappin [mailto:dan.tappin@xxxxxxxxxxxxxxx]
> Sent: Tuesday, December 02, 2003 7:44 AM
> To: post_office@xxxxxxxxxxxxxxx
> Subject: RE: SPAM & HAM Reporting Suggestions
>
>
> That's a great idea!  That is way easier than how I was thinking about it.
>
> Thanks a million,
>
> Dan
>
> > -----Original Message-----
> > From: Jim Strickland [mailto:jims@xxxxxxxxxxxxxxxxxx]
> > Sent: Monday, December 01, 2003 4:16 PM
> > To: post_office@xxxxxxxxxxxxxxx
> > Subject: Re: SPAM & HAM Reporting Suggestions
> >
> >
> > What I did was create a SpamAssassin IMAP account. Within that account I
> > used one of my email client machines to create two folders, one for
> > junkmail, and one for goodmail. I give each client machine access to
> > those two folders. Each person in my company can now move junkmail to
> > the "junkmail" folder and copy good mail to the "goodmail" folder. I can
> > then run sa-learn on those two folders. So far everything seems to be
> > working great.
> >
> > Dan Tappin wrote:
> >
> > >I was wondering if any one has any automation tips for reporting spam & 
> > >ham for SA.
> > >
> > >Up until now I was using the Spamcop mail bundle for Apple's Mail App:
> > >
> > >http://www.subsume.com/static/WebObjects/SubsumeSite/SubsumeSite/Tech/Software/SpamCop.html
> > >
> > >The issue is that this plug-in sends all the selected messages a one big 
> > >message with each spam as an attachment.  This
> > works great
> > >for Spamcop but sa-learn expects individual messages.
> > >
> > >Can anyone suggest an easy way to bulk-redirect messages to either a spam 
> > >or ham reporting address using Apple's Mail app?
> > >
> > >Dan
> > >
> > >--
> > >Dan Tappin, P. Eng.
> > >Senior Engineer
> > >O'Rourke Engineering Ltd. <http://www.orourke.ca/>
> > >(403) 298-9639
> > >
> > >---------
> > >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/
> > >
> > >
> > >
> >
> > --
> > James Strickland - MCP
> > IT Manager
> > American Roamer
> > 901-377-8585
> > http://www.americanroamer.com
> >
> > ---------
> > 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/
> ---------
> 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/

---------
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/


| 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