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

How to configure Dovecot/Pigeonhole using MySQL authentication

I have a working Dovecot server with Spamassassin. I can receive mail with Thunderbird and Bluemail clients. I use smtp2go to send mail out. I want to configure Pigeonhole Sieve but find the configuration to be very daunting. All mail is delivered…
Vietyank
  • 111
  • 2
  • 9
0
votes
1 answer

Run sieve when movin messages

I have sieve working for incoming messages. I would also love to run sieve for delivered messages that are being moved between mailboxes on the server (for the same account). For example. I have mail history spanning a decade or two. Many mail…
0
votes
1 answer

Unable to connect to port 993 for IMAP on Ubuntu server with Postfix/Dovecot/MySQL

Ubuntu 16.04.5 Apache2 MySQL Postfix w/MySQL Dovecot SASL2 UFW I am trying to install a working mail server and client on this machine. I followed this tutorial which allows authentication through MySQL. I have all DB entries set correctly, I have…
Fid
  • 101
  • 1
  • 2
0
votes
1 answer

Dovecot Sieve and :output variable for execute adding invalid character

I'm trying to get blow Sieve filter to work require ["fileinto", "imap4flags", "mailbox", "body", "envelope", "vnd.dovecot.pipe", "variables", "vnd.dovecot.execute"]; if envelope :matches "To" "*@*" { set "recipient" "${0}"; set "user" "${1}"; …
JackTheKnife
  • 371
  • 1
  • 6
  • 24
0
votes
1 answer

Postfix/Amavis not filtering spam for entries in second domain

My postfix installation is working correctly (delivery via dovecot, spam filtering via amavis - spamassasin). I have some aliases in virtual, eg: info@mydomain2.com johnDoe However, for the emails that match an entry in virtual, amavis is not…
mmalmeida
  • 155
  • 1
  • 9
0
votes
1 answer

Postifx Dovecot lmtp, sieve not working

My mail server has a problem. I want to install sieve, but the rules do not work. As far as I found out, I think the handover at lmtp to dovecot does not work. e-mails can be received and sent, but the rules do not work. If I stop dovecot the mail…
daniel_dw
  • 1
  • 2
0
votes
1 answer

Postfix + Dovecot + Sieve + forwarding + sieve

Let's suppose my domain at exampleserver.com. I have following sieve rule: require ["fileinto", "subaddress", "mailbox", "variables"]; if address :detail :matches "to" "*" { set "folder" "${1}"; fileinto :create…
0
votes
1 answer

filtering spam emails with Chinese subject

A client have ton of Chinese spam. All look similar to this one: Return-Path: <15308409199@189.cn> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on hotel492.dedicatedpanel.com X-Spam-Level: *** X-Spam-Status: No, score=3.2 required=5.0…
Nick
  • 826
  • 2
  • 15
  • 42
0
votes
1 answer

Dovecot autoresponder with vmail

I have server with postfix and dovecot. E-Mails are delivered with dovecot. /etc/postfix/master.cf looks like this: dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/bin/spamc -e…
Nick
  • 826
  • 2
  • 15
  • 42
0
votes
1 answer

Roundcube keeps loading when trying to make a new filter with managesieve

I'm trying to install an autoresponder for Roundcube with Managesieve and probably doing something wrong. Roundcube is working fine, /var/log/roundcube/errors is empty. But, when I try to make a new filter in the 'settings' area of Roundcube, where…
C.A. Vuyk
  • 632
  • 10
  • 18
0
votes
2 answers

postfix/dovecot/sieve - delay forward mails

Currently I'm struggling to achieve what sounds like a simple thing: I have a setup with postfix, dovecot and sieve. Mails from two certain addresses to one mailbox are being forwarded to another mail address via a sieve filter, i.e. mailbox…
David
  • 103
  • 5
0
votes
1 answer

How to install a sieve for a user with a dot in their email, using sieveInstall

I've been a member on StackOverflow for a while, but this is my first post to ServerFault, so if I'm doing something wrong in this post, feel free to call me out on it. TL;DR: Using Cyrus and sendmail. We have emails like…
dcdruck
  • 1
  • 2
0
votes
1 answer

Dovecot and script execution - permission denied for a system command

I have a shell script which is looking for a mailbox path result=`find /var/mailboxes -type d -name me@my-domain.com` perl -pi -e 's/Folder-to-Remove//g' $result/subscriptions but executing it via Dovecot Sieve I'm getting an error message: lmtp:…
JackTheKnife
  • 371
  • 1
  • 6
  • 24
0
votes
2 answers

Postifx - Dovecot unable to send emails "status=bounced (user unknown)"

My email server was working fine on (Debian Jessie 8.5). My setup uses Postfix 2.11.3, Dovecot 2.2.13, and using Virtual users and Mailboxes (Maildir style). It worked great, until I wanted to implement autocreation of the Junk folder and sending…
KingsInnerSoul
  • 201
  • 3
  • 10
0
votes
1 answer

Cant send message by outlook, roundcube works

I have some problem with dovecot, I have added dovecot_lda support for roundcube sieve filters. Roundcube works perfectly with the filters now. But if i try send messages by smtp (outlook|thunderbird), the mail client ask always pass and doesnt…
Max S
  • 1
  • 1