Configure Spam Filters
Log in to Control Panel
You can find a guide for that by clicking this here.
Click E-mail Manager on left side
Click Spam Filter Config on left side
Here, in the screenshot above, you can see the interface for configuring your account’s spam filters. Next, let’s break down what each section means.
Where to send the spam?
Remember that what you set here doesn’t necessarily mean that it will always be spam, so you should be careful, this could be what you want it to also do with false positives. The “Send the spam to the user’s spam folder” option is by far the most popular. This can, however, cause a problem with forwarders which we’ll explain in a FAQ at the bottom of this article.
Any email scoring at or above the value set here will be considered spam and treated as otherwise configured on this page. A setting of 10 here is probably a decent starting point, but you could start higher (15 maybe?) and see how things work out for you before adjusting further.
To delete or not to delete?
You might set an upper threshold here so as to say “If it hits a score this high, I don’t even want to see it, just reject it.” That is what this option allows you to do, or not do.
Do you want to identify what we considered to be spam, based on your settings, by changing the email subject to make it obvious? You can do that here, if you want.
How to deliver spam
In theory this allows you to basically quarantine the email by requiring you to download it as an attachment. This function, frankly, doesn’t work very well. You are welcome to try it, we’re not prioritizing it and more than likely will end up removing it in a future iteration (it was added there by licensed software).
Blocklist and Allowlist
Scrolling down on that page you’ll find where you can modify your blocklist and allowlist. You can use wildcards here as well. Here are a few examples of things you can put in those boxes (Always click “Add” after):
Allowing a whole domain:
Allowing a specific sender:
Blocking a specific sender:
Blocking a TLD:
- At the top I see “Manually edit the config file yourself” does that work?
Yes. If you feel comfortable writing your own user_prefs file for SpamAssassin, go for it. Take note that if you add too many allow/block items in there, this whole UI may fail to load for you later. It’s an old habit, you should break yourself of it, blocking every email you ever received 1 spam from adds too much overhead to your account for no benefit. How often do you really get two emails from the same spam sender? Probably never 2 years down the road, clean your list for your own benefit.
- What’s the issue with forwarders + the “Send the spam to the user’s spam folder” option?
Let’s say I have email@example.com as my email account, and I create firstname.lastname@example.org which only forwards email to email@example.com. I have the “Send the spam to the user’s spam folder” selected. Where does the spam go? In theory, the spam folder of firstname.lastname@example.org. But email@example.com is just a forwarder and doesn’t have an inbox much less a spam folder. So then, if the email isn’t an account and is only a forwarder, where does the spam go? To the spam folder of the owner of mxroute.com, which is your DirectAdmin username @ the server you are on. So, for my example, it goes to the spam folder for firstname.lastname@example.org. I have to go to Roundcube (at server name /webmail) and log in with my DirectAdmin username and password to find the email. This scenario is more rare than you’d think, but we just don’t have a way with the current software iteration to fully resolve the oddity…for now.
- Can I train my spam filters to learn from my preferences?
You cannot. This was an intentional decision. The overhead for using sa-learn on customer folders is justified by virtually no end result. In cases that we’ve observed where users used sa-learn to train bayesian filters over roughly 3 years, the result was that it finally started working and it started targeting ham as spam, forcing the user to admit after 3 years of training that the entire thing needed to be dumped. Not worth it. Spammers are too intelligent for bayesian algorithms these days.