Results 1 to 12 of 12

Thread: WHM option to filter mails by body count for Spam Assassin

  1. #1
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    986
    cPanel/WHM Access Level

    Root Administrator

    Default WHM option to filter mails by body count for Spam Assassin

    Hi there people. I'm facing a big flow of spam coming to our server. The problem is that the spammers are using From addresses which domains are senderscore certified, thus not being blocked by the filters.
    Sender verification is ON. Sender verification callout is OFF because it has blocked newsletters and registration mails from different services.

    The problem is that spammers are sending mails thru certified servers and using actually existing accounts in the "From" field, and their spam is arriving to several different domains with a Spam score of -1.0 or lower!

    The only way to block this I can figure out would be an option to add keywords to SpamAssassin or Exim that will work as Stop Words that trigger a filter. I obviously am able to setup mail filters in a per domain basis from each cPanel, but I need to setup this filter in about 78 domains. That's why I need a global filter of keywords.

    My stop words by now are:
    • "v a c a n c y - w u g . c o m"
    • vacancia
    • citizencompact.com
    • horst-finanzen.com
    • "ganar dinero de una manera simple"

    and must be computed in a OR basis, looking at the body content.
    Does anybody know if this kind of filtering is possible and how to do it?

  2. #2
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    986
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Help looking for a way to filter mails by body content in Exim or SpamAssassin.

    Nobody knows?

  3. #3
    Member
    Join Date
    Mar 2011
    Posts
    23

    Default Re: Help looking for a way to filter mails by body content in Exim or SpamAssassin.

    Did you ever find a way to do this?

  4. #4
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    986
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Help looking for a way to filter mails by body content in Exim or SpamAssassin.

    Nope, by now I'm setting account filters one cpanel at a time. There are 60 domains affected, so I have to configure the filter in their 60 cPanels. This is why a global filter set from the WHM would be a time saver and could help to provide a better spam protection to all the accounts. This should be located in the Exim Configuration page, in the Access List section.

    Hey staff guys! should this post be moved to Feature Requests?

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: WHM option to filter mails by body count for Spam Assassin

    As requested, I've moved the thread to the Feature Request forum. Thanks
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    986
    cPanel/WHM Access Level

    Root Administrator

    Default Re: WHM option to filter mails by body count for Spam Assassin

    ok thanks tristan. I hope to grab some attention on this because the facilities to ease spam blocking is also a nice feature to add. Take my post #4 as the final request.

  7. #7
    Registered User
    Join Date
    Oct 2007
    Posts
    1

    Lightbulb Re: WHM option to filter mails by body count for Spam Assassin

    Quote Originally Posted by Kent Brockman View Post
    ok thanks tristan. I hope to grab some attention on this because the facilities to ease spam blocking is also a nice feature to add. Take my post #4 as the final request.
    I have a solution:

    Enable /etc/cpanel_exim_system_filter in WHM->Exim Configurations.

    Add this lines to /etc/cpanel_exim_system_filter :

    Code:
    if $message_body: contains "TEXT" and not error_message
    then
      seen finish
    endif
    Replace TEXT. For example: Viagra
    Its done. You will not receive and send emails with TEXT in email body.

    Josu

  8. #8
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    986
    cPanel/WHM Access Level

    Root Administrator

    Default Re: WHM option to filter mails by body count for Spam Assassin

    Quote Originally Posted by yosusito View Post
    I have a solution:

    Enable /etc/cpanel_exim_system_filter in WHM->Exim Configurations.

    Add this lines to /etc/cpanel_exim_system_filter :

    Code:
    if $message_body: contains "TEXT" and not error_message
    then
      seen finish
    endif
    Replace TEXT. For example: Viagra
    Its done. You will not receive and send emails with TEXT in email body.

    Josu
    Nice. "TEXT" is the only part to replace and will it filter ALL the incoming and outcoming mails?

  9. #9
    Member
    Join Date
    Jul 2010
    Posts
    22

    Default Re: WHM option to filter mails by body count for Spam Assassin

    Bump.

    Server-level mail filtering is sorely missing from WHM.

  10. #10
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,769

    Default Re: WHM option to filter mails by body count for Spam Assassin

    11.32 will allow you to drop custom filter snippets in /usr/local/cpanel/etc/exim/sysfilter/options and have them appear in the UI. There currently is no UI planned to add/remove them from this directory, however one could be added in the future if there was significant enough demand.
    -Nick
    cPanel Inc.

    Need support? Submit a request here. Complimentary support is available to all license holders regardless of where you purchased your license.
    Need a complimentary support account? Create one here.

  11. #11
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: WHM option to filter mails by body count for Spam Assassin

    Quote Originally Posted by cpanelnick View Post
    11.32 will allow you to drop custom filter snippets in /usr/local/cpanel/etc/exim/sysfilter/options and have them appear in the UI. There currently is no UI planned to add/remove them from this directory, however one could be added in the future if there was significant enough demand.
    This is now propagating with version 11.31.1.2. To see if this version has propagated to your update tier, visit Downloads - cPanel Inc.

    If you would like an easier to use interface that just asks for stop words, please let us know.

  12. #12
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: WHM option to filter mails by body count for Spam Assassin

    This functionality has propagated to all update tiers so I am now closing and archiving this thread.

Similar Threads

  1. Stop sending out spam with word filter in body
    By idagroup in forum E-mail Discussions
    Replies: 7
    Last Post: 02-08-2011, 06:12 PM
  2. Using the CPanel Filter and Spam Assassin
    By stocosoft in forum cPanel & WHM Discussions
    Replies: 73
    Last Post: 08-28-2004, 12:42 PM
  3. Spam filter & Spam Assassin
    By ThunderHostingDotCom in forum cPanel & WHM Discussions
    Replies: 9
    Last Post: 12-29-2003, 07:33 PM
  4. Exim Filter Doesn't Read Spam Assassin Header
    By TomA in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 11-15-2003, 09:41 PM
  5. User high message count for mails send in WHM
    By pingo in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 01-15-2003, 05:23 PM