Email filtering (Sieve)

Sieve is a server-side email filtering language. Rules run on the mail server before email reaches your client, so they work even when your device is offline.

ManageSieve connection

Use a ManageSieve client to upload and manage filter scripts.

Servermx1.shipmail.to
Port4190
SecuritySSL/TLS
UsernameYour full email address

ManageSieve clients

  • Thunderbird. Install the Sieve Message Filter add-on. It connects to ManageSieve automatically using your account settings.
  • Roundcube. The ManageSieve plugin is included. Go to Settings > Filters.
  • sieve-connect (CLI). Available via package managers on Linux and macOS.

Example filters

Move newsletters to a folder

require ["fileinto"];
if header :contains "List-Unsubscribe" "" {
  fileinto "Newsletters";
}

Auto-reply when on vacation

require ["vacation"];
vacation :days 7
  :subject "Out of office"
  "I am currently out of the office.
I will reply when I return.";

Discard email from a specific sender

if address :is "from" "spam@example.com" {
  discard;
}

Sort subaddressed email into folders

require ["fileinto", "envelope", "subaddress"];
if envelope :detail "to" "github" {
  fileinto "GitHub";
}
if envelope :detail "to" "newsletters" {
  fileinto "Newsletters";
}

Supported extensions

shipmail supports the following Sieve extensions: fileinto, reject, vacation, envelope, subaddress, body, regex, copy, imap4flags, variables, include, and editheader. The full list of supported capabilities is advertised by the ManageSieve server on connection.