Questions tagged [sieve]

Sieve is a language for filtering email messages. It can be implemented in mail server or mail client.

Sieve is language that can be used to create filter script for email. It owes its creation to the CMU Cyrus Project, creators of Cyrus IMAP server.

The language was standardized in the RFC 3028 (obsolete version) and replaced by RFC 5228. Several RFCs also published to extends functionality of Sieve. The ManageSieve protocol (defined in RFC 5804) allows users to manage their Sieve scripts on a remote server.

Sieve can be implemented in mail server. Script will be executed during final delivery, when the message is moved to the user-accessible mailbox. Several examples of Server-Based Sieve are:

  • Dovecot (MDA with Pigeonhole project)
  • Exim v4 (MTA)
  • Perdition (proxy server supporting POP3, IMAP)

System administrator can use sieve to implement system wide filtering, for example: to move message to Spam Folder when its spam score exceeds threshold. Every user can be also write their own sieve script.

Sieve can be implemented in mail client too. Scrip will be executed when mail client is fetching/synchronizing email from the server. Several examples of Client-Based Sieve are:

  • Thunderbird desktop mail client (with ManageSieve extension)
  • Squirrelmail Webmail (with Avelsieve plugin)
  • Roundcube Webmail

References:

111 questions
2
votes
2 answers

regex sieve script not matching

I have a problem on a dovecot2 mail server with a sieve script I write. The script should automatically move mail coming from a mailing list to a folder (by list name, not list id) require ["fileinto", "mailbox", "variables", "regex"]; if exists…
M1k3y
  • 19
  • 5
2
votes
1 answer

How can I export message filters from roundcube?

We are migrating from roundcube to GSuite (Google Apps). Many of our users have set up complex filters in their roundcube account. We would like to migrate these filters to their new GSuite accounts. I cannot find out how to export the filters from…
2
votes
2 answers

Postfix (virtual users) + dovecot + sieve: envelop does not contain original recipient

I have set up my email server following the ISPMail tutorial with virtual users in postfix + dovecot + sieve. My problem is: the envelop "variable" in sieve does not contain the original recipient. I have a mail account, let's call it…
Artemis
  • 151
  • 1
  • 8
2
votes
2 answers

Dovecot with virtual users and managesive

I want to use managesieve in my dovecot server which uses virtual users and a ldap for the users. This is in my dovecot.conf: plugin { sieve_dir=/var/mail/sievescript/%u_scripts sieve_extensions = +imapflags } protocol managesieve { …
plaetzchen
  • 173
  • 1
  • 3
  • 9
2
votes
2 answers

Running rules on a mailbox?

I'm trying to run some smartsieve rules on a IMAP mailbox, I can certainly do this for mails that are delivered to that mailbox, but for emails that are already in that mailbox, or ones that a moved to it (via thunderbird/outlook) the rules are not…
glisignoli
  • 123
  • 1
  • 2
  • 15
2
votes
1 answer

Sieve rules to match raw header values

This worked in procmail, but it seems procmail was abandoned in Sept 2001. I had a rule that would sense when utf-8 was used in the 'To:' header to write my name using emoji or non-Latin characters. When I try the same in Dovecot's Sieve…
2
votes
0 answers

Setting SpamAssassin's Bayes_path per user and dovecot

I have dovecot, Spamassassin and postfix running. I started to use sa-learn to get better and more precise spam identification and filtering. I have not set the Bayes_path preference on my local.cf file, thus when I call sa-learn -u…
1
vote
0 answers

Disable action associated with extension 'fileinto' in the managesieve interpreter (Dovecot)

After doing some research on sieve support with dovecot, I decided to implement it on a virtual machine for testing. I have everything working as expected, i.e. a script is uploaded onto the server, and the interpreter works correctly. However, I'm…
booshlinux
  • 11
  • 2
1
vote
1 answer

Dovecot Sieve doesn't move spam to Junk folder in maildir

I have an Ubuntu 16.04 mail server with postfix/spamassassin/dovecot with virtual mailboxes in maildir format. The whole process is working excellently since a year. Spams are marked with "*****SPAM*****" in subject and with "X-Spam-Flag: YES" in…
Tibor Nagy
  • 197
  • 1
  • 11
1
vote
1 answer

Sieve filter that checks if email is a respond to an email of mine

I have a mail provider which allows me to upload sieve scripts to it. I would like to find out if it's possible to use sieve to make mailing lists subscriptions feel more like web based forums - where I get notifications (emails to my mailbox) just…
Doron Behar
  • 165
  • 1
  • 6
1
vote
0 answers

Autoreply to include original message

I have a linux postfix server with roundcube, dovecot and sieve installed. I want to reply to messages with a certain subject with a message and the original message quoted. Is there a macro/variable for the message body? So I can create a template…
Lenne
  • 987
  • 1
  • 13
  • 32
1
vote
1 answer

Dovecot Sieve: Store part of a message as a variable

I need to retrieve some parts of a message which looks like Subject: Test message Message-Id: <2788db2f-b5c3-4b8c-881e-362c3df4f915@server.local> Mime-Version: 1.0 Content-Type: multipart/report;…
JackTheKnife
  • 371
  • 1
  • 6
  • 24
1
vote
0 answers

Dovecot ignoring sieve

I've a typical postfix+dovecot install in my email server. Works everything OK, with Roundcube as a webmail. The problem is that apparently the sieve plugin, which is activated, does not work or sth. because I've sieve rules which don't work. Here's…
Megver83
  • 221
  • 2
  • 4
  • 10
1
vote
1 answer

How are user specific Sieve files created?

My Dovecot's protocol_lda is as follows: protocol lda { log_path = /var/log/mail/dovecot-deliver.log auth_socket_path = /var/run/dovecot/auth-master postmaster_address = malmeida@itclinical.com mail_plugins = sieve …
mmalmeida
  • 155
  • 1
  • 9
1
vote
0 answers

Error about missing (sql) field "pw_sieve" under pigeonhole

Yesterday I installed the latest updates of dovecot 2.3 and pigeonhole 0.5.0 in the hope that some sieve-bugs have been fixed in the meantime. However, now I get the error "dovecot: auth-worker(###): Warning: mysql: Query failed, retrying: Unknown…
AuxBurger
  • 11
  • 1