Questions tagged [sieve]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Sieve filter for shared mailboxes with cyrus

Sorry if im wrong here, i need a bit help with my cyrus shared mailboxes. I wrote a sieve filter script fo filter mails from partnerA@domain.tld in the shared partnerA Mailbox. So far i did not find ...
0
votes
1answer
25 views

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

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 ...
4
votes
2answers
60 views

Postfix - blocking by From rather than sender

I have a ton of incoming spam that masquerades as being sent by me, but has a sender at some arbitrary spammer domain. e.g. Return-Path: <admin@aiuw.com> ... (stuff elided, etc.) Received: from ...
2
votes
1answer
667 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, ...
1
vote
0answers
27 views

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

Sieve Vacation Extension: Save Out of Office Replies

I have an SMTP + IMAP server on linux and use sieve filtering to provide some useful features. One such feature is out-of-office replies, provided by the following script: require ["fileinto", "...
0
votes
1answer
135 views

Roundcube filter set by ManagedSieve not being found

Here is my current filter: require ["vacation"]; # rule:[Filter Test] if allof (exists "from") { vacation :days 365 :addresses "newmail@vietfeir.com" :subject "Mailbox disabled" :from "...
0
votes
1answer
72 views

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

horde - trouble importing Sieve rules from remove server

I have the following setup running: Server 1: Horde Groupware 5.2.22 Server 2: Dovecot, postfix Now I'm facing some troubles with my filter rules. My filter on server1 do not work at all. Server2 ...
1
vote
0answers
70 views

Is there a possibility to rewrite the recipient_delimiter in postfix

I use email address suffixes to file emails to different folders. For example, me+suffix@example.com would be filed in folder "suffix". This works, but I would also like to allow for "-" as ...
0
votes
0answers
39 views

Append or prepend custom headers during final mail delivery?

In my current dovecot setup, incoming mails are classified by rules with growing complexity. As configuration mistakes are to be expected, storing information about filtering decisions in mail headers ...
1
vote
2answers
687 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+...
0
votes
1answer
221 views

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

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

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" "*@*" ...
0
votes
1answer
86 views

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

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

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

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}"; ...
0
votes
1answer
499 views

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

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

Which special characters work in sieve regex?

I have the Roundcube Webmail v. 1.3.1 mail client with managesieve v. 8.7 extension and want to add some regex driven actions for my mail and the only documentation I found on the regex flavour is ...
-1
votes
2answers
109 views

.dovecot: line 3: error: included personal script 'vacation' does not exist

I'm trying to test a more modular approach to using sieve scripts on my mail server. Previously I used .dovecot.sieve for everything but I now have conflicting requirements and I thought I'd test ...
3
votes
2answers
1k 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:...
-1
votes
1answer
183 views

Postfix + Dovecot + Sieve - CC and BCC redirects won't works

guys! I have a CentOS web server with ISPConfig, this server has been running without any problems for over a year, included with the email service (postfix + dovecot + sieve). However, a new need ...
1
vote
2answers
275 views

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

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

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

No subaddress :detail part in envelope test

I try to filter mails by subaddress :detail parts in sieve scripts. Goal is the usage of regex patterns as in this simple test case: if envelope :detail :regex "to" ["^test$"]{ ...
1
vote
0answers
52 views

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(###):...
1
vote
0answers
738 views

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

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

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

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

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

Replace characters in a sieve variable

When I register on websites I use their domain in my email, for example serverfault.com@example.com. I'd like to file each domain into a separate IMAP folder using sieve and I've created the script ...
1
vote
1answer
75 views

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

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

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

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

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

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

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. ...
1
vote
1answer
2k 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
0answers
174 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 "...
3
votes
4answers
4k 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 ...
1
vote
1answer
88 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
votes
1answer
58 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....
7
votes
3answers
4k 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 ...