Repository navigation
What spam filtering is built in, and how do I add SpamAssassin? #54
|
Our users get a fair amount of spam through hMailServer. I can see some anti-spam settings in the Control Panel, but I am not sure what is actually switched on, or whether I need SpamAssassin as well. What does the server do on its own, how do I connect SpamAssassin, and what is a sensible way to start without losing real mail? |
Replies: 1 comment
|
Start by looking at what you have. Spam filtering > Spam filtering overview in the Control Panel is a read-only page with the whole configuration on one screen: which checks are on, what each scores, what the thresholds then do, and which checks are switched on but cannot run. How it decides: every check that fails adds a score, and two thresholds on Spam filtering > Anti-spam settings (General tab, Thresholds & actions card) decide what the total means.
The checks built in, before the body arrives and after it:
Most of this is off to begin with. On a new installation that keeps the shipped settings (on Windows, the installer's default on its Server profile page, None - keep the settings this version ships with), DMARC is the only one of these tests that is on. The blocked-senders, allow and block lists start empty, and the DNS block lists and SURBL ship as inactive rows. Greylisting, the HELO, PTR and sender MX checks, SPF, DKIM, ARC, SpamAssassin, the filter hook, quarantine, spam traps and country blocking are all off until you switch them on. (DMARC still checks SPF and DKIM for its own verdict.) A server upgraded from an earlier version keeps the switches it had; the overview above shows which are on. Two things that surprise people, both deliberate: a session that signed in is never spam-tested (your own users' outbound mail is left to the per-account sending limits, Adding SpamAssassin. The server talks to any SpamAssassin daemon (
SpamAssassin's own headers stay on the delivered message. If A sensible start: switch on the tests you want, then run for a fortnight with the refuse threshold at Viruses have a group of their own, Virus scanning: its Anti-virus settings page has the ClamAV (clamd), ClamWin and Custom scanner tabs. Read more: the wiki's Stopping Spam (every test in the order it runs, with its setting and score; its page names are the older "Spam & virus filtering" ones), Stopping Viruses, and Greylisting.md. If this does not answer it, ask a new question here with your version, platform and database, and the |
Start by looking at what you have. Spam filtering > Spam filtering overview in the Control Panel is a read-only page with the whole configuration on one screen: which checks are on, what each scores, what the thresholds then do, and which checks are switched on but cannot run.
How it decides: every check that fails adds a score, and two thresholds on Spam filtering > Anti-spam settings (General tab, Thresholds & actions card) decide what the total means.
X-hMailServer-Spam: YES, reason headers, and an optional subject prefix