Questions tagged [sieve]
Sieve is a language for filtering email messages. It can be implemented in mail server or mail client.
112
questions
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}";
...
1
vote
0
answers
526
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
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@...
2
votes
1
answer
1k
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
1
answer
783
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
2
answers
1k
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
1
answer
1k
views
filtering spam emails with Chinese subject
A client have ton of Chinese spam. All look similar to this one:
Return-Path: <[email protected]>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
hotel492.dedicatedpanel.com
X-...
0
votes
1
answer
3k
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
1
answer
186
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
0
answers
66
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
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 ...
1
vote
1
answer
2k
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
2
answers
284
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
2
answers
3k
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
1
answer
555
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
2
answers
1k
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 ...
4
votes
2
answers
1k
views
Replace characters in a sieve variable
When I register on websites I use their domain in my email, for example [email protected]. I'd like to file each domain into a separate IMAP folder using sieve and I've created the script ...
1
vote
1
answer
358
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
1
answer
159
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
1
answer
412
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 [email protected]`
perl -pi -e 's/Folder-to-Remove//g' $result/subscriptions
but executing it via ...
1
vote
2
answers
1k
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
1
answer
1k
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
2
answers
4k
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
0
answers
420
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:[email protected]
The problem is that I have lots of mail accounts ...
2
votes
1
answer
849
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
0
answers
282
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
1
answer
148
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
2
answers
3k
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
1
answer
70
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
1
answer
514
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)...
4
votes
1
answer
3k
views
Dovecot Sieve does not run?
I'm quite new to Dovecot but it has worked out for me pretty good so far for me.
I run dovecot with postfix and amavis and spamassassin and it works out all fine, mails get tagged as junk, sending, ...
1
vote
2
answers
2k
views
dovecot: pigeonhole sieve daemon not starting
I'm trying to get dovecot + pigeonhole sieve working on ubuntu 14.04.
From everything I've read it seems like this should be pretty straightforward, but I can't seem to get it working.
I've ...
-1
votes
1
answer
610
views
Forwarding emails to external domains - aliases vs mda sieve script?
There are 2 points in the flow of a incoming email where emails can be forwarded:
As soon as aliases are expanded (setting the target email as alias target)
As soon as mails are handed over to the ...
11
votes
2
answers
5k
views
invoke filtering manually in dovecot+sieve
I've configured dovecot with a sieve filtering (also I've configured roundcube, but this does not matter I think).
It's working fine, I've set up some filters. But now I've got a huge unfiltered ...
3
votes
1
answer
2k
views
Dovecot Sieve allows spoofing through LMTP
I have set up Postfix to block spoofing your email (you can only send emails as yourself):
smtpd_sender_restrictions =
reject_authenticated_sender_login_mismatch
I have set up Sieve and ...
1
vote
1
answer
1k
views
roundcube/managesieve sends vacation replies only to local users
I've had a round cube / postfix setup with os x server (10.8) for some time working. Today we discovered that the vacation filter is only sending messages to local users. It was working some time ago, ...
1
vote
1
answer
4k
views
sieve-test working but actual filter is just working sometimes with dovecot
i just migrated from an old Ubuntu 10.4 VPS to a shiny new Ubuntu 14.04.
After a little work i got everything running besides dovecot with sieve.
This question is about sieve filtering messages ...
0
votes
1
answer
2k
views
sieve redirect to foreign email gets "Relay access denied"
I have a postfix mail server with sql authentication and I want to implement sieve on it.
Sieve is working relative good, rules who contain 'fileinto' are executed perfectly.
I configured a rule in ...
4
votes
3
answers
955
views
Dovecot: deliver reply into same folder as replied-to message
UPDATE (2 sept 2014 13:01): Just to clarify, I'm interested in handling an incoming reply from someone else, so coming in via SMTP. If it is a reply to an email that is already in some mail folder, it ...
2
votes
2
answers
5k
views
Postfix (virtual users) + dovecot + sieve: envelop does not contain original recipient
I have set up my email server following the ISPMail tutorial with virtual users in postfix + dovecot + sieve. My problem is: the envelop "variable" in sieve does not contain the original recipient.
I ...
1
vote
1
answer
2k
views
How to automatically create .dovecot.sieve file in new maildirs for dspam filtering?
I've followed this http://sealedabstract.com/code/nsa-proof-your-e-mail-in-2-hours/ tutorial, adjusted to allow for vimbadmin3 users, to set up my mail server. Most of my adjustments come from https://...
0
votes
1
answer
471
views
SpamAssassin doesn't filter forwarded mails
I am forwarding emails from an external email account to an account on my own server.
SpamAssassin works fine if I just receive mail normally. But all mail thats being forwarded from my external mail ...
4
votes
1
answer
2k
views
How to trigger custom actions in dovecot, when email is moved or deleted?
In my dovecot setup I use virtual folders (not to be confused with virtual users). My goal is to get something like seen in googlemail. I want a folder containing all my messages and also I want to ...
1
vote
2
answers
6k
views
Postfix and Dovecot Sieve spam filter does not work
CentOS 6.5 x64
I'm trying to apply a Sieve filter to my mailserver (Postfix + Dovecot + Spamassassin) to automatically move spam mails to my Junk folder.
I've added sieve to my /etc/dovecot/dovecot....
0
votes
1
answer
1k
views
Sieve - Redirect incoming mail for all mailboxes within domain to one specific mailbox
Is it possible to set a global sieve filter to redirect mail to specific mailbox within receiving domain. I understand I can simply point out where I want mail to go in a filter like bounce@example....
1
vote
1
answer
2k
views
Add a per-domain filter in sieve
How can I set up a per-domain filter in sieve/dovecot?
In documentation I can see per-user setting: sieve = ~/.dovecot.sieve, and right now I'm using global filter: sieve_before = /etc/dovecot/sieve/...
0
votes
1
answer
995
views
libdovecot-sieve.so.0 undefined symbol: i_debug
After upgrading dovecot from 1.2 to 2.1.7 (while upgrading squeeze to wheezy) sieve no longer does it's job. (And breaks mail delivery)
apt-purging all dovecot packages and reinstalling did not ...
1
vote
1
answer
4k
views
How to avoid 554 error duplicate header
I set up IRedMail on an AWS server, so the mail stack looks something like this:
Postfix
Dovecot
Roundcube
Mail sent through Amazon SES
I'm trying to forward emails to Gmail using the Managesieve ...
0
votes
1
answer
155
views
How do I get Ingo to provide sieve rules suitable for use with DSPAM?
Using the Ingo web gui which is part of horde, I can set up sieve rules that get written to file like so:
# Junk-Review
if header :comparator "i;ascii-casemap" :regex "X-DSPAM-confidence" "^(0\.[0-8][...
4
votes
4
answers
7k
views
Sieve: filter subject with regex, file into mailbox named match
I am trying to filter mails by subject with a regular expression.
The subjects I want to match are read like [git-foo] some more text where foo is the string I want to check for.
I end up with the ...