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
2
votes
2answers
86 views

Postfix + Dovecot, Sieve execution flow and auto reply

I'm using Postfix and Dovecot LMTP on my server. My question is how do I create a silently discarding recipient address and respond auto reply? Also I want to learn Postfix and Dovecot execution ...
0
votes
1answer
47 views

Postfix aliases and duplicate e-mails - with Dovecot

This is actually a follow-up question to this post: Postfix aliases and duplicate e-mails, how to fix? (I don't have enough reputation to comment on that post.) I have setup my Postfix + Dovecot as ...
0
votes
1answer
86 views

Why email response comes from: Postmaster

I've created a sieve script that filters for particular words in Subject, drops the body and sends notification to the recipient and sender. Everything works well but the only thing I can't figure out ...
0
votes
0answers
44 views

Dovecot container tries to invoke sendmail for a sieve filter

I have two docker containers: postfix and dovecot. Both have the corresponding services installed and running. Everything is working great but now i am trying to integrate sieve filtering. One of ...
0
votes
0answers
44 views

How to make sieve-filter use virtual users

sieve-filter -e -W -u user@example.com /path/to/sieve/file.sieve INBOX fails with the error: sieve-filter(root): Fatal: Unknown user The output of doveadm -n is auth_master_user_separator = * ...
0
votes
1answer
30 views

sieve to check if from and reply-to are the same

i'm currently trying to set up a sieve rule to check if From and Reply-to headers are the same. If not reject the email. But i can't seem to get it working. I'm thinking of something like that: if ...
1
vote
0answers
51 views

How to replace multiple letters in an variable in Sieve?

I want to use my catch-all-email to put emails in their corresponding folders. So if I were to sign up for twitter I'd use twitter@example.com. Currently I have this script: if address :matches ["...
0
votes
0answers
114 views

Setting SpamAssassin's Bayes_path per user and dovecot

I have dovecot, Spamassassin and postfix running. I started to use sa-learn to get better and more precise spam identification and filtering. I have not set the Bayes_path preference on my local.cf ...
1
vote
0answers
18 views

Sieve Script not working on tld's

I have the following sieve script, which is supposed to discard or reject any emails from domains like xxx@xxx .xyz or ....top. However it is not discarding them? require ["reject"]; if ...
-1
votes
1answer
337 views

Getting permission denied lmtp/sieve error

I set up sieve for the first time on a Debian machine running postfix/dovecot/lmtp. It works, however I want to clear up an error I've been getting: lmtp(joeblow)<17980><...
0
votes
1answer
263 views

Roundcube filters getting ignored with postfix/dovecot/sieve

I'm having a lot of trouble getting roundcube filters working. I can see the filters in the roundcube web interface and I can see the sieve files in the user's home directory. I can also edit and save ...
0
votes
1answer
102 views

Dovecot's Sieve filter creates duplicate of incoming email

I'm using Dovecot with Sieve filters. I've got a default filter: sieve_before = /var/lib/dovecot/sieve.d/default.sieve And after that some user's filter: sieve_dir = ~/sieve Problem: Dovecot filters &...
1
vote
1answer
144 views

Auto clean mail folder with dovecot/sieve

Can I automatically clean a folder in my mailbox? Let's say I want to automatically delete messages that are older than 3 months. Does dovecot/sieve have this option?
0
votes
1answer
42 views

Sieve filter remove detail part from subaddress

I currently have a sieve filter that looks like the following: require ["variables", "envelope", "fileinto", "vnd.dovecot.filter", "subaddress"]; if ...
0
votes
0answers
332 views

Autoreply script not working using Dovecot + Sieve + Vacation on Debian 10

I am trying to configure the vacation sieve script on my Debian10 server, but it does not seem to work (it does not send an autoreply when receiving mail). I didn't really understand how sieve treats ...
0
votes
0answers
50 views

Alias sieve filter at LMTP level

I would like a global sieve filter able to compare the "To" header with the "Delivered-To" one to check for aliases. Mail to aliases should end up in "Aliases/${alias}" ...
0
votes
0answers
98 views

Postfix - Sieve redirect and SMTP relay

I have a mail server (Postfix/Dovecot/ISPConfig) with a 100+ mail users. I currently use a SMTPRelay with SendGrid for all outcoming mails. I have set a sieve rule for redirecting email to another ...
0
votes
1answer
105 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 ...
1
vote
0answers
39 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
692 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
1answer
175 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
92 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
208 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
1k 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
516 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
358 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
163 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 ...
5
votes
2answers
386 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
2k 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
215 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
225 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
243 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
1k 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
2k 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
339 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
1k 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@...
2
votes
1answer
533 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
459 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 ...
2
votes
2answers
583 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
765 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
2k 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
88 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 ...
1
vote
1answer
827 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
187 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
381 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
663 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 ...
2
votes
2answers
568 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 ...