Skip to content

Cookie settings

Choose which kinds of cookies you allow. You can change your choice at any time via Cookie settings at the bottom of every page. Privacy statement

Necessary

Always on

Needed to log in, keep your cart and remember your choices. These are always on.

Which cookies?
  • weboke_sessie, weboke_klant, weboke_remember: your session and staying logged in
  • weboke_basket: your cart
  • wkBtwIncl: showing prices with or without VAT
  • wok_cookies: your cookie choice, 12 months

Measures which ad leads to a visit or order, so we do not pay for ads that do nothing.

Which cookies?
  • Google Ads via Google Tag Manager (_gcl_au, _gcl_aw), up to 90 days
  • OpenAI Ads, ads in ChatGPT
  • wok_aff: which partner referred you to us (affiliate programme), 60 days

4.6

Country and language

Each country has its own site, with prices and VAT for that country.

View

Module 8 · 8.2

Spam and the Junk folder

Module 8: Safe and worry-free · Reading time: 9 minutes

Learning objective: After this lesson you can explain how a spam filter decides, where spam ends up, how you teach the filter, and when to choose reporting, unsubscribing or moving a message back.

Key concepts: spam filter, spam score, threshold, spam folder (Junk, Spam, Junk Email), false positive, learning (spam and not spam), Report spam, unsubscribing, spam test

How a spam filter decides

A spam filter doesn't simply say "yes" or "no". It gives every message points. Each suspicious feature adds to the total: a sender that fails the SPF or DKIM check, a link to a known spam domain, words that often appear in spam, a message that consists of nothing but an image, a server without a proper name. Good features can take points off. The total is called the spam score.

Then the filter checks a threshold. Say the threshold is 5. A message with 2 points simply goes to your Inbox. A message with 7 points is treated as spam. How strict the threshold is gets set by the administrator of the domain. At WebOké you can do this in the control panel of your hosting package. The lower the threshold, the more spam gets caught, but also the more good email gets caught by mistake.

The filter can do three things with spam: mark the subject (for example with SPAM in front of it) and leave the message where it is, move it to the spam folder, or delete it straight away. Moving it to the spam folder is usually the best choice: you lose nothing, and your Inbox stays clean.

One folder, three names

On the server, the spam folder has a fixed name: Junk. That's no coincidence. The IMAP standard for special folders (RFC 6154) gives the folder a fixed attribute, \Junk, so every program knows which folder is the spam folder. Each program then shows that folder in its own words:

WhereName you see
On the serverJunk
In the webmailSpam
In many mail programsJunk Email, Junk Mail or Junk

So it's one and the same folder. If you put a message in Spam in the webmail, it shows up in Junk Email on your phone. If you see two spam folders on a device, that program is using a folder of its own instead of the standard one. In that case, set Junk as the spam folder in that program.

The Spam folder with a spam message and the Report spam button
(1) the Spam folder, (2) Report spam

The image shows the Spam folder in the webmail, with a spam message and the Report spam button.

The filter learns from you

A good spam filter doesn't just follow fixed rules, it also learns. It does this by watching what you do with your email:

  • If you move a message from the Inbox to the spam folder, the filter learns: this is spam.
  • If you move a message from the spam folder back to the Inbox, it learns: this is not spam.

This only works with the real spam folder. If you create your own folder called "Rubbish" and drag spam into it, the filter learns nothing. The same goes for dragging spam to the Trash: deleting isn't a verdict.

An example. Every week, Sanne de Vries gets an email saying "Your parcel is waiting for you" from a domain she doesn't know. She clicks Report spam. The webmail reports the message and moves it to Spam. On the same day, Daan finds an order confirmation from a supplier in his spam folder. He drags it back to the Inbox. Both actions make the filter a little better.

Report, unsubscribe or move back?

Not every unwanted email is spam. The difference decides what you do.

SituationWhat you doWhy
Spam from an unknown senderReport spam, or drag it to the spam folderThe filter learns from it
A newsletter you once signed up forUnsubscribe using the link in the newsletterIt isn't spam; reporting it teaches the filter the wrong things and harms an honest sender
A good email in the spam folderMove it back to the InboxThe filter learns that this isn't spam
Phishing (fake bank, fake parcel service)Don't click, report it as spam, and if needed report it to the real organisationLesson 2.4

An important pitfall: never click an unsubscribe link in real spam. A spammer takes a click on unsubscribe as proof that your address exists and is being read. You're then more likely to get more spam. Only unsubscribe from senders you know.

False positives: check your spam folder now and then

No filter is perfect. A false positive is good email that still ends up in the spam folder: an invoice from a new supplier, a reply to a quote, an email from someone with a badly configured domain. So check your spam folder now and then, for example once a week, and especially when someone tells you they've emailed you.

Spam counts towards your mailbox storage (lesson 5.4). So empty the spam folder now and then too. In the webmail, under Settings > Preferences > Server Settings, you can choose to have messages in Spam deleted straight away. Only do this if you're sure you'll never miss good email, because you can't check deleted spam any more.

Test where spam ends up

Not sure whether your spam filter is on and where spam goes? Then you can test it. WebOké has a spam test: you enter your email address, and one test message is sent to it that the spam filter sees as spam. Then you check where the message ended up. This only works for mailboxes hosted at WebOké. Similar tests exist for other mailboxes; ask your email provider about them.

Here's how to read the result:

  • In the spam folder: the filter works and moves spam correctly. Delete the test message. Don't drag it to your Inbox, because then the filter learns that this is good email.
  • In the Inbox, perhaps with a mark in the subject: the filter does recognise spam, but doesn't move it. Or the filter is switched off. You change this in the control panel of your hosting package.
  • Nowhere: wait a few minutes and check the spam folder as well. If the filter is set to "delete spam straight away", you'll never see the test message.

In practice: how it works in the webmail

The spam folder appears in the folder list as Spam. With the Report spam button in the toolbar, you report a message and move it to Spam; you drag a good message back to the Inbox or move it with More > Move to... You can see which folder serves as the spam folder under Settings > Preferences > Special Folders. The steps are in the Roundcube manual (11.1 and 11.2). Other webmail works in a similar way: there the button is often called "Spam" or "Junk", and so is the folder.

Summary

  • The spam filter gives points; above the threshold, a message is spam and goes to the spam folder.
  • On the server the spam folder is called Junk (RFC 6154); the webmail shows it as Spam, mail programs often as Junk Email. It's one folder.
  • The filter learns when you move spam to the spam folder and move good email back out of it, but only with the real spam folder.
  • Report real spam, unsubscribe from newsletters you know, and never click unsubscribe in real spam.
  • Check the spam folder now and then for false positives, and use the spam test to find out where spam ends up.

Quiz

1. In the webmail you see the folder Spam, and on your phone the folder Junk Email. How does that work?



2. Daan finds an order confirmation from a supplier in his spam folder. What's the best thing to do?



3. Sanne gets a newsletter from a garden centre she signed up for last year. She doesn't want it any more. What does she do?



4. You do the spam test. The test message is in your Inbox with a mark in the subject. What does that mean?



5. Why don't you click the unsubscribe link in real spam?



Exercise

Exercise D8.2: Spam test in your own mailbox. If your mailbox is hosted at WebOké, do the spam test (https://www.weboke.nl/en/spamtest): enter your address and after a few minutes check where the test message is, in the webmail and on your phone or in your mail program. Look at the headers of the test message (Headers) and find the lines added by the spam filter. Then delete the test message; don't drag it to the Inbox. If your mailbox is hosted elsewhere, open your spam folder and look at the last ten messages. Then, if you find a good message in your spam folder, move it back to the Inbox. Answer: (1) Where was the test message (or: how many of the ten messages were really spam)? (2) What is the spam folder called in the webmail, and what on your phone? (3) Which message would you report as spam, and for which message would you choose to unsubscribe?

Exercise D8.2: Spam test in your own mailbox

You do this exercise yourself; no one checks it. Tick off what you've done and mark the exercise as done.




Your ticks and notes only stay in this browser; we don't send them anywhere. If you're signed in, we only save in My courses that you've done the exercise.

Further reading

Where steps in the webmail are described, they apply to the WebOké webmail; other webmail works in a similar way.

One moment…

Set up your domains

For each domain, arrange the nameservers, the link to your hosting and who becomes the owner.

Loading your domains…