The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Spamassassin Most Effective Config?

Discussion in 'General Discussion' started by mjm2, Jun 29, 2004.

  1. mjm2

    mjm2 Well-Known Member

    Joined:
    Oct 3, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    rm -rf /
    I have been searching Google for a very effective way to configure Spamassassin. I haven't had much luck finding sample configs, just a bunch of articles about how effective it is.

    Does anyone know of a guide or sample config to get the most out of Spamassassin? Any help would be appreciated.

    Thanks.
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  3. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    Jon you should get them to add that to your avatar. :eek: :D
     
  4. mjm2

    mjm2 Well-Known Member

    Joined:
    Oct 3, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    rm -rf /
    i did the installer by anand last week. i will read more up on the config options.

    thanks.
     
  5. mjm2

    mjm2 Well-Known Member

    Joined:
    Oct 3, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    rm -rf /
  6. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    Thanks for posting back.
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    SarcNBit, it's a heavy burden to bear :eek: ;)

    mjm2, that's a nifty URL - thanks!
     
  8. dory36

    dory36 Well-Known Member

    Joined:
    Aug 30, 2003
    Messages:
    179
    Likes Received:
    0
    Trophy Points:
    16
    My impression is that SA is most effective when run with MailScanner, but if I understand correctly, this means you have to give up end-user access to whitelisting etc through cpanel.

    Is this correct?

    Bill

    PS: If you need help getting MailScanner/SA installed the way you want, I highly recommend Chirpy!
     
  9. mjm2

    mjm2 Well-Known Member

    Joined:
    Oct 3, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    rm -rf /
    i just need to train my filters. i will be uploading some spam & ham mbox files and implementing some of the rules from rulesemporium.com. that should help me out greatly.
     
  10. mjm2

    mjm2 Well-Known Member

    Joined:
    Oct 3, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    rm -rf /
    i figure other people are checking out this thread...

    i installed a couple of rulesets from rules emporium. it looks like my filters are not picking off 90%+ of my spam!!! i am working on the bausium[sp??] training now.

    CHECK OUT www.RULESEMPORIUM.com !!
     
  11. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    How to add these config into MailScanner/SA ?
    Just insert them in the /usr/share/spamassassin/ and restart MailScanner ?
     
    #11 jameshsi, Aug 7, 2004
    Last edited: Aug 9, 2004
  12. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You should put them in /etc/mail/spamassassin/ then restart MailScanner. Better yet, use the my_rules_du_jour to run the rules_du_jour to have then downloaded kept up to date and added for you.
     
  13. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    Those rule files seem to be working great.

    I have a question: Do I need to change anything in exim.conf if I wanted to start using Spamassassin from inside Mailscanner?
     
  14. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    No, all you have to do is look at the conf file of mailscanner in /usr/mailscanner/etc , and set it right, if you don't sure and don't have time on this, as I know, chirpy can do this for you if you willing to pay him.
     
  15. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    In addition to setting up the Mailscanner config you also need to remove the Spamassassin services from Cpanel (in WHM).

    Yeah, I may ask chirpy to do the job. :)
     
  16. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Good choice. He does excellent work.
     
  17. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Is there a way to use Mailscanner + SA but still can have a way to let each user can set their own white list and black list and score ....etc.

    I found these in MailScanner.conf :

    # The per-user files (bayes, auto-whitelist, user_prefs) are looked
    # for here and in ~/.spamassassin/. Note the files are mutable.
    # If this is unset then no extra places are searched for.
    # If using Postfix, you probably want to set this as shown in the example
    # line at the end of this comment, and do
    # mkdir /var/spool/MailScanner/spamassassin
    # chown postfix.postfix /var/spool/MailScanner/spamassassin
    #SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
    SpamAssassin User State Dir =

    Is this the place to set ?

    I also notice there is a section in MailScanner :
    # Spam Whitelist:
    # Make this point to a ruleset, and anything in that ruleset whose value
    # is "yes" will *never* be marked as spam.
    # This can also be the filename of a ruleset.
    #Is Definitely Not Spam = no
    Is Definitely Not Spam = %rules-dir%/spam.whitelist.rules

    in the spam.whitelist.rules file, it's sample like this:
    #From: 152.78. yes
    #From: 130.246. yes
    FromOrTo: default no

    But what we want is for each user can set his whitelist and his very own whitelist will not effect others.
     
  18. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Apparently you can, according to the latest release notes:
    However, it's not documented. It might follow the same method as the filetypes rule file:
    http://www.sng.ecs.soton.ac.uk/mailscanner/serve/cache/97.html

    If so, then you could, feasibly, store the per domain white/blacklists in the users account, e.g. /home/username/<rulesetfile>

    I've not tried this as yet.
     
Loading...

Share This Page