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.

Possible to have SpamAssassin ONLY scan outbound Email?

Discussion in 'E-mail Discussions' started by 4u123, Feb 21, 2014.

  1. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    We have SpamAssassin disabled on all our servers and we use a cluster of external MTA's for inbound spam checking.

    I'd very much like to start using SpamAssassin to check outbound mail, but I don't want to use it for inbound filtering at all.

    Is there an easy way to do this?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Try enabling the following option in "WHM Home » Service Configuration » Exim Configuration Manager" under the "SpamAssassin Options" tab:

    "Scan outgoing messages for spam and reject based on SpamAssassin® internal spam_score setting"

    Then, browse to SpamAssassin with the cPanel interface of an account and make sure it's disabled. Or, leave it enabled and set the value to a very conservative number so that it does not block detected SPAM. Let us know the outcome.

    Thank you.
     
  3. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Thanks Michael, but the SpamAssassin service would at least need to be enabled. The problem would be globally disabling inbound filtering. If I removed it from the features list, so that the icon was not available in cpanel, I'm not sure that would be enough.
     
  4. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    In your Exim config, check this one off:

    SpamAssassin™: Forced Global ON [?]


    Your users will still have the ablity to enable it, but it will be off be default. If you don't want them to enable it, remove the feature via Feature Manager. Not sure if this is how cPanel recommends doing it, but it's how I have some of my clients' servers set up and it works fine.
     
  5. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Ok thanks Vanessa, much appreciated. I'll test that out.
     
  6. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    I've enabled the SpamAssassin service in the service manager and disabled "Forced Global ON" in the Exim config (which seems to be the default option) and set the option to scan outgoing mail. I've disabled SpamAssassin from the feature list to remove it from the cpanel interface.

    Can you possibly advise how the "Enable SpamAssassin spam filter" option in tweak settings will influence this? Currently it is disabled.
     
  7. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    That I'm not sure about. The spamd startup is configured via Service Manager. When I check this setting off, spamd doesn't stop. So it doesn't appear to affect the service, perhaps it just removes functionality from the cPanel interface itself.
     
Loading...

Share This Page