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

learn more… | top users | synonyms

6
votes
3answers
2k views

run sieve on maildir

For my mailserver I have a dovecot, postfix and sieve setup. I have several hundred mails in my maildir and have recently created some sieve rules for sorting them. Unfortunatelly the sieve rules are ...
4
votes
1answer
587 views

How to trigger custom actions in dovecot, when email is moved or deleted?

In my dovecot setup I use virtual folders (not to be confused with virtual users). My goal is to get something like seen in googlemail. I want a folder containing all my messages and also I want to ...
3
votes
2answers
141 views

Debugging spamassassin with postfix

I am trying to setup spamassassin milter on my postfix mail server. SpamAssassin Server version 3.4.1 running on Perl 5.20.2 with SSL support (IO::Socket::SSL 2.019) with zlib support (Compress:...
2
votes
2answers
444 views

invoke filtering manually in dovecot+sieve

I've configured dovecot with a sieve filtering (also I've configured roundcube, but this does not matter I think). It's working fine, I've set up some filters. But now I've got a huge unfiltered ...
2
votes
1answer
411 views

Dovecot Sieve allows spoofing through LMTP

I have set up Postfix to block spoofing your email (you can only send emails as yourself): smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch I have set up Sieve and ...
2
votes
2answers
1k views

How define sieve_global_dir in dovecot's sieve-test

I created a few sieve (dovecot implementation) filter scripts and want to test them using sieve-test. All scripts which are using global includes are failing with the following message Error: sieve: ...
2
votes
4answers
1k views

Sieve: filter subject with regex, file into mailbox named match

I am trying to filter mails by subject with a regular expression. The subjects I want to match are read like [git-foo] some more text where foo is the string I want to check for. I end up with the ...
2
votes
2answers
2k views

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 = ...
2
votes
2answers
374 views

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 ...
1
vote
2answers
2k views

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. ...
1
vote
2answers
151 views

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 ...
1
vote
1answer
486 views

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, ...
1
vote
1answer
1k views

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 ...
1
vote
3answers
320 views

Dovecot: deliver reply into same folder as replied-to message

UPDATE (2 sept 2014 13:01): Just to clarify, I'm interested in handling an incoming reply from someone else, so coming in via SMTP. If it is a reply to an email that is already in some mail folder, it ...
1
vote
1answer
550 views

How to avoid 554 error duplicate header

I set up IRedMail on an AWS server, so the mail stack looks something like this: Postfix Dovecot Roundcube Mail sent through Amazon SES I'm trying to forward emails to Gmail using the Managesieve ...
1
vote
1answer
124 views

Problematic Mail Sieve rules

I need top classify my incomming emails using this three rules: if the email was send to any @somedomain.tld, then copy that email to "somedomain_tld" if the email was send to any other @*.tld , ...
1
vote
1answer
380 views

Sieve: put mail to subaddress into folder

Is it possible to write a Sieve rule like if envelope :detail "to" "$x" { fileinto "inbox.$x"; } but for all possible $x? I.e. if the user created a folder inbox.foo I want mail addressed to user+...
1
vote
1answer
348 views

how can i run sieve on a cyrus-imap folder?

I have a sieve script which I would like to run on a folder in my cyrus imap setup. The script is already working fine processing newly incoming mail, but I have to run it on the old mail archive, too....
1
vote
0answers
17 views

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 "...
1
vote
1answer
27 views

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

Dovecot Sieve does not run?

I'm quite new to Dovecot but it has worked out for me pretty good so far for me. I run dovecot with postfix and amavis and spamassassin and it works out all fine, mails get tagged as junk, sending, ...
0
votes
1answer
3k views

Postfix: Pass a copy of an email to a script but deliver the original one to mailbox

It's actually quite simple: I want to pass all incoming emails to a PHP-script, but only as a copy, the original email shall still be delivered to the mailbox as usual. I just can't seem to get it ...
0
votes
1answer
574 views

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 ...
0
votes
2answers
2k views

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 { # ...
0
votes
1answer
282 views

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/...
0
votes
3answers
3k views

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

What does the “stop” command in dovecot sieve do?

There's a command in the rules file called stop, which stops processing. I'm not sure why this is needed though. If it's the last command in a list of directives within a rule, then isn't the rule ...
0
votes
0answers
19 views

dovecot does not deliver all messages — why?

I have a postfix/dovecot/sieve/thunderbird configuration. Recently I got a message that my IP would be blacklisted somewhere. I went through the process of recovery (https://sender.office.com/) and ...
0
votes
0answers
52 views

autoreply sieve not working mailer-daemon

I have set up the following services: postfix (2.11.3) dovecot (2.2.15) horde (5.2.4) Dovecot runs the following: imap lmtp sieve Everything is working fine but autoreply. For instance to=<...
0
votes
1answer
140 views

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)...
0
votes
0answers
47 views

Roundcube sieve plugin write as other user without ssh

About this vacation plugin for roundcube: +-----------------------------------------------------------------------+ | Configuration file for vacation_sieve | | ...
0
votes
1answer
736 views

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 https://...
0
votes
1answer
134 views

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

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

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

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
votes
1answer
543 views

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. ...
-1
votes
1answer
70 views

Forwarding emails to external domains - aliases vs mda sieve script?

There are 2 points in the flow of a incoming email where emails can be forwarded: As soon as aliases are expanded (setting the target email as alias target) As soon as mails are handed over to the ...
-1
votes
1answer
770 views

sieve in dovecot is not filtering spam message

In Centos 6.4 i use postfix with LDA Dovecot and webmail squiremail, amavis-new with spamassassin. Spam is marked with subject Spam. I want in my squirelmail to filter spam messages an move in to ...
-1
votes
1answer
30 views

Unable to use Sieve to sort out Spam Mails to a Spam folder

I have configured a mailserver with dovecot + postfix on Debian. I can send and recieve emails. Also the server detects spam emails. Unfortunately, Sieve does not sort out Spam Mails to a Spam folder....