How does the bHosted.nl spam filter work?

Most customers don't notice anything, but behind the scenes we are constantly working on our spam filter. In this article we briefly explain how it works.

Incoming email is delivered to mx.bhosted.nl and arrives directly at our mail filter. There, the mail first passes through a greylist filter. After that, the filter checks all incoming mail for viruses and assigns a spam score to each message.

Greylisting

Does a connection come from an unknown internet address (IP address)? Then we first place it on a greylist. The sending mail server then receives a message that there is a temporary problem and that it should try again later. Every legitimate mail server understands this and tries again within a few minutes. Many spammers don't make that second attempt and give up immediately. This mechanism alone already blocks a lot of spam.

Viruses

Does a received email contain a virus? Then the mail filter rejects the email. bHosted therefore does not accept the email, and the sending mail server receives an error code with a brief message that the email has been rejected due to a virus.

For this we use the virus scanners Sophos and ClamAV.

Spam

Is the spam score of an email high? Then we place the email in quarantine. The sender receives an error code, along with a message that the email can still be forwarded by clicking the included link. That link opens a web page that checks whether the visitor is not a robot.

Once that has been confirmed, we send an email to the recipient. They receive an email with a link and some information about the message, such as the sender and the subject. Does the recipient trust the email? Then they can click the link to release the email from quarantine, after which it will still be delivered.

Spam filters

We determine the spam score using a number of filters. The most important one is Spamassassin, an open-source spam filter. We also use Cyren.

In addition to these filters, we also use blacklists of IP addresses that send a lot of spam. We do not accept mail from such an IP address, and the sender receives a bounce message. Among others, we use the blacklists of Spamhause.

Whitelisting / blacklisting

Besides the spam filter, we also work with white- and blacklists. These exist at 3 levels: general, domain and email address. At the general level, we place IP addresses, domains or email addresses on the blacklist as soon as our helpdesk determines that it concerns spam that still gets through our spam filter. Fortunately, intervention at this level is only needed very occasionally.

Usually, based on questions, we place domains and email addresses on the white- or blacklist at domain or email address level. Sometimes a sender domain is incorrectly marked as spam. By placing that domain or email address on the whitelist, we bypass the spam filter for that specific domain or email address and the email will always be delivered.

Related articles