icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Email » Make SPAM ASSASSIN work for you...

Email General questions, webmail, mailing lists.

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 11 votes, 4.82 average.
Old October 19th, 2006, 2:05 PM   #82 (permalink)
Registered User
Fresh Surpasser
 
Joined in Oct 2006
18 posts
Gave thanks: 5
Thanked 0 times
Quote:
Originally Posted by Bigjohn View Post
try a trailing slash?
So it would look like this?
Code:
#!/bin/sh
echo "Learning SPAM"
for FILE in `find $HOME -name .SPAM/ -print`
do
echo "Processing $FILE"
sa-learn --spam --mbox $FILE
rm $FILE
touch $FILE
done

echo " "
echo "Learning HAM"
for FILE in `find $HOME -name .HAM/ -print`
do
echo "Processing $FILE"
sa-learn --ham  --mbox $FILE
rm $FILE
touch $FILE
done
echo "Done"
Thanks for your help!
__________________
grokdesigns.com
Server Name: Pass65
grokdesigns is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 19th, 2006, 3:15 PM   #83 (permalink)
Registered User
Fresh Surpasser
 
Joined in Oct 2006
18 posts
Gave thanks: 5
Thanked 0 times
Well, this didn't work, now I just get:
Learning SPAM

Learning HAM
Done



Quote:
Originally Posted by grokdesigns View Post
So it would look like this?
Code:
#!/bin/sh
echo "Learning SPAM"
for FILE in `find $HOME -name .SPAM/ -print`
do
echo "Processing $FILE"
sa-learn --spam --mbox $FILE
rm $FILE
touch $FILE
done

echo " "
echo "Learning HAM"
for FILE in `find $HOME -name .HAM/ -print`
do
echo "Processing $FILE"
sa-learn --ham  --mbox $FILE
rm $FILE
touch $FILE
done
echo "Done"
Thanks for your help!
__________________
grokdesigns.com
Server Name: Pass65
grokdesigns is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 19th, 2006, 3:25 PM   #84 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
why did you name the folders with the DOT?
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 19th, 2006, 3:34 PM   #85 (permalink)
Registered User
Fresh Surpasser
 
Joined in Oct 2006
18 posts
Gave thanks: 5
Thanked 0 times
Quote:
Originally Posted by Bigjohn View Post
why did you name the folders with the DOT?
That's how the system named them, see attached image. I created the folders through Horde.
Attached Thumbnails
make-spam-assassin-work-you-dirs.gif  
__________________
grokdesigns.com
Server Name: Pass65
grokdesigns is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 19th, 2006, 3:45 PM   #86 (permalink)
Surpass Fan
Comfy Contributor
 
jdcopelin's Avatar
 
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
167 posts
Gave thanks: 23
Thanked 19 times
Hi,

I remember reading on this forum (or maybe the cpanel.net forums) that you cannot "clear out" messages that you train spamassassin with using the same cron job when the server uses the maildir format (which some surpass servers are being changed to). This is because each email is stored in a separate file (not in one large archive file for each folder as with mailbox format which you could run a "touch" command on). You have to implement an PHP/IMAP script to go through each of the spam/ham folders and select messages of a certain age to delete. Or you just have to delete some messages manually - for instance, I have Thunderbird set up to do this for me.

Hope that helps.

Jonathan
__________________
Server: Pass32 and dedicated server
jdcopelin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 19th, 2006, 5:20 PM   #87 (permalink)
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
937 posts
Gave thanks: 2
Thanked 95 times
Quote:
Originally Posted by grokdesigns View Post
That's how the system named them, see attached image. I created the folders through Horde.
The dot makes it "hidden". It is not part of the name.
__________________
Where would you be if you were at the highest court in the land (US)?
cowboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 19th, 2006, 7:08 PM   #88 (permalink)
Registered User
Fresh Surpasser
 
Joined in Oct 2006
18 posts
Gave thanks: 5
Thanked 0 times
Quote:
Originally Posted by cowboy View Post
The dot makes it "hidden". It is not part of the name.
It doesn't list a path if I take the dot out. I'm banging my head against a wall here.
__________________
grokdesigns.com
Server Name: Pass65
grokdesigns is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 24th, 2006, 11:41 AM   #89 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2003
Lives in Spokane, Washinton
Hosted on SH124
6 posts
Gave thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by Bigjohn View Post
I figured I'd pop in here and provide a little 'Spam Assassin' micro tutorial.

First, let's have spam asssassin flag messages that it thinks are spam for us.
Find the box that says rewrite-subject.
delete any value in that box, and enter the number 1.

Second, find the box that says subject_tag.
This is where you enter the 'flag' message that will be put at the beginning of any suspected spams subject line. Enter (without the quotes) "**Possible-Spam**" here.

Third, find the box marked required_hits.
Here you enter the minimum score that a message must have to trigger the flagging you just set up above. Mine is set to 4.5, but initially - to prevent a bunch of false positives, I would set it to 5 or 6.
I'm not sure if I have a different version of SpamAssassin, but I don't have rewrite-subject or subject_tab. And required_hits is required_score. Any suggestions?

Last edited by avagodro; October 24th, 2006 at 11:42 AM..
avagodro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 24th, 2006, 12:14 PM   #90 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
those are in the mail/spam assassin cpanel.
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On