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

Dovecot process synchronization for duplicate email detection

We have a dovecot server version 2.3.16 with sieve duplicate extension enabled to detect and discard duplicates. We have duplicate routing in Postfix virtual_aliases file which causes duplicate copies ...
device_exec's user avatar
1 vote
0 answers
93 views

How to move Spam emails to Spam folder With RoundCube and Dovecot-Pigeonhole

OS: Rocky Linux 9.2 Services: Dovecot, Dovecot-Pigeonhole, Postfix, Spamassassin, RoundCube I'm trying to move emails flagged as spam by postfix and spamassassin to spam folder using Dovecot-...
Hady Shaltout's user avatar
1 vote
0 answers
157 views

managesieve - default sieve not applying

I set up my mail server on Debian 11 (postfix, dovecot, spamassassin, roundcube) and I got an issue with managesieve. In "90-sieve.conf" I set: sieve_default = /var/lib/dovecot/sieve/default....
roughnecks's user avatar
2 votes
1 answer
217 views

Sieve rules to match raw header values

This worked in procmail, but it seems procmail was abandoned in Sept 2001. I had a rule that would sense when utf-8 was used in the 'To:' header to write my name using emoji or non-Latin characters. ...
Moses Moore's user avatar
0 votes
2 answers
220 views

sieve vacation using from: not reply-to:

Sieve vacation answers fine, but uses the from: field but not the reply-to: field, which would make much more sense (to me). Using sieve with roundcube, sieve script is require ["vacation"]; ...
Heiner's user avatar
  • 15
0 votes
0 answers
287 views

Dovecot + imap_sieve learning spam

Have dovecot+sieve. It's most often recommended that users train spamassassin/rspamd in the following way: A Spam folder is created in each mailbox (Junk type) Further, through the imap_sieve plugin, ...
cozby's user avatar
  • 7
0 votes
0 answers
253 views

Dynamically move mails into matching mailboxes with sieve fileinto regex

I'm trying to create a sieve script, which files mails into mailboxes (or sub-directories of the inbox) matching a certain subject identifier. For example if the subject includes 123 (three digits, 0-...
Breakfast Serial's user avatar
0 votes
0 answers
563 views

Setting up managesieve on Dovecot

I'm trying to get my head around setting up managesieved so that my users can make use of it. So far I have done: apt-get install dovecot-sieve dovecot-managesieved After some debugging, I found out ...
Andrew Newby's user avatar
  • 1,124
0 votes
1 answer
157 views

Implementing arithmetic rules in sieve to filter recipient address, is it possible?

For example, the receiver's address should have the following pattern: last digit = (1st digit + 2nd digit)%10. [email protected], PASS, 1+2=3, and the last digit is 3. [email protected], ...
stackname's user avatar
1 vote
1 answer
493 views

Sieve Does not Work in Postfix + Dovecot + LMTP + Virtual Mailbox Setting

I am setting up a spam filter on my email server but cannot get sieve to sort the mails. All spams are delivered straight to the inbox despite rules written in .dovecot.sieve. In mail logs Postfix ...
UM-Li's user avatar
  • 31
0 votes
1 answer
383 views

Managesieve Rouncube no connect to the server

I had a Dovecot and Roundcube server installed on the same machine, and Managesieve worked fine. But I changed Rouncube to another server and I can't get managesieve to connect. I already modified the ...
Carlos Torres Hanna's user avatar
1 vote
0 answers
290 views

Email Sieve to Target emails with a specific pattern in a catchall domain address

I have the following email formats: [email protected] [email protected] [email protected] [email protected] I create them on the fly when I sign up to different sites. I'm having an ...
Patoshi パトシ's user avatar
0 votes
1 answer
218 views

Where sieve file must be located if dovecot runs with virtual_mailbox_maps

I have postfix + dovecot install that uses virtual_mailbox_maps I want to do sieve for specific users. where I should put the sieve file, since there are no user directories? In dovecot configuration ...
Nick's user avatar
  • 826
0 votes
1 answer
61 views

how to lint sieve scripts in a programmatic way

how can I lint sieve scripts in a programmatic way? I am looking for something to integrate in a sieve editor I have not found any reference in the sieve documentation
Max Muster's user avatar
0 votes
2 answers
545 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 ...
plejon's user avatar
  • 1
0 votes
2 answers
607 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 ...
Ralph's user avatar
  • 1
0 votes
1 answer
99 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 ...
user3450564's user avatar
0 votes
1 answer
493 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....
onev's user avatar
  • 1
0 votes
2 answers
1k 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 ...
killmasta93's user avatar
0 votes
1 answer
284 views

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

We have an [email protected] 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....
yurybx's user avatar
  • 11
1 vote
2 answers
1k 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 ...
jeefo's user avatar
  • 11
0 votes
1 answer
719 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 ...
AlesP's user avatar
  • 1
0 votes
1 answer
490 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 ...
sat's user avatar
  • 1
0 votes
2 answers
729 views

How to make sieve-filter use virtual users

sieve-filter -e -W -u [email protected] /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 = * ...
meles's user avatar
  • 113
1 vote
1 answer
549 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 ...
user3292312's user avatar
1 vote
0 answers
210 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 [email protected]. Currently I have this script: if address :matches ["...
StackHogger's user avatar
2 votes
0 answers
628 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 ...
francisaugusto's user avatar
1 vote
0 answers
50 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 ...
Jules's user avatar
  • 11
-1 votes
1 answer
2k 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><...
StevieD's user avatar
  • 534
0 votes
1 answer
1k 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 ...
StevieD's user avatar
  • 534
0 votes
1 answer
626 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 &...
djlj's user avatar
  • 1
1 vote
1 answer
2k 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?
Mr. NoNe's user avatar
0 votes
1 answer
188 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 ...
Jacob's user avatar
  • 210
1 vote
0 answers
1k 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 ...
user3135038's user avatar
0 votes
1 answer
372 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 ...
mcandril's user avatar
  • 295
1 vote
0 answers
94 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, ...
booshlinux's user avatar
1 vote
1 answer
2k 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***...
Tibor Nagy's user avatar
1 vote
1 answer
412 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 ...
Doron Behar's user avatar
1 vote
0 answers
327 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/...
Lenne's user avatar
  • 987
0 votes
1 answer
776 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 "[email protected]" :subject "Mailbox disabled" :from "...
Vietyank's user avatar
  • 111
0 votes
1 answer
1k 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 ...
Vietyank's user avatar
  • 111
0 votes
1 answer
960 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 ...
Pointless One's user avatar
2 votes
1 answer
787 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, [email protected] would be filed in folder "suffix". This works, but I would also like to allow for "-" as ...
user52366's user avatar
  • 153
7 votes
2 answers
2k 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: <[email protected]> ... (stuff elided, etc.) Received: from ...
Iain Brown's user avatar
0 votes
1 answer
4k 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 ...
Fid's user avatar
  • 101
1 vote
1 answer
419 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: <[email protected]> Mime-Version: 1.0 Content-Type: multipart/...
JackTheKnife's user avatar
0 votes
1 answer
373 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" "*@*" ...
JackTheKnife's user avatar
0 votes
1 answer
414 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: i[email protected] johnDoe However, for the ...
mmalmeida's 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 ...
daniel_dw's user avatar