Questions tagged [sieve]

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

1
vote
0answers
25 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
24 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
123 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
61 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
1answer
18 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 ...
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
61 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 ...
4
votes
2answers
49 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 ...
0
votes
1answer
197 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
68 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
85 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
84 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
0answers
38 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 ...
0
votes
1answer
477 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
473 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
0answers
188 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. ...
0
votes
1answer
303 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@...
1
vote
1answer
146 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
1answer
178 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
263 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
549 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
784 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
42 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
49 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
705 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
349 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
votes
2answers
107 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 ...
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
305 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
390 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
271 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
69 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
108 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 ...
0
votes
1answer
236 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 ...
1
vote
2answers
481 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
488 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
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
293 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
312 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
0answers
170 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
86 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 ...
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
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....
0
votes
1answer
397 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)...
2
votes
1answer
650 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
2answers
1k 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
votes
1answer
238 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 ...
7
votes
2answers
3k 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 ...
3
votes
1answer
1k 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 ...
1
vote
1answer
994 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, ...