What is greylisting?

Open laptop computer with hourglass placed on keyboard
Ever wonder why an email sometimes doesn’t arrive instantly?
Many of us have experienced this problem: you can’t remember your password for an online service you don’t use that often and have to click “forgot password” to get a reset link. But even though a message pops up claiming that an email was sent to you, no reset link arrives. You click again. And again. Nothing! Then half an hour later, three messages arrive in your inbox all at once. What just happened? One possible cause is a spam-prevention process called “greylisting,” which we’ll explain today.
Delays in the delivery of email can sometimes be caused by “greylisting,” a process that is used behind the scenes in mail servers to combat a certain type of spam known as unsolicited bulk email. The name comes from the fact that greylisting is somewhere in between whitelisting, where an email is marked as safe and is delivered, and blacklisting, where an email is blocked completely. Greylisting, on the other hand, is more of a “wait and see” approach.

How does greylisting work?

First, a simplified explanation of what happens when you send an email: your email application or interface establishes an SMTP (Simple Mail Transfer Protocol) connection with the sender‘s Mail Transfer Agent (MTA). This MTA then transmits your email message to your recipient’s MTA. If that MTA accepts your email, it is delivered to your recipient’s inbox.

The MTA keeps a record of the IP address, sender address and recipient address of your email, which is known as its “envelope data” or “triplet.” If the system uses greylisting as one of its spam protection measures, the MTA will reject the email when it encounters your email’s envelope data for the first time. Instead, it will return a temporary error code and ask your MTA to retry sending the email after a specific period of time. And it keeps that envelope data on its greylist.

Now the purpose of greylisting becomes clear: A legitimate MTA will comply with this resend request. When your email is sent for the second time, it will be accepted for delivery because its data is already on the receiving MTA’s greylist. In addition, the envelope data will now be whitelisted, so your future emails to that sender will not have to go through this process again.

On the other hand, imagine you are a spammer trying to send out mass spam emails from a hijacked computer. You could send your spam emails multiple times to try to get whitelisted, but the logistical effort wouldn’t be worth your trouble. So the spam email is never delivered, and the intended recipient never even knows it existed.

Advantages and disadvantages of greylisting

Greylisting is an extremely simple and effective method of stopping mass spam attacks. The process requires no action from the user and legitimate emails are almost never lost. On the flip side, the time delays can sometimes make people wonder if their mail server is working properly or even think their emails aren’t arriving, when in fact they have only been delayed. And as we saw from our initial example, greylisting can occasionally be inconvenient when dealing with time-sensitive emails. However, most properly configured sender MTAs will resend the message promptly, so delays should be less than 10 minutes.

We hope you found this glimpse behind the scenes of the spam-filtering process interesting. Please give us some feedback below!
 
Image: 1&1/Getty Images
 

Posted in

Email Spam Spam filter

24 people found this article helpful.

Related articles

But it’s not spam!

Hand pointing at floating red and blue email icons
Stop legitimate emails from being marked as spam
Spam is one of the things people hate most about email. So email providers like mail.com have developed extremely effective systems to block spam emails. The downside, however, is that legitimate emails can be blocked or land in your spam folder. Luckily there are a few tricks you can use to make sure you receive important messages – and to stop your outgoing messages from being marked as spam. more

Posted in

Spam Spam filter Email
22 people found this article helpful.

How do I know it’s spam?

Man viewed from behind looking at email icons in air
Not sure which emails are spam? Our checklist can help.

Spam is one of the things people like least about email. Sometimes it is annoying but harmless – like  bulk advertising. Much worse are the spam emails that try to trick you into scams or contain computer viruses. Luckily, today’s spam blockers keep a large share of such messages from reaching your inbox. You can also help keep yourself safe by learning to identify the most common types of spam. more
34 people found this article helpful.

Your Compose E-mail window: Spellcheck, attachments and more!

You’re writing an email in your mail.com account and would like to change the font – is that possible? Where do you click to add a recipient from your address book? And is there even a spellcheck? Today we’ll take you on a tour of the Compose E-mail window in your inbox.
Open laptop on wooden desk with hands typing
Looking for the spellcheck? Let us show you around the Compose E-mail window!
Join us in exploring its many functions! more

Posted in

How-to Email Inbox
7 people found this article helpful.

Email emojis

It’s hard to imagine our online communications without emojis. They have made the leap from our emails and texts into popular culture, with an emoji movie and their own “holiday”: World Emoji Day on July 17. In honor of this special day, let’s take a look at the history of the emoji and its predecessor, the email emoticon.
Three balls painted to look like emojis against a blue background
These little guys are in the spotlight on World Emoji Day
Plus: How to add emojis to your mail.com emails. more

Posted in

Email Trends
12 people found this article helpful.

Create an email signature

Whether you are looking for a way to highlight your professional credentials when contacting others by email or would simply like to let your personality shine through, an email signature is the perfect solution.
Hand holding fountain pen writing on blank paper
You can set up a signature to customize your emails in just four easy steps
 
Discover how to set up an automatic email signature today. more

Posted in

Email How-to Inbox
12 people found this article helpful.

What is ransomware?

Red-on-black image of locked computer screen against a background of binary code
Do you know how to recognize and protect yourself against ransomware?
You may have seen headlines about ransomware attacks on institutions ranging from banks to hospitals to gas-pipelines. But what is ransomware, why is it dangerous, and can such attacks be prevented? Today, we answer your questions about ransomware. more
7 people found this article helpful.

Importing email addresses

Screenshot of window to select contacts for import in mail.com
mail.com makes it easy to import some or all of your email contacts from other accounts

Keeping track of all your contacts can sometimes seem like a daunting task – checking through your multiple accounts and sources to find that email address that you absolutely need. The experience, however, can be made effortless by importing your email contacts to your online mail.com address book! more
4 people found this article helpful.

Out-of-office messages for your vacation

Family of four runs through field of grain at sunset
Why worry about replying to emails when you’re out having fun?
It’s time for some hard-earned time off! Whether you’re headed for the beach or visiting family you haven’t seen for a while, wouldn’t it be nice to disconnect from the digital world for a while? But before you disappear, you can set up automatic replies for your emails so the senders know when they can expect a reply. We’ll show you how it works in your mail.com account – and share some examples of effective – and funny – out-of-office messages. more

Posted in

Email How-to Inbox
11 people found this article helpful.

What is dark mode?

Hands held up in heart shape as silhouette in front of blur of lights in stadium concert
Dark mode can be easier to read in low-light settings like this!
The mail.com Mail Apps for iPhone and Android both offer dark mode. But have you ever wondered why people use dark mode? And is dark mode really better for your eyes and your device’s battery? more
10 people found this article helpful.

Why send email to yourself?

Man holds glasses and rubs eyes while working at laptop
Afraid you’ll forget something? Sometimes it helps to email yourself a reminder!
 
“Send emails to myself!?” you may be thinking… but it’s not as strange as it may sound at first. In fact, sending emails to yourself makes a lot of sense! Today we explore how writing yourself an email can be an effective life hack. more

Posted in

Email Inbox Backup
27 people found this article helpful.