|
Search tenon.com
Thanks to:
|
|
Post.Office
Re: SPAM & HAM Reporting Suggestions
|
Thanks. That did the trick. Now it shows a date and time for each
file that shows they are actually learning from the script. Now I just
get to wait and see if I set crontab up correctly.
Dan Tappin wrote:
ahhh...
The .spamassassin directory is in your home
directory:
/Users/yourusername/.spamassassin
Try:
cd (this will return you to your
home directory)
ls .spamassassin
Dan
-----Original Message-----
From: Jim Strickland [mailto:jims@xxxxxxxxxxxxxxxxxx]
Sent: Thursday, December 04, 2003 10:25 AM
To: post_office@xxxxxxxxxxxxxxx
Subject: Re: SPAM & HAM Reporting Suggestions
When I try just 'pwd' I get the following response
/private/var/spool/mailbox/434/spamassassin
When I try 'ls -al' I get the following response:
total 8
drwxrwx--- 9 mta mail 306 Nov 21 11:18 .
drwxrwx--- 3 mta mail 102 Nov 20 14:36 ..
-rw-rw---- 1 mta mail 18 Nov 21 11:18
..mailboxlist
drwx------ 6 mta mail 204 Dec 3 09:29 Deleted
Items
drwx------ 4 mta mail 136 Nov 20 15:45 Drafts
drwx------ 4 mta mail 136 Dec 4 10:42
Goodmail
drwx------ 4 mta mail 136 Nov 24 14:52 Sent
Items
drwxrwx--- 6 mta mail 204 Dec 3 17:22 in
drwx------ 4 mta mail 136 Dec 4 10:42
junkmail
Dan Tappin wrote:
Hmmm...
ls
..spamassassin/ is simply the command to list the contents of the
..spamassassin directory.
Try just
'pwd' and 'ls -al' and post what you get.
Dan
-----Original Message-----
From: Jim Strickland [mailto:jims@xxxxxxxxxxxxxxxxxx]
Sent: Thursday, December 04, 2003 9:56 AM
To: post_office@xxxxxxxxxxxxxxx
Subject: Re: SPAM & HAM Reporting Suggestions
OK. I created the script following your example. I edited
the crontab file following your example. I guess I will see later if I
have the crontab set correctly. I manually ran the script. It claimed
it learned from 3 files. That is good. Usually, when I run sa-learn
manually, I follow it by the following command: ls -alt
..spamassassin/. When I ran this command, I received a set of
statistics about tokens and other things that I never completely
understood, but at least they made me feel like sa-learn was learning.
Now, when I run the command, I get the following response:
ls: .spamassassin/: No such file or directory
My guess is that this is occuring because of the following commands in
my script
rm -rf /var/spool/mailbox/434/spamassassin/junkmail/*
rm -rf /var/spool/mailbox/434/spamassassin/goodmail/*
Is this a bad thing? If so, should I change the * to *@* like is shown
in the learning line?
Dan Tappin wrote:
I don't think it matters. I use pico because it
is the only one I can ever remember how to use (i.e. I hate vi
:^).
Dan
-----Original Message-----
From: Jim Strickland [mailto:jims@xxxxxxxxxxxxxxxxxx]
Sent: Thursday, December 04, 2003 9:28 AM
To: post_office@xxxxxxxxxxxxxxx
Subject: Re: SPAM & HAM Reporting Suggestions
Is the script I run just created in a regular editor like
emacs or do I use something else?
Dan Tappin wrote:
It's pretty easy:
Edit your
crontab file...
sudo pico
/etc/crontab
Now the
crontab file is set up as follows:
#minute
hour mday month
wday who command
0
3 *
* *
root sh /Users/tappind/Scripts/sa-learn.sh >
/dev/null 2>&1
You can
specify the days, months, weekdays, hours and seconds your script will
run. The example I have is:
Run "sh
/Users/tappind/Scripts/sa-learn.sh > /dev/null 2>&1" as
the root user at 3:00 each day. The *'s are like wild
cards.
The ">
/dev/null 2>&1" part just suppresses the output of the
script.
You can
place your script where ever you like. You just need to change
the path accordingly for your own crontab file.
Dan
-----Original
Message-----
From: Jim Strickland [mailto:jims@xxxxxxxxxxxxxxxxxx]
Sent: Wednesday, December 03, 2003 9:44 AM
To: post_office@xxxxxxxxxxxxxxx
Subject: Re: SPAM & HAM Reporting Suggestions
I am still quite new to the Unix side of OS X. I know what
cron is for but, how do I set it up to run this script at a certain
time each day? The way SpamAssassin was installed I have to run the
script as root. How do I get cron to automatically run the script as
root? Any help would be appreciated.
Dan Tappin wrote:
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/
--
James Strickland - MCP
IT Manager
American Roamer
901-377-8585
http://www.americanroamer.com
--
James Strickland - MCP
IT Manager
American Roamer
901-377-8585
http://www.americanroamer.com
--
James Strickland - MCP
IT Manager
American Roamer
901-377-8585
http://www.americanroamer.com
--
James Strickland - MCP
IT Manager
American Roamer
901-377-8585
http://www.americanroamer.com
|
| <Prev in Thread] |
Current Thread |
[Next in Thread>
|
- RE: SPAM & HAM Reporting Suggestions, (continued)
- RE: SPAM & HAM Reporting Suggestions, Dan Tappin
- RE: SPAM & HAM Reporting Suggestions, Dan Tappin
- Re: SPAM & HAM Reporting Suggestions, Jim Strickland
- RE: SPAM & HAM Reporting Suggestions, Dan Tappin
- Re: SPAM & HAM Reporting Suggestions, Jim Strickland
- RE: SPAM & HAM Reporting Suggestions, Dan Tappin
- Re: SPAM & HAM Reporting Suggestions, Jim Strickland
- RE: SPAM & HAM Reporting Suggestions, Dan Tappin
- Re: SPAM & HAM Reporting Suggestions, Jim Strickland
- RE: SPAM & HAM Reporting Suggestions, Dan Tappin
- Re: SPAM & HAM Reporting Suggestions,
Jim Strickland <=
Re: SPAM & HAM Reporting Suggestions, David Bergkvist
|
| Tenon Home |
Products |
Order |
Contact Us |
About Tenon |
Register |
Tech Support |
Resources |
Press Room |
Mailing Lists |
|
Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara,
CA 93101. All rights reserved.
Questions about our website - Contact:
webmaster@tenon.com.
|
|