+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 25

Thread: To be continued - Controlling SPAM in my domains

  1. #1

    Arrow To be continued - Controlling SPAM in my domains

    Hi,

    It is a bit difficult now to continue on a thread that doesn't exist anymore, but i'd like to recreate this thread for people to share best practices on controlling SPAM and setting up the Scores properly in SPAMASSASSIN.

    In the old thread, I had a user by the name of richard (he still has to join the new forums again though) who discussed some methods in using the "sa-learn" command in SSH to teach the bayesian filters about uncaught spam.

    If i remember correctly, the method he described was to create a folder under your mailbox called "uncaught" or something similar, and moving all SPAM messages that slipped through spamassassin in this folder.

    The, to make SA aware of this, you run the command:

    Code:
    sa-learn -D --mbox --spam ~/mail/yourdomain.com/yourmailbox/uncaught


    After running this command from SSH, SA will know about these messages that it let through, and eventually learn to mark these with a higher spam score.

    richard can run this command on his bluehost account with no problems, but unfortunately, when I run this command on box77, I get some errors:

    Code:
    [31364] dbg: metadata: X-Spam-Relays-Trusted:
    [31364] dbg: metadata: X-Spam-Relays-Untrusted:
    [31364] dbg: message: ---- MIME PARSER START ----
    [31364] dbg: message: main message type: text/plain
    [31364] dbg: message: parsing normal part
    [31364] dbg: message: added part, type: text/plain
    [31364] dbg: message: ---- MIME PARSER END ----
    [31364] dbg: message: no encoding detected
    [31364] dbg: bayes: DB_File module not installed, cannot use bayes
    Learned tokens from 0 message(s) (1 message(s) examined)
    ERROR: the Bayes learn function returned an error, please re-run with -D for more information
    Can anyone else confirm if this is working on their accounts, and how to enable the particular DB_File module?

    And continue sharing new ideas please
    Thanks!
    Jacauc
    Last edited by jacauc; 02-09-2006 at 10:20 PM.

  2. #2
    Join Date
    Feb 2006
    Posts
    12

    Default

    That's a good summary of where the thread was, jacauc. Me and DB_File.so are on box62. I guess I just lucked into a good one. Maybe you should take this direct to a support ticket?
    Last edited by richard; 02-10-2006 at 10:36 AM.

  3. #3

    Default

    OK, logged a ticket.. they might be able to help me.

    Richard,
    Is it necessary to run this command on my "spam" folder too (to tell SA that it has correctly identified spam - kinda making it more confident for next time )

    And also, should I run it with the Ham option on my inbox?

    Cheers
    J

  4. #4
    Join Date
    Feb 2006
    Location
    Wanganui, New Zealand
    Posts
    12

    Default Spam and Cookies

    Most of you will be aware of this, but a surprising number aren't.
    A lot of incoming garbage can be avoided by changing your IE privacy cookie control settings from the Windows default setting, which is not tough enough.
    Either change it to Medium High at least:


    or click on the advanced tab and block all 3rd party cookies:


    Firefox doesn't give you as much control but you can check "For the originating site only" in the Options dialogue box.

  5. #5
    Join Date
    Feb 2006
    Posts
    12

    Default

    Quote Originally Posted by jacauc
    OK, logged a ticket.. they might be able to help me.

    Richard,
    Is it necessary to run this command on my "spam" folder too (to tell SA that it has correctly identified spam - kinda making it more confident for next time )

    And also, should I run it with the Ham option on my inbox?

    Cheers
    J
    I would just answer flatly, but since we already know our boxes are somewhat different, I'll tell you how to check:

    Look at the X-Spam-Status header of a spam message. Near the end of the line you should see "autolearn=spam". If you do, then spam messages are automatically being routed through the spam learner. Also, inspect similarly a clean message and check for "autolearn=ham". That means it was learned as good stuff.

    If you see something else, time for another support ticket! If you see what I've described, all you ever have to do is feed sa-learn the mistakes with the appropriate choice of "--spam" or "--ham". That will undo the autolearn damage and learn the message(s) in the proper category.

    Please let me know how support resolves your DB_File issue. Just curious.

  6. #6

    Default

    Ok, got it!

    Got a reply on my ticket on saturday stating:
    I will forward this request to our tech2 group. They will be getting back to you as soon as they can.
    Will wait for this one to resolve before going ahead. (might be related issues.) I Did quote this thread in the ticket though, so they'll see this.

    I also noticed on mattheaton.com that they will be implementing a proper spam filtering system soon. YAY!

    Shot!
    J

  7. #7
    Join Date
    Feb 2006
    Posts
    11

    Default

    One thing I have done is create a php script that goes through my inbox and removes spam several times an hour. The script is really basic, and works with the ability that Spam Assassin has to rewrite the messages header. I have it put a [SPAM] tag at the beginning of the subject line, and then the script deletes messages that have that tag.

    It is not a very sophisticated script, but it does the job. If you are interested in using the script, you can download it by going to http://www.lakemicro.com/spam_killer.php

    In the future, I will be modifying the script to go off of the header information instead of the subject line. But that is something that is on the "Will do when I have time" list.

  8. #8

    Default

    Well, isn't this the same as going into "email filtering" from the control panel, and setting up a filter like this:

    To filter all mail that SpamAssasin has marked as spam, just choose "SpamAssassin Spam Header", "begins with", and then enter "Yes" in the box.
    That'll do the same job right?

    Cheers!
    J

  9. #9
    Join Date
    Feb 2006
    Posts
    11

    Default

    I did not know that was there... Thanks for bringing it to my attention.
    Mike Kieffer
    ----------------------
    www.prosphotos.com - Photography Link Directory
    photo.prosphotos.com - My Photography

  10. #10

    Default

    Guess thats what makes this forum a great place

+ Reply to Thread

Similar Threads

  1. Stop the Spam!
    By pllobell in forum Advanced Scripting, and Coding help!
    Replies: 14
    Last Post: 09-01-2007, 02:09 PM
  2. Bluehost.com servers on spam blacklists?
    By Wes in forum General Questions
    Replies: 3
    Last Post: 03-19-2006, 07:53 AM
  3. spam?
    By steven in forum General Questions
    Replies: 3
    Last Post: 03-06-2006, 10:09 AM
  4. Be careful when getting Spam Box enabled...
    By walker in forum General Questions
    Replies: 0
    Last Post: 03-06-2006, 02:48 AM
  5. Spam
    By alan in forum General Questions
    Replies: 1
    Last Post: 02-19-2006, 09:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts