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
18 views

Sieve script does not assign IMAP flags

I am using Dovecot with Sieve, Thunderbird as mail client and want to assign IMAP flags to certain messages. I have a few tags defined in Thunderbird and have the following script: require "...
0
votes
0answers
6 views

Is it possible to lookup key value pairs from a Sieve script?

I have Sieve scripts, which file mails into folders depending on a lot of keywords. Instead of listing all the keywords in the Sieve script, I would like to have an external source, where the Sieve ...
0
votes
1answer
46 views

Why does Dovecot LDA create subfolders for address detail?

I recently noticed that my dovecot LDA creates a subfolder in my Maildir for mails that have a details part in the recipient address (local-part+detail@domain). I absolutely cannot find a setting ...
0
votes
0answers
21 views

Sieve vacation auto-reply doesn't authenticate with the correct user on SASL file

I've set up sieve filtering in my mail server to use a vacation script, however when the mail is sent by postfix it bounces back because it doesn't authenticate with the ISP. I have the ...
1
vote
0answers
26 views

Disable action associated with extension 'fileinto' in the managesieve interpreter (Dovecot)

After doing some research on sieve support with dovecot, I decided to implement it on a virtual machine for testing. I have everything working as expected, i.e. a script is uploaded onto the server, ...
0
votes
1answer
291 views

Dovecot Sieve doesn't move spam to Junk folder in maildir

I have an Ubuntu 16.04 mail server with postfix/spamassassin/dovecot with virtual mailboxes in maildir format. The whole process is working excellently since a year. Spams are marked with "*****SPAM***...
0
votes
0answers
16 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
56 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 ...
1
vote
0answers
64 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
123 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
575 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
319 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
143 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 ...
1
vote
0answers
120 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
117 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
792 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
162 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
155 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
180 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
891 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
894 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
278 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
645 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
305 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
291 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
415 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
668 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
1k 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
63 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
54 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
1k 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 ...
0
votes
1answer
609 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
141 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
2k 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
333 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
558 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
2answers
402 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
140 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
128 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
279 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
641 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 ...
1
vote
1answer
632 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
367 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
431 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
208 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
107 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
2k 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
61 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
428 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)...