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.

Spammassassin filter error

Discussion in 'General Discussion' started by willke, Oct 1, 2007.

  1. willke

    willke Well-Known Member

    Joined:
    Mar 30, 2005
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Using Cpanel 11

    I enabled Spamassassin on an account and (using Cpanel) set up a filter for emails to be discarded when "X-Spam-Bar" is above 8

    I noticed that no emails were coming through and when I checked the incoming mail queue, they were being held with an error ...

    ===
    == me@domain.com R=central_filter defer (-17): error in filter file: malformed numerical string "/"

    ==

    I removed the filter and emails started flowing OK.

    I readded the filter in Cpanel and run the Cpanel filter test and got the following;

    Filter error: malformed numerical string ""

    Any one seen this before or know what the problem is ?

    Thanks.

    Will
     
  2. cPanelBilly

    cPanelBilly Guest

    Your filter is expected to have a numerical string in it. Post the filter file here so we can look at it further.
     
  3. willke

    willke Well-Known Member

    Joined:
    Mar 30, 2005
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    This is what etc/vfilter/domain.ext says


    # Exim filter

    if not first_delivery and error_message then finish endif

    if
    $h_X-Spam-Bar: is above "8"
    then
    save "/dev/null" 660
    endif


    -------------

    I've tried manually removing the " " around the 8 but no difference

    Thx.
     
  4. willke

    willke Well-Known Member

    Joined:
    Mar 30, 2005
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Also, home/user/.filter says ....


    $h_X-Spam-Bar: is above "8"+++++++/dev/null
     
  5. cPanelBilly

    cPanelBilly Guest

    if
    ($h_X-Spam-Score: matches \N^\d+$\N and $h_X-Spam-Score: is above 8)
    then
    save "/dev/null" 660
    endif
     
  6. willke

    willke Well-Known Member

    Joined:
    Mar 30, 2005
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Thanks, Billy, that seems to work, as it gives me the following output...

    ------

    Match expanded arguments:
    Subject =
    Pattern = ^\d+$
    Return-path copied from sender
    Sender = user@serverXXXXX.com
    Recipient = user@serverXXXXX.com
    Testing Exim filter file "/etc/vfilters/user.com"

    Filtering did not set up a significant delivery.
    Normal delivery will occur.

    -----------

    Does this mean I have to manually do this every time I set up a filter via CPanel? Is this a known bug in Cpanel 11?

    Will
     
  7. willke

    willke Well-Known Member

    Joined:
    Mar 30, 2005
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6

    Just realised ... the quote section above means that filtering is not set up, so I'm still scratching my head. :confused::confused:

    Will
     
  8. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    just remove filters for this user and it will work.

    I wonder if anyone has got some script to search and fix it? at least search for this kind of problem?

    Anton
     
Loading...

Share This Page