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.

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

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

Tags:
  1. Maknet Corp

    Maknet Corp Member

    Joined:
    Jul 14, 2015
    Messages:
    22
    Likes Received:
    1
    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:
    22
    Likes Received:
    1
    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:
    78
    Likes Received:
    6
    Trophy Points:
    8
    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:
    765
    Likes Received:
    20
    Trophy Points:
    18
    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.
     
Loading...

Share This Page