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
0
votes
1 answer

Verifying that sieve is working within dovecot

I've set up dovecot with sieve: protocol lda { # Address to use when sending rejection mails. #postmaster_address = postmaster@example.com # Hostname to use in various parts of sent mails, eg. in Message-Id. # Default is the system's real…
Glen Solsberry
  • 1,536
  • 5
  • 28
  • 38
0
votes
2 answers

Dovecot sieve not processing messages

After recently getting amavis to correctly tag messages, they're coming through with appropriate X-Spam-Flag: YES headers. I've set up dovecot with the sieve protocol: protocol managesieve { # Login executable location. login_executable =…
Glen Solsberry
  • 1,536
  • 5
  • 28
  • 38
0
votes
1 answer

sieve redirect to foreign email gets "Relay access denied"

I have a postfix mail server with sql authentication and I want to implement sieve on it. Sieve is working relative good, rules who contain 'fileinto' are executed perfectly. I configured a rule in Sieve to redirect any email containing "redirect"…
user242212
0
votes
1 answer

SpamAssassin doesn't filter forwarded mails

I am forwarding emails from an external email account to an account on my own server. SpamAssassin works fine if I just receive mail normally. But all mail thats being forwarded from my external mail account to the server doesn't get filtered and…
cwoebker
  • 121
  • 6
0
votes
1 answer

Sieve - Redirect incoming mail for all mailboxes within domain to one specific mailbox

Is it possible to set a global sieve filter to redirect mail to specific mailbox within receiving domain. I understand I can simply point out where I want mail to go in a filter like bounce@example.com. But, I don't want mail from all domains end…
James S.
  • 67
  • 2
  • 11
0
votes
1 answer

libdovecot-sieve.so.0 undefined symbol: i_debug

After upgrading dovecot from 1.2 to 2.1.7 (while upgrading squeeze to wheezy) sieve no longer does it's job. (And breaks mail delivery) apt-purging all dovecot packages and reinstalling did not improve the situation, i still get the same error…
hubert
  • 1
  • 1
0
votes
1 answer

How do I get Ingo to provide sieve rules suitable for use with DSPAM?

Using the Ingo web gui which is part of horde, I can set up sieve rules that get written to file like so: # Junk-Review if header :comparator "i;ascii-casemap" :regex "X-DSPAM-confidence" "^(0\.[0-8][0-9]{3})$" { fileinto "Junk-Review"; …
mc0e
  • 5,866
  • 18
  • 31
0
votes
0 answers

How to move Spam emails to Spam folder With RoundCube and Dovecot-Pigeonhole

OS: Rocky Linux 9.2 Services: Dovecot, Dovecot-Pigeonhole, Postfix, Spamassassin, RoundCube I'm trying to move emails flagged as spam by postfix and spamassassin to spam folder using Dovecot-Pigeonhole and RoundCube, I made these steps and the…
Hady Shaltout
  • 161
  • 2
  • 9
0
votes
0 answers

managesieve - default sieve not applying

I set up my mail server on Debian 11 (postfix, dovecot, spamassassin, roundcube) and I got an issue with managesieve. In "90-sieve.conf" I set: sieve_default = /var/lib/dovecot/sieve/default.sieve Then I edited the file with a spam check, to move…
roughnecks
  • 111
  • 2
0
votes
2 answers

sieve vacation using from: not reply-to:

Sieve vacation answers fine, but uses the from: field but not the reply-to: field, which would make much more sense (to me). Using sieve with roundcube, sieve script is require ["vacation"]; # rule:[rep] if header :contains "subject" "Software" { …
Heiner
  • 15
  • 3
0
votes
0 answers

Dovecot + imap_sieve learning spam

Have dovecot+sieve. It's most often recommended that users train spamassassin/rspamd in the following way: A Spam folder is created in each mailbox (Junk type) Further, through the imap_sieve plugin, we look, if the letters are moved to this folder,…
cozby
  • 7
  • 3
0
votes
0 answers

Dynamically move mails into matching mailboxes with sieve fileinto regex

I'm trying to create a sieve script, which files mails into mailboxes (or sub-directories of the inbox) matching a certain subject identifier. For example if the subject includes 123 (three digits, 0-9), the server should check if a mailbox matching…
0
votes
0 answers

Setting up managesieve on Dovecot

I'm trying to get my head around setting up managesieved so that my users can make use of it. So far I have done: apt-get install dovecot-sieve dovecot-managesieved After some debugging, I found out I need to create /home/user/sieve/tmp for each…
Andrew Newby
  • 1,102
  • 2
  • 25
  • 58
0
votes
1 answer

Implementing arithmetic rules in sieve to filter recipient address, is it possible?

For example, the receiver's address should have the following pattern: last digit = (1st digit + 2nd digit)%10. abc123@testdomain.com, PASS, 1+2=3, and the last digit is 3. abc124@testdomain.com, FAIL, 1+2=3, but the last digit is…
stackname
  • 1
  • 1
0
votes
1 answer

Managesieve Rouncube no connect to the server

I had a Dovecot and Roundcube server installed on the same machine, and Managesieve worked fine. But I changed Rouncube to another server and I can't get managesieve to connect. I already modified the managesieve configuration file indicating the IP…