Skip to main content

Adding rules to spamassassin/configserver.cf have no effect.

Comments

6 comments

  • cPanelMichael
    Hello :) Have you tried implementing a custom rule like this on an environment without a third-party application such as MailScanner installed? You may want to temporarily disable MailScanner and try implementing the rules directly with SpamAsassin. As for the rules themselves, I will leave this thread open for user-feedback regarding the best way to implement rules like this. Thank you.
    0
  • serichards
    When I look on my centos installation it tells me spamassassin is in /usr/local/bin I used the which command. Installing mailscanner may lead to spamassassin being moved elsewhere. Found on another forum that mailscanner could put them in: Try creating your rules in /usr/mailcleaner/share/spamassassin instead. Also if the whitelist/blacklist shortcircuit plugin is being used then could be skipping checking those if those domains are already in a blacklist.
    0
  • kdean
    Not familiar with what changes Mailscanner applies, but with the default cPanel installed spamassassin I just edit my config here: /etc/mail/spamassassin/local.cf
    0
  • jols
    Thanks for the help folks, I really appreciate it. According to ConfigServer I should be able to enter the rules where I did: /etc/mail/spamassassin/configserver.cf ... and everything should be just fine. I will continue to research the best location for this, but do the rules themselves look okay?
    0
  • jols
    Thanks again folks. I ended up putting the rules at the following per one of the suggestions above: /etc/mail/spamassassin/local.cf And if anybody is interested, here's what I found works well: If you want to add SA scoring to any email where there is a Russian email address in the header, then just use something like this: header FROM_DOT_RU ALL =~ /\b@.{1,25}\.ru\b/i score FROM_DOT_RU 2.20
    0
  • cPanelMichael
    I am happy to see you found a solution. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.