Using Sieve to Filter E-Mail

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

The Pigeonhole’s project `sieve` allows for relatively powerful rules-based filtering on either an email client or email server. We’re going to implement and configure `sieve` to filter email for our CEO so he can have one less frustration while running the company.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install `sieve` and configure `dovecot` to use the plugin

Ensure dovecot-pigeonhole is installed.
Configure dovecot to use the sieve plugin

Set up a `sieve` script to filter spam messages.

Make sure to create the script in a location that sieve is configured to look.
Make sure your script is configured to look at the right place in the email.

Additional Resources

In an attempt to help stem the flow of spam getting to your users, you’ve implemented a service that adds a header to likely spam messages. Now you’ve got to make sure that those messages don’t make it to your user’s inboxes. You’ve decided to use sieve to set this up as you already have dovecot set up with postfix to deliver mail locally.

Note that the upstream spam filter is tagging all spam emails with an X-header-SPAM header to assist you in filtering them.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?