Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Where to put custom SA rules (local.cf doesn't work)

Discussion in 'E-mail Discussion' started by Maknet Corp, May 18, 2016.

Tags:
  1. Maknet Corp

    Maknet Corp Member

    Joined:
    Jul 14, 2015
    Messages:
    24
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    My understanding is that to make some custom rules, you should edit:

    /etc/mail/spamassassin/local.cf

    It's been moved to:
    /etc/mail/spamassassin/local.cf.rpmsave

    after the last update and now when I put something in, like:

    blacklist_from test_email@hotmail.com, it doesn't seem to work.

    According to this, local.cf is no longer supported as of version 54:
    Custom SpamAssassin Rules

    So, does anyone know the "correct way" to put in custom, server-wide rules in WHM?

    Thanks.
     
    #1 Maknet Corp, May 18, 2016
    Last edited: May 18, 2016
    rpvw likes this.
  2. Maknet Corp

    Maknet Corp Member

    Joined:
    Jul 14, 2015
    Messages:
    24
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    Am I supposed to just make a new /etc/mail/spamassassin/custom.cf file and put my rules in there?
    (And of course, /scripts/restartsrv_spamd)?
     
  3. bloatedstoat

    bloatedstoat Well-Known Member

    Joined:
    Jun 14, 2012
    Messages:
    127
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Victoria, Australia
    cPanel Access Level:
    Root Administrator
    That's exactly what I did and have never had any issues. Custom rules and customised scoring etc.
     
  4. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    1,030
    Likes Received:
    47
    Trophy Points:
    28
    cPanel Access Level:
    Root Administrator
    If you don't manage this, there is an exim config change that you can do which allows you to build an email blacklist.
    I've put this in to practice an it works well.
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,141
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice