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
1
vote
0 answers

Why does the user "Debian-exim" exist?

I'm using the Exim mail server on an Ubuntu Server. The service runs as the user "Debian-exim" and the mail files are owned by the user "mail". This is a problem now. I'm trying to understand how to solve it properly. But I first need to know why…
ygoe
  • 123
  • 1
  • 11
1
vote
1 answer

Arch Linux: Dovecot Sieve Script Won’t Compile

Arch Linux Linux kernel 4.9.36 (64-bit) Dovecot 2.2.31 (65cde28) SpamAssassin version 3.4.1 running on Perl version 5.26.0 Pigeonhole 0.4.19-1 Trying to set up a mail server for the firs by following the Arch Linux Wiki’s Sieve tutorial (which I…
Hugh Guiney
  • 245
  • 2
  • 8
  • 21
1
vote
2 answers

Create custom mailboxes with dovecot

I'm trying to setup dovecot + sieve plugin. I'm suing the Maildir format. I use Thunderbird to read the emails so i don't need a webmail on my server. The basic config works fine but now I want to add some rules in sieve to redirect some mails, like…
MoaMoaK
  • 43
  • 1
  • 8
1
vote
1 answer

Flag mail with sieve to make them appear colored in MUA

I want to flag mails with sieve to make them appear colored in MUA. Use case: On a very high traffic technical mailing list, there is a community member with a brilliant mind. I want to highlight his posts to make them more visible. I want to do…
guettli
  • 3,591
  • 17
  • 72
  • 123
1
vote
2 answers

How to create a folder but not subscribe it in Dovecot's Sieve?

I have Sieve rule: if header :contains "subject" ["TOP-SECRET"] { setflag "\\Seen"; fileinto :create "Hidden-Folder"; stop; } based on which anything what includes TOP-SECRET in the subject is moved to the hidden-folder and set as…
JackTheKnife
  • 371
  • 1
  • 6
  • 24
1
vote
1 answer

Create date-based folders with sieve

I'd like to archive messages by year, perhaps month. I can create a new rule each month, but I'd rather do it automatically. Move all messages to a folder called ARCHIVE/%y/%m or something like it. I'd prefer to use the webinterface to sieve…
Lenne
  • 987
  • 1
  • 13
  • 32
1
vote
0 answers

dsync backup does not back up sieve script for empty mailbox

I am trying to backup all my mailboxes to another computer. I am using the following command: dsync backup -u '\*@\*' remote:vmail@backup.example.net The problem is that I have lots of mail accounts that only do a redirect using sieve, for example…
soger
  • 111
  • 2
1
vote
0 answers

Sieve saved EICAR virus to Junk folder but also disregarded in the log

I have setup my own mail server by partially following the guide (series) here The sieve filter rule is: ... truncated ... # Trash messages with improperly formed message IDs if not header :regex "message-id" ".*@.*\\." { fileinto :create…
hlx98007
  • 338
  • 1
  • 4
  • 11
1
vote
1 answer

Dovecot/Sieve adds extra / in file path

I'm putting the finishing touches on a Postfix/Dovecot/Postgres server (before attempting to rebuild it from scratch based on notes alone), and I have everything working except for one thing I can't figure out- I can't get the user sieve files to be…
Justin C
  • 55
  • 2
  • 8
1
vote
2 answers

dovecot: pigeonhole sieve daemon not starting

I'm trying to get dovecot + pigeonhole sieve working on ubuntu 14.04. From everything I've read it seems like this should be pretty straightforward, but I can't seem to get it working. I've installed and configured dovecot, and everything is…
prajo
  • 121
  • 5
1
vote
1 answer

roundcube/managesieve sends vacation replies only to local users

I've had a round cube / postfix setup with os x server (10.8) for some time working. Today we discovered that the vacation filter is only sending messages to local users. It was working some time ago, so I guess an update broke something. I've…
team-rf
  • 113
  • 5
1
vote
1 answer

sieve-test working but actual filter is just working sometimes with dovecot

i just migrated from an old Ubuntu 10.4 VPS to a shiny new Ubuntu 14.04. After a little work i got everything running besides dovecot with sieve. This question is about sieve filtering messages delivered to dovecot via exim Expected behavior: Exim…
Timmeey
  • 111
  • 1
  • 3
1
vote
1 answer

How to automatically create .dovecot.sieve file in new maildirs for dspam filtering?

I've followed this http://sealedabstract.com/code/nsa-proof-your-e-mail-in-2-hours/ tutorial, adjusted to allow for vimbadmin3 users, to set up my mail server. Most of my adjustments come from…
David R.
  • 627
  • 3
  • 6
  • 18
1
vote
2 answers

Postfix and Dovecot Sieve spam filter does not work

CentOS 6.5 x64 I'm trying to apply a Sieve filter to my mailserver (Postfix + Dovecot + Spamassassin) to automatically move spam mails to my Junk folder. I've added sieve to my /etc/dovecot/dovecot.conf protocols. This is my…
Fez Vrasta
  • 196
  • 1
  • 3
  • 9
1
vote
1 answer

Add a per-domain filter in sieve

How can I set up a per-domain filter in sieve/dovecot? In documentation I can see per-user setting: sieve = ~/.dovecot.sieve, and right now I'm using global filter: sieve_before = /etc/dovecot/sieve/global . However, I'd like to be able to set up…
James S.
  • 67
  • 2
  • 11