Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 8 1 2 3 ... LastLast
Results 1 to 15 of 115
  1. #1
    Member
    Join Date
    Jun 2003
    Location
    Ottawa
    Posts
    23

    Question SpamAssassin auto-delete does not work

    To simply have the server DELETE and NOT deliver emails that are tagged as spam by SpamAssassin, click here now.
    In vain I click, and the emails are still delivered to the email addresses instead of being deleted as exacted. How can I make SpamAssassin delete spam?

    SpamAssassin: enabled
    SpamBox: disabled

    Thanks!
    Alex
    http://whois.saeven.net
    Whois.Cart()

  2. #2
    Zaf
    Zaf is offline
    Member
    Join Date
    Aug 2005
    Posts
    119

    Default

    Create an email filter from Manage Email submenu in cPanel. Select SPAM ASSASSIN SPAM HEADER in the drop down list; select 'begins with'; 'Yes'; type "Discard" in destination. That should do it for you

  3. #3
    Member
    Join Date
    Apr 2005
    Posts
    7

    Default discard

    Hi,

    I tried the discard filter literly and several times.
    I checked many times, but didn't work for the spam box.

    I disabled the SPAM box also (because every spam came into it and I needed to check that box constantly to free webspace)
    But now it comes in my inbox...
    So only option is enabeling.

    I also tried these setting:
    Filter Destination
    $h_X-Spam-Status: begins "Yes" Discard
    $h_X-Spam-Status: contains "[SPAM]" Discard
    $header_subject: contains "SPAM" Discard
    $header_subject: contains "[SPAM]" Discard

    But non gave result.
    I guess discard doesn't work.
    How can I setup so Spam is not delivered and just deleted?
    Last edited by godyn; 12-18-2005 at 08:45 AM.

  4. #4
    Member
    Join Date
    Aug 2004
    Posts
    174

    Default

    Has anyone found a solution I have the same problem for some domains for some others the filter works fine.

  5. #5
    Member
    Join Date
    Apr 2004
    Posts
    320

    Thumbs up

    Try the following Filter :

    Code:
    [Any Header] that [contains] [X-Spam-Status: Yes] Destination [:fail:]
    shown as :

    Code:
    $message_headers contains "X-Spam-Status: Yes" :fail:
    That should work for you...

    Regards.

  6. #6
    Member
    Join Date
    Apr 2005
    Posts
    7

    Default

    Thanks so much !
    I've installed it.
    Hope it works.

    Where can I lookup all the options for the filters? I did not find a :fail: command.

  7. #7
    Member
    Join Date
    Apr 2004
    Posts
    320

    Default

    :fail: = The sender receives a message that the mailbox does not exist. This functionality is documented in the catch-all section. Dunno where other options are documented. Instead of :fail: you can still use Discard.

    Regards.

  8. #8
    Member
    Join Date
    Apr 2005
    Posts
    7

    Default

    than I rather have fail, so the spammer get their junk back ;-)
    THX !

  9. #9
    Member
    Join Date
    Aug 2004
    Posts
    174

    Default

    Nope filters aren´t working for me here is one message I got today:

    Spam detection software, running on the system "server1.la-nets.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details.

    Content preview: KOKO PETROLEUM (KKPT) - THIS STOCK IS UNDISCOVERED S T O
    C K GEM Current Price: 1.50 Symbol - KKPT [...]

    Content analysis details: (18.9 points, 7.0 required)

    pts rule name description
    ---- ---------------------- --------------------------------------------------
    2.9 FROM_LOCAL_NOVOWEL From: localpart has series of non-vowel letters
    3.5 BAYES_99 BODY: Bayesian spam probability is 99 to 100%
    [score: 1.0000]
    2.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address
    [68.35.62.27 listed in dnsbl.sorbs.net]
    3.9 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL
    [68.35.62.27 listed in sbl-xbl.spamhaus.org]
    1.9 RCVD_IN_NJABL_DUL RBL: NJABL: dialup sender did non-local SMTP
    [68.35.62.27 listed in combined.njabl.org]
    1.9 RATWARE_MS_HASH Bulk email fingerprint (msgid ms hash) found
    2.8 RATWARE_OUTLOOK_NONAME Bulk email fingerprint (Outlook no name)
    found

    If anyone knows why the filters aren´t working I would appreciate it alot.

    Thank you

    PD

    Also so far I have putted this filters, but they don´t seem to work:

    $h_X-Spam-Status: begins "Yes" Discard
    $header_subject: contains "***SPAM***" Discard
    $message_headers contains "X-Spam-Status: Yes" Discard
    Last edited by screege; 12-28-2005 at 11:02 AM.

  10. #10
    Member
    Join Date
    Apr 2004
    Posts
    320

    Unhappy

    Hi,

    Is it possible your e-mail filter is called before SpamAssassin? In that case, it's perfectly explainable...

    For some reason one of my domains does no longer work with the set e-mail filter too...

    Testing the e-mail with the set filter says it will be "tagged"... I think cPanel made a mistake and configured the e-mail filter to be run before SpamAssassin... can anyone please confirm this??

    Thanks.

  11. #11
    Member
    Join Date
    Aug 2001
    Posts
    132

    Default

    There is definitely a problem with filters not working that has started in the last few days. We too are finding that some, but not all, spam that is correctly tagged and should be discarded by a filter is not being discarded.

    The funny thing is that most stuff is being correctly filtered, only some messages are not being filtered.

    Anyone got any ideas?

    PS: I'm on the Release version, and I tried restarting Exim. This is affecting 2 servers so far.

  12. #12
    Member HollyRidge's Avatar
    Join Date
    Feb 2003
    Location
    Garner NC USA
    Posts
    124

    Default

    Having the same problem that started a couple of days ago, even though settings have been active and working for months! Also now some of my legit mail isnt geting through.

  13. #13
    Member HollyRidge's Avatar
    Join Date
    Feb 2003
    Location
    Garner NC USA
    Posts
    124

    Default

    Ok I got it where my mail isnt deleted by disabling spamassassin and reenabling it, then deleting out all of my mail filters. I tried putting mail filters back in but mail stops getting to my mail boxes when I do this.

  14. #14
    Member
    Join Date
    Mar 2002
    Location
    North Carolina
    Posts
    49

    Default

    Quote Originally Posted by Wallaby
    There is definitely a problem with filters not working that has started in the last few days. We too are finding that some, but not all, spam that is correctly tagged and should be discarded by a filter is not being discarded.

    The funny thing is that most stuff is being correctly filtered, only some messages are not being filtered.

    Anyone got any ideas?

    PS: I'm on the Release version, and I tried restarting Exim. This is affecting 2 servers so far.
    I'm on STABLE, and this has been going on for me, too, for about a week. I'm probably going to post a sample with full headers a little later when I get time. The thing that seems to be common among the strange new messages that are getting around the Exim filter is that they all contain a line like the following:
    Code:
    X-Spam-Exim: u4TZITDwFB6uz5Zx7o4QsT92
    Which is meaningless to me, but apparently messes with the Exim transport code somehow when Spamassassin is integrated.
    - Tom

  15. #15
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    Midlands, UK
    Posts
    1

    Default

    We have been experiencing a similar problem over the past few days...

    Quote Originally Posted by fcsnc
    The thing that seems to be common among the strange new messages that are getting around the Exim filter is that they all contain a line like the following:
    Code:
    X-Spam-Exim: u4TZITDwFB6uz5Zx7o4QsT92
    I notice that this is correct, the majority of messages marked of spam are being discarded by exim fiters as expected, however the ones that have started getting through all contain this header (X-Spam-Exim).

    I just thought I'd share this idea with you as a possible temporary solution (I know it isn't a suitable long-term solution and I haven't had chance to test if it actually works yet). I've added the following line to SpamAssassins local.cf file (I attempted a per-user setting but a change to SpamAssassin settings by the user via cPanel messes this up):

    Code:
    remove_header spam Exim
    (and then restart exim so that the SpamAssassin settings are reloaded)

    This causes SpamAssassin to remove the potentially problematic X-Spam-Exim header from all email messages marked as spam. As I said, this may not work - I've not had chance to test yet but its an idea for a 'quick-fix' - any potential problems/views on this would be appreciated.


    Regards,
    Shaun Smith

+ Reply to Thread
Page 1 of 8 1 2 3 ... LastLast
Similar Threads & Tags
Similar threads

  1. Planned for 11.34 [Case 49170] SpamAssassin Auto-Delete interface improvement
    By canvas in forum Feature Requests for cPanel/WHM
    Replies: 7
    Last Post: 08-20-2011, 03:52 AM
  2. Spamassassin Auto Delete Spam Emails
    By cheemin in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-01-2006, 12:15 AM
  3. SpamAssassin Problem - E-Mail Wont work if SpamAssassin enabled!
    By peterquast in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-27-2005, 11:18 AM
  4. Have SpamAssassin Delete Message
    By TheBee in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-28-2004, 01:33 PM
  5. Spamassassin (Delete with hits over 5)
    By fizz in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-31-2004, 10:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube