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
1 answer
30 views

Reject mail based on FROM domain

I'm wondering if it's possible to setup filter in sieve to catch the FROM domain and match that with the TO recipient mailbox name. Usage is to filter unwanted emails when companies sell/share my ...
user avatar
  • 1
0 votes
0 answers
42 views

Dovecot Sieve Vacacations not working if the mail is relayed by external provider

We have infrastructure with the postfix server, dovecot and sieve. Everything is working as expected but recently decision was made to start relaying our outgoing mail via the external provider. There ...
user avatar
0 votes
2 answers
48 views

Sieve: Filter Rules

I want to implement a rule as follows: If "To" comprises only addresses having "*@example.com" -> discard Otherwise -> keep In other words: If "To" comprises at ...
user avatar
  • 1
0 votes
1 answer
38 views

Dovecot sieve concatenate heqders

Setup postfix forwards all mails to an archive@domain user via always_bcc, postfix saves all the RCPT TO in X-Envelope-To headers to perserve the bcc recipients, postfix deletes X-Envelope-To for ...
user avatar
0 votes
1 answer
152 views

Sievie for outgoing mail - dovecot

I need to make a filter for outgoing mail. To copy messages if "to" contains the given e-mail address.I have: # rule:[Copy to slack] if address :contains "to" "test@example....
user avatar
  • 1
0 votes
2 answers
403 views

Issue with Sieve Filters on postfix?

I was wondering if someone could shed some light on the issue im having, Currently i have a simple postfix server and in front it has a PMG gateway. Because PMG gateway has the spam filters i need to ...
user avatar
0 votes
1 answer
57 views

Dovecot: How can I prevent sieve filter from being applied to some mail users?

We have an emarket@example.com mailbox that receives orders from customers. Postfix redirects such emails to the email addresses of our sales managers, as well as to the special address parser@example....
user avatar
  • 11
1 vote
2 answers
515 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 ...
user avatar
  • 11
0 votes
1 answer
266 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 ...
user avatar
  • 1
0 votes
1 answer
166 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 ...
user avatar
  • 1
0 votes
1 answer
284 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 = * ...
user avatar
  • 103
1 vote
1 answer
127 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 ...
user avatar
1 vote
0 answers
88 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 ["...
user avatar
2 votes
0 answers
351 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 ...
user avatar
1 vote
0 answers
25 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 ...
user avatar
  • 11
-1 votes
1 answer
1k 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><...
user avatar
  • 412
0 votes
1 answer
715 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 ...
user avatar
  • 412
0 votes
1 answer
314 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 &...
user avatar
  • 1
1 vote
1 answer
914 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?
user avatar
0 votes
1 answer
89 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 ...
user avatar
  • 210
1 vote
0 answers
741 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 ...
user avatar
0 votes
1 answer
200 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 ...
user avatar
  • 285
1 vote
0 answers
45 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, ...
user avatar
0 votes
1 answer
1k 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***...
user avatar
0 votes
1 answer
283 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 ...
user avatar
1 vote
0 answers
157 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/...
user avatar
  • 907
0 votes
0 answers
425 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", "...
user avatar
0 votes
1 answer
2k 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 "...
user avatar
  • 111
0 votes
1 answer
691 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 ...
user avatar
  • 111
0 votes
1 answer
634 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 ...
user avatar
2 votes
1 answer
365 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 ...
user avatar
  • 153
6 votes
2 answers
922 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 ...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
  • 101
0 votes
1 answer
286 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/...
user avatar
0 votes
1 answer
291 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" "*@*" ...
user avatar
0 votes
1 answer
330 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 ...
user avatar
  • 155
0 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
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}"; ...
user avatar
1 vote
0 answers
411 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. ...
user avatar
  • 111
1 vote
1 answer
2k 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@...
user avatar
  • 155
2 votes
1 answer
726 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 ...
user avatar
  • 127
-1 votes
1 answer
614 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 ...
user avatar
2 votes
2 answers
807 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"...
user avatar
  • 19
0 votes
1 answer
895 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-...
user avatar
  • 776
0 votes
1 answer
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=...
user avatar
  • 776
-1 votes
1 answer
124 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$"]{ ...
user avatar
1 vote
0 answers
55 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(###):...
user avatar
1 vote
0 answers
2k 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 ...
user avatar
  • 123
1 vote
1 answer
1k 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 ...
user avatar
-1 votes
2 answers
237 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 ...
user avatar