# Spam protection Mailflare scores incoming mail and moves likely spam to the Spam folder. It is on by default. ## Control the filter Open **Settings → Inbox → Spam protection**. | Strictness | Moves to Spam at score | | --- | --- | | Strict (default) | 55 | | Normal | 70 | | Relaxed | 85 | - Settings apply per user, to future mail in all your mailboxes. Old mail is not moved. - Failed authentication policy, such as DMARC, goes to Spam at every level. ## Teach and block | Action | Effect | | --- | --- | | **Report spam** | Trains the message as spam | | **Not spam** (in Spam) | Trains it as good and returns it to Inbox | | **Block contact** | A rule trashes future mail from that address | | **Block sender domain** | Trashes the main domain and its subdomains (`mail.example.com` blocks `example.com`) | **Block sender domain** is not offered for shared providers (Gmail, Outlook, Yahoo, iCloud) and is refused for your own hosted domains. Remove block rules in the mailbox's routing rules. Learning is per mailbox, uses only your feedback, and a changed decision undoes the earlier training. ## How scoring works Scores run from 0 to 100, from sender checks, your relationship with the sender, sender reputation, learned words, links, message structure and attachment details. - **40–69:** marked suspicious. It stays in its normal folder unless it reaches your Spam score. - If analysis fails, mail is delivered normally. - Spam gets no auto-reply or notification. A passed SPF, DKIM or DMARC check only proves the sending domain, and spammers pass it too. - **Known senders** get full credit: a saved contact, someone you wrote to, a sender or domain you often marked good, or an address that wrote at least twice without a spam report. - **First-time senders** get half (at most 7 points instead of 14). Failures count in full. - A first-time sender pitching SEO or traffic services for your site gets +45 (names your domain, two or more sales phrases, not a reply, no unsubscribe header). ## Privacy Message bodies never leave your installation. Optional lookups send the sender's IP and the sender and link domains: | Lookup | Needs | | --- | --- | | Spamhaus DQS | Your key | | abuse.ch URLhaus | Your key | | Domain age (rdap.org) | On unless disabled under **Admin → Spam filter** | Redirects are followed only to public HTTPS hosts. Mail is accepted before analysis. Mail that is only forwarded is not filtered. ## Rules for newsletters and promotions Add a routing rule on **Newsletter or promotional mail** under **Settings → Inbox** or **Domain routing**. No value is needed. Allowed actions keep the message: folder, Spam, Trash, or forward with a copy. Reject and forward without a copy are refused. A message matches if it has any of these headers: - `List-Unsubscribe` - `List-Id` - `Precedence: bulk`, `list` or `junk` - `X-Campaign` or `X-Campaign-ID` `Feedback-ID` alone, provider trace headers and auto-replies do not count. Some notifications (GitHub, ticketing tools) match. Senders without these headers are missed. This check is separate from spam scoring. ## Troubleshooting | Problem | Cause | Fix | | --- | --- | --- | | Good mail in Spam | Strict level or new sender | **Not spam**, or lower strictness | | Spam in Inbox | Score under your level | **Report spam**, or raise strictness | | Block domain missing | Shared provider | Use **Block contact** | ## Related - [Promotions](promotions.md) - [Security notes](security.md)