<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en"><head>
<title></title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8"/>
<meta http-equiv="Content-Style-Type"
content="text/css"/>
</head>
<body>
<div align="left">
<hr size="1pt" width="100%" align="left"/>
<font face="Arial" size="2"><span style="
font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">On 15 Mar
2018 at 9:01, Aki Tuomi wrote:</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">On
15.03.2018 00:43, Jungersen, Danjel - Jungersen Grafisk ApS
wrote:</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">Hi
there.</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt"><br />
</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">I have set up dovecot and
sieve.</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt"><br />
</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">I can log in, see, send and
receive mails.</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">I can move files around via
imap.</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt"><br />
</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">I have set up a sieve script that
are supposed to move some files to junk based on a
header from rspamd.</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt"><br />
</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">The header is there in the
relevant emails, but sieve does not do
anything.</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt"><br />
</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">I have searched a lot online and
the script looks correct.</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt"><br />
</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">I cannot see anything in the
mail.log file ( or in .warn and .err).</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">Nothing indicating that sieve is
running at all, no errors, no confirmations, not
anything.</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt"><br />
</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">I have tried to set permissions to
"dovecot" and "vmail", same
result.</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt"><br />
</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">I have "compiled" my
.sieve to the .svbin file.</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt"><br />
</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">I'm running debian stretch,
and have tried to follow the guide here:</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><a
href="https://workaround.org/ispmail/stretch/filtering-out-spam-with-rspamd">
<font face="Arial" color="#0000ff"
size="2"><span style="
font-size:10pt"><u>https://workaround.org/ispmail/stretch/filtering-out-spam-with-rspamd</u></span></font></a></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt"><br />
</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">Can anyone help me where to start
looking?</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt"><br />
</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style=" font-size:10pt">Best
regards</span></font></div>
<div align="left" style="margin-left:9mm; margin-right:0mm;
text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font
face="Arial" size="2">
<span style="
font-size:10pt">Danjel</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"><br
/>> Try setting mail_debug=yes<br />
Already did that :-)</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"><br
/>> it should give you idea on what happens.<br />
I found out that I needed to add "sieve" to "mail_plugins"
manually.</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">I got it to
work, but had to enable layout=fs, does this have any
drawbacks?</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">My reason
for enabling it was that sieve created the subfolders even though layout=fs was
not set.</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"><br
/>> Also providing doveconf -n could help.<br />
<br />
</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">root@mail:/home/danjel# doveconf
-n</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"># 2.2.27
(c0f36b0): /etc/dovecot/dovecot.conf</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"># Pigeonhole
version 0.4.16 (fed8554)</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"># OS: Linux
4.9.0-6-amd64 x86_64 Debian 9.3 ext4</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">auth_mechanisms = plain
login</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">mail_location =
maildir:/var/vmail/%d/%n:LAYOUT=fs</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">mail_privileged_group =
mail</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">managesieve_notify_capability =
mailto</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation
subaddress comparator-i;ascii-numeric relational regex imap4flags copy include
variables
body enotify environment mailbox date index ihave duplicate mime foreverypart
extracttext</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">namespace
inbox {</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> inbox =
yes</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> location
=</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> mailbox
Drafts {</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> auto =
subscribe</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
special_use = \Drafts</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> mailbox
Junk {</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> auto =
subscribe</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
special_use = \Junk</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> mailbox
Sent {</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
special_use = \Sent</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> mailbox
"Sent Messages" {</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
special_use = \Sent</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> mailbox
Trash {</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> auto =
subscribe</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
special_use = \Trash</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> prefix
=</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">passdb
{</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> args =
/etc/dovecot/dovecot-sql.conf.ext</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> driver =
sql</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">plugin
{</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> sieve =
file:~/sieve;active=~/.dovecot.sieve</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
sieve_after = /etc/dovecot/sieve-after</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">protocols =
imap lmtp</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">service
auth-worker {</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> user =
vmail</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">service auth
{</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
unix_listener /var/spool/postfix/private/auth
{</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> group =
postfix</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> mode =
0666</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> user =
postfix</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
unix_listener auth-userdb {</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> mode =
0600</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> user =
vmail</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> user =
dovecot</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">service
imap-login {</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
inet_listener imap {</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> port =
0</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">service lmtp
{</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
unix_listener /var/spool/postfix/private/dovecot-lmtp
{</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> group =
postfix</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> mode =
0600</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> user =
postfix</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">ssl =
required</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">ssl_cert =
</etc/dovecot/dovecot.pem</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">ssl_key = #
hidden, use -P to show it</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">userdb
{</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> args =
/etc/dovecot/dovecot-sql.conf.ext</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"> driver =
sql</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">protocol
lmtp {</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
mail_plugins = " sieve"</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">protocol lda
{</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt">
mail_plugins = " sieve"</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">}</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style="
font-size:10pt">root@mail:/home/danjel#</span></font></div>
<div align="left"><font face="Arial"
size="2"><span style=" font-size:10pt"><br
/>> Aki</span></font></div>
</body>
</html>