Possible to have SpamAssassin ONLY scan outbound Email?

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
948
29
178
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
948
29
178
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.
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.
 

vanessa

Well-Known Member
PartnerNOC
Sep 26, 2006
959
76
178
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.
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
948
29
178
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.
Ok thanks Vanessa, much appreciated. I'll test that out.
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
948
29
178
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.
 

vanessa

Well-Known Member
PartnerNOC
Sep 26, 2006
959
76
178
Virginia Beach, VA
cPanel Access Level
DataCenter Provider
Can you possibly advise how the "Enable SpamAssassin spam filter" option in tweak settings will influence this? Currently it is disabled.
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.