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 » SpamAssassin post-conversion

Email General questions, webmail, mailing lists.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old August 3rd, 2007, 12:05 PM   #10 (permalink)
Registered User
Fresh Surpasser
 
TheAngryPenguin's Avatar
 
Joined in Sep 2004
16 posts
Gave thanks: 0
Thanked 0 times
Not sure if other servers have been configured the same as mine, but messages identified as SPAM are no longer being converted to attachments.
TheAngryPenguin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 3rd, 2007, 1:05 PM   #11 (permalink)
Surpass Fan
Comfy Contributor
 
pseudoswede's Avatar
 
Joined in Jun 2003
Lives in Denver
Hosted on D9
142 posts
Gave thanks: 4
Thanked 3 times
Quote:
Originally Posted by TheAngryPenguin View Post
Not sure if other servers have been configured the same as mine, but messages identified as SPAM are no longer being converted to attachments.
I was wondering about that, too.

But if you look in the expanded header of the e-mail, that's where all of the info previously listed in the e-mail. I wonder if it's so that you can better analyze the e-mail as a potential HAM without having to open the attachment?
__________________
"In the end, everything will be fine - if it is not fine, it is not the end."
PseudoSwede
larvez.com
Dime9
pseudoswede is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 7th, 2007, 7:54 PM   #12 (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
Hmm.
Reading on the Spam Assassin wiki...
Quote:
Similar to the training example above, for a maildir format mailbox, the commands should be altered as shown below.

For a mailbox you're sure contains only spam messages,


sa-learn --showdots --spam spam-files or spam-directory/* for a whole folder of spam

Then you get a mailbox full of messages you're sure are ham and teach Bayes about those:

sa-learn --showdots --ham ham-files or ham-directory/* for a whole folder of ham

Again, it's important to do both.
Of course, my script does not use --showdots because it runs as CRON....

But here is the modification I made to the original SA-learn script (basically I took out --mbox, and added /* per the above quote...).
Code:
#!/bin/sh
echo "Learning SPAM"
for FILE in `find $HOME/mail/ -name SPAM -print`
do
echo "Processing $FILE"
sa-learn --spam $FILE/*
done

echo "Learning HAM"
for FILE in `find $HOME/mail/ -name HAM -print`
do
echo "Processing $FILE"
sa-learn --ham  $FILE/*
rm $FILE
touch $FILE
done
echo "Done"
But funny thing... this is the result...
Code:
Learning SPAM
Learning HAM
Processing /home/##/mail/stegenga.net/mailtrap/HAM
Learned tokens from 0 message(s) (0 message(s) examined)
Processing /home/##/mail/host-my-site.com/sales/HAM
Learned tokens from 0 message(s) (0 message(s) examined)
Processing /home/##/mail/mybrainhost.com/sales/INBOX/HAM
Learned tokens from 0 message(s) (0 message(s) examined)
Processing /home/##/mail/mybrainhost.com/sales/HAM
Learned tokens from 0 message(s) (0 message(s) examined)
Processing /home/##/mail/mybrainhost.com/abuse/HAM
Learned tokens from 0 message(s) (0 message(s) examined)
Processing /home/##/mail/mybrainhost.com/support/HAM
Learned tokens from 0 message(s) (0 message(s) examined)
Processing /home/##/mail/mybrainhost.com/design/HAM
Learned tokens from 0 message(s) (0 message(s) examined)
Done
The code looks right to parse "maildir", and it looks like it parsed the HAM folders correctly... what's up?

(oh, the ## is to block out the account name.
__________________
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!

Last edited by Bigjohn; August 7th, 2007 at 8:01 PM.. Reason: link to SA wiki added
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 17th, 2007, 4:24 AM   #13 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,225 posts
Gave thanks: 18
Thanked 86 times
My cPanel was upgraded to version 11 today and I noticed the changes in SpamAssassin. In redoing my email filtering, I learned that to filter on the Spam Bar correctly, you need to escape each "+" with a "\". So, if you want to filter on 8 +'s then you need to enter the following into the field: \+\+\+\+\+\+\+\+

It will then show the filter as:

$h_X-Spam-Bar: contains "\+\+\+\+\+\+\+\+"

Or you can filter on the Spam Score, choose "is above" and enter 79 into the box for the same effect. 79 = 7.9 essentially.

Hope that helps.
MarkRH 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