Jump to content

MikeS

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by MikeS

  1. Also if anyone is intrested in removing the spam after it scans the folder you can add a line with this after the sa-learn command rm -rf .spamfoldername/cur/*
  2. Thank you Andy that did the trick....
  3. I do have my default email to :fail: in the past year I think i have a total of 63 alltogether which pretty much every once in a while I was getting one, I try to be very careful with my main email acct. I noticed recently though that I am averaging a couple a day, which is not bad and easy enough to handle client side. I just figured setting SA up and training it would be a better alternative in the long run. I did lower my threshold down to a 4 but it seams they are still slipping in. If I go into the mailbox and go into \cur directory and read the file It looks like SA is giving it a rating of 3.2 I dont know if thats too low to set my threshold to where I will start getting ham mixed in with my spam. If anyone can give me some advice please feel free to chime in.
  4. I did some further tweaking and changed the line to this nice -n 19 sa-learn --spam --mbox --showdots .myspam/cur/ echo "" echo "Processing HAM $DNAME$USER" nice -n 19 sa-learn --ham --mbox --showdots .myham/cur/ This time I got the message Processing SPAM /home/domain/mail/domain.com/mike .... Learned tokens from 4 message(s) (4 message(s) examined) Processing HAM /home/domain/mail/domain.com/mike Learned tokens from 0 message(s) (0 message(s) examined) There is alot more mail in myspam foolder I have had that folder sitting there for about a year for some reason I was under the impression way back that spam assasin looked for this folder and trained from it (silly me). Is there any reason that it would only detect 4 messages there are a total of 63 in there. It also didnt detect anything I had in myham folder and there are a few messages in there.
  5. Im having a little bit of a problem with this Im getting this back from my cronjob Processing SPAM /home/domain/mail/domain.com/mike archive-iterator: unable to open myspam: No such file or directory Learned tokens from 0 message(s) (0 message(s) examined) Processing HAM /home/domain/mail/domain.com/mike archive-iterator: unable to open myham: No such file or directory Learned tokens from 0 message(s) (0 message(s) examined) I aslo tried changing this line in the script and adding in .myspam and .myham echo "Processing SPAM $DNAME$USER" nice -n 19 sa-learn --spam --mbox --showdots .myspam echo "" echo "Processing HAM $DNAME$USER" nice -n 19 sa-learn --ham --mbox --showdots .myham I then got the below results Processing SPAM /home/domain/mail/domain.com/mike Learned tokens from 0 message(s) (0 message(s) examined) Processing HAM /home/domain/mail/domain.com/mike Learned tokens from 0 message(s) (0 message(s) examined There are emails in both folders myspam & myham This is a copy of my current script >#!/bin/sh ## ## Script to make Spam Assassin learn Ham and Spam from different folders ## echo "Learning SPAM" DNAME="$HOME/mail/domain.com/" for USER in $(ls $DNAME) do cd $DNAME cd $USER echo "" echo "Processing SPAM $DNAME$USER" nice -n 19 sa-learn --spam --mbox --showdots myspam echo "" echo "Processing HAM $DNAME$USER" nice -n 19 sa-learn --ham --mbox --showdots myham cd .. cd .. echo "" echo "" done cd $DNAME echo "Processing Special Email accounts" echo "Processing spam-learn@****" nice -n 19 sa-learn --spam --mbox --showdots spam-learn/inbox echo "" echo "Processing ham-learn@****" nice -n 19 sa-learn --ham --mbox --showdots ham-learn/inbox echo "" echo "" echo "Done"
  6. Thanks for the warm welcomes. Does anyone have a little more info on this that can help me out.
  7. Jacob did you customize your user_prefs file any or is it just the default? Mine looks like the following anything else that can be tweaked ? ># SpamAssassin user preferences file. See 'perldoc Mail::SpamAssassin::Conf' # for details of what can be tweaked. ########################################################################### # How many points before a mail is considered spam. # required_score 5 # Whitelist and blacklist addresses are now file-glob-style patterns, so # "friend@somewhere.com", "*@isp.com", or "*.domain.net" will all work. # whitelist_from someone@somewhere.com # Add your own customised scores for some tests below. The default scores are # read from the installed spamassassin rules files, but you can override them # here. To see the list of tests and their default scores, go to # [url="http://spamassassin.apache.org/tests.html"]http://spamassassin.apache.org/tests.html[/url] . # # score SYMBOLIC_TEST_NAME n.nn # Speakers of Asian languages, like Chinese, Japanese and Korean, will almost # definitely want to uncomment the following lines. They will switch off some # rules that detect 8-bit characters, which commonly trigger on mails using CJK # character sets, or that assume a western-style charset is in use. # # score HTML_COMMENT_8BITS 0 # score UPPERCASE_25_50 0 # score UPPERCASE_50_75 0 # score UPPERCASE_75_100 0 # score OBSCURED_EMAIL 0 # Speakers of any language that uses non-English, accented characters may wish # to uncomment the following lines. They turn off rules that fire on # misformatted messages generated by common mail apps in contravention of the # email RFCs. # score SUBJ_ILLEGAL_CHARS 0 required_score 3.0
×
×
  • Create New...