Questions tagged [sieve]
Sieve is a language for filtering email messages. It can be implemented in mail server or mail client.
111
questions
1
vote
0
answers
60
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-...
1
vote
0
answers
132
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....
2
votes
1
answer
197
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. ...
0
votes
2
answers
214
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"];
...
0
votes
0
answers
262
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, ...
0
votes
0
answers
213
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-...
0
votes
0
answers
496
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 ...
0
votes
1
answer
146
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], ...
1
vote
1
answer
442
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 ...
0
votes
1
answer
357
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 ...
1
vote
0
answers
277
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 ...
0
votes
1
answer
207
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 ...
0
votes
1
answer
58
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
0
votes
2
answers
500
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 ...
0
votes
2
answers
565
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 ...
0
votes
1
answer
96
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 ...
0
votes
1
answer
447
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....
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 ...
0
votes
1
answer
275
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....
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 ...
0
votes
1
answer
672
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
1
answer
473
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
2
answers
705
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 = *
...
1
vote
1
answer
512
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
0
answers
207
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 ["...
2
votes
0
answers
615
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
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 ...
-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><...
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 ...
0
votes
1
answer
607
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
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?
0
votes
1
answer
185
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 ...
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 ...
0
votes
1
answer
356
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
0
answers
92
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, ...
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***...
1
vote
1
answer
400
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
0
answers
323
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
1
answer
760
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
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 "...
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 ...
0
votes
1
answer
931
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 ...
2
votes
1
answer
748
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 ...
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 ...
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 ...
1
vote
1
answer
411
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/...
0
votes
1
answer
372
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
1
answer
409
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 ...
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 ...
0
votes
1
answer
3k
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}";
...