Spam and phishing protection in MailGuard

Multi-stage spam filter and phishing protection with scoring, Bayes, RBL checks, SPF, DKIM, DMARC as well as link protection and URL rewriting at the gateway.

Spam and phishing protection scores every incoming message through several check layers and combines the result into one score. Suspicious mail is flagged or blocked without losing legitimate mail.

Multi-stage detection

Several methods complement each other so that individual weaknesses do not get through. Only what is needed has to be switched on.

  • Bayes filter for statistical content scoring.
  • Heuristics for conspicuous patterns in structure and headers.
  • RBL checks against known sending sources.
  • Link reputation against known malicious sites.
  • Sender authentication with SPF, DKIM, DMARC and ARC.

MailGuard configuration with thresholds for the spam filter

Thresholds and actions of the spam filter per policy.

Thresholds and scoring

Three stages govern the reaction. In the policy, each has its own switch and its own value under Score thresholds. When a stage is off, the score never triggers that action.

  • Mark as junk: the message is marked and delivered.
  • Hold in quarantine: the message is held and appears in the quarantine.
  • Block: the message is rejected and not delivered. The sender receives a non-delivery report.

Findings from individual checks and detected malware apply regardless.

In its last step the setup wizard for Microsoft 365 asks where spam should go: to the junk email folder of the mailbox or to the Conbool quarantine. The choice applies to the standard protection policy and can be changed in MailGuard at any time. Dangerous attachments do not reach the mailbox in either case.

The scale runs from 0 to 100. There are two switches for flagging: the header X-Conbool-Flag: YES and the subject prefix. The default is [SPAM], the text is freely selectable. If a rule explicitly triggers the mark action, both are set regardless of the switches.

A new policy holds messages in quarantine from score 5. The stages Mark as junk and Block are off. Three templates are available when creating one, and their values stay freely adjustable afterwards. The templates do not change existing policies.

  • Basic marks from 8 in the subject. Based on the score alone it holds nothing and blocks nothing. Deliberately quiet, with a lenient reading of sender authentication.
  • Balanced holds from 5 in quarantine and blocks from 30.
  • Strict builds on Balanced and has the same thresholds. Clear findings on sender details or links hold the message regardless of the score. Weaker signs only add points: a deviating reply address, redirects, login pages, tracking and a display mismatch in links. Encrypted PDF and Office files that cannot be checked are held as well. Encrypted archives that cannot be checked are held by every template.

The numbers are a starting point, not a law of nature. The path to fitting values leads through audit mode: observe first, then adjust on the basis of real messages.

MailGuard policies for spam and phishing protection

Policies govern scoring and action per mail flow.

Custom rules and dictionaries

Besides the standard checks, custom word lists and regex rules can be stored. Dictionaries bundle terms for content rules and are then available in every policy. The scope of a rule covers subject, body and attachments as chosen.

MailGuard analysis with additional checks, word lists and regex rules

Additional checks with custom word lists and regex rules.

Bulk mail

Bulk mail detection is in the policy under Content inspection, tab Bulk mail. It identifies newsletters, advertising and other bulk mail by the way it is sent.

In the presets Balanced and Strict and in the default policy of new tenants, newsletters, advertising and other bulk mail go to quarantine. Notifications, messages from social networks, and lists and forums are delivered, classified as newsletters and placed in the junk folder. Different action per type defines how each type is handled, Classified mails to junk defines where it is placed. Existing policies do not change.

With the action Block, newsletters from legitimate senders are permanently rejected.

Against phishing, link protection checks every URL in a message. Three modes are available: monitor only flags, rewrite rewrites every URL through a safe link address, block rejects the email on malicious links. With checking at click time enabled, target, redirects and reputation are evaluated again, even when a link is only redirected to a malicious site after delivery. Checking at click time is switched on in new policies created from any of the three templates, existing policies stay unchanged. Suspicious links can be defused and tracking parameters removed.

Header protection detects reply-to deviations, mismatched From and Reply-To domains, display name spoofing and homograph domains. For authentication the presets spec compliant, balanced and lenient are available.

Further reading

Sender-side forgery is additionally contained through DMARC, SPF and DKIM. The IP and sender filter complements it, as does the overview under MailGuard and the solution pages spam filter for businesses and phishing protection.