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.

SpamAssassin at SMTP level

Discussion in 'E-mail Discussions' started by Feemish, Sep 11, 2014.

  1. Feemish

    Feemish Member

    Joined:
    Oct 26, 2005
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    CENTOS 5.10 i686 xenpv – server
    WHM 11.44.1 (build 18)

    I am addressing this problem;


    ########################################

    I have a VPS set up as MX for several of my domains. The e-mail for these domains are just aliases to other mail accounts (mostly Gmail) to forward incoming mail. Ofcourse this catches also much spam e-mail that is than rejected by Gmail (and my VPS becomse temporarily blocked)

    I could of course install something like SpamAssassin on my VPS so it would filter out most spam. But as I'm not hosting the e-mail myself (e.g. providing IMAP) I can't give users a way to see if there were any false positives etc.

    Is there a way to better manage spam on my VPS to avoid the constant blocking of Gmail, or is this something that is simply unavoidable?

    ################################

    I found this answer;

    ################################

    You can't tell the receiving MX where you want your mail to go. I would set up SpamAssassin, set it to a threshold of 6 (instead of the default 5) and reject all mails above that threshold at SMTP level (with SA-Exim, for example). Then your mails either pass the spam check and get delivered or the sender (if it is a real mail server) gets a notification that the message could not be delivered because it looked spammy.

    ################################

    So I implemented it here;

    WHM : Exim Configuration Manager : ACL options : SpamAssassin™ reject spam score threshold : Set to 6


    1. Is that correct?
    2. Where will I see information about which messages are rejected?

    Thanks for your help!
     
    #1 Feemish, Sep 11, 2014
    Last edited: Sep 11, 2014
  2. Feemish

    Feemish Member

    Joined:
    Oct 26, 2005
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    The server is still forwarding spam email to the gmail accounts.

    By the way;
    CENTOS 5.10 i686 xenpv – server
    WHM 11.44.1 (build 18)
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    What entries do you see in /var/log/exim_mainlog regarding the SPAM scores of those messages? That should help dictate what value you should set as the rejection score.

    Thank you.
     
  4. Feemish

    Feemish Member

    Joined:
    Oct 26, 2005
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Thanks for the reply.

    I can see no mention of spam assassin in that log at all.
    looking for 'spam' only finds the message from google about rate limiting my account. (which is appearing many times!)
     
  5. Feemish

    Feemish Member

    Joined:
    Oct 26, 2005
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    To be clear, the email addresses forwarding the spam do not have accounts. They are just forwarders.
     
  6. lorio

    lorio Well-Known Member

    Joined:
    Feb 25, 2004
    Messages:
    243
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    SpamAssassin should scan the email if you create the email account before setting up a forwarder for it, but it won't scan forwarded email on it's own. There is an open feature request that may interest you:

    SpamAssassin Scan Email Forwarders | cPanel Feature Requests

    Please see the update from 2 days ago for details about a new feature planned for cPanel version 11.48.

    Thank you.
     
Loading...

Share This Page