<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<div class="moz-cite-prefix">Op 25/11/2018 om 23:52 schreef Michael
Ludwig:<br>
</div>
<blockquote type="cite"
cite="mid:CA+YXVXsby1v9UR0Tre-M8-eLH8GpgDAV3WUFmgL6eamH09qPdA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><br>
<div>Hi to all of you,</div>
<div><br>
</div>
<div>as I am struggling around with this a week or so I'm
afraid I have to ask for help here.</div>
<div>The problem is sitting right in front of the
computer, as most of the time. ;-)</div>
<div><br>
</div>
<div>So let me explain:</div>
<div>Dovecot is working properly for IMAP with LE
certificates, so I thought it's time to continue with
Christoph Haas tutorial primarily and other blogs and
tutorials for setting up the server.</div>
<div>Next part would be to get rspamd learning what mails
the user puts into junk folder.</div>
<div>I followed the tutorial, but it will not work.</div>
<div>Also I tried to get into debug mode, but I feel that
dovecot is not really logging too much.</div>
<div><br>
</div>
<div>Server is freshly set up Ubuntu 18.04.1, latest
patchlevel with packages mostly from Ubuntu sources,
except rspamd, but this was added as ppa if my
remembering is correct.</div>
<div><br>
</div>
<div>This is what I get on syslog, whilst *.* is being put
at /var/log/allmessages.</div>
<div><br>
</div>
<div>#########################################</div>
<div>
<div>Nov 25 23:30:50 myserver dovecot:
imap(<a class="moz-txt-link-abbreviated" href="mailto:info@mydomain.tld">info@mydomain.tld</a>): Debug: INBOX/Junk: Mailbox
opened because: UID move</div>
<div>Nov 25 23:30:50 myserver dovecot:
imap(<a class="moz-txt-link-abbreviated" href="mailto:info@mydomain.tld">info@mydomain.tld</a>): Debug: imapsieve: mailbox
INBOX/Junk: MOVE event</div>
<div>Nov 25 23:30:50 myserver dovecot:
imap(<a class="moz-txt-link-abbreviated" href="mailto:info@mydomain.tld">info@mydomain.tld</a>): Debug: sieve: Pigeonhole
version 0.4.21 (92477967) initializing</div>
<div>Nov 25 23:30:50 myserver dovecot:
imap(<a class="moz-txt-link-abbreviated" href="mailto:info@mydomain.tld">info@mydomain.tld</a>): Debug: sieve: Sieve imapsieve
plugin for Pigeonhole version 0.4.21 (92477967) loaded</div>
<div>Nov 25 23:30:50 myserver dovecot:
imap(<a class="moz-txt-link-abbreviated" href="mailto:info@mydomain.tld">info@mydomain.tld</a>): Debug: sieve: Sieve
Extprograms plugin for Pigeonhole version 0.4.21
(92477967) loaded</div>
<div>Nov 25 23:30:50 myserver dovecot:
imap(<a class="moz-txt-link-abbreviated" href="mailto:info@mydomain.tld">info@mydomain.tld</a>): Debug: imapsieve: Static
mailbox rule [1]: mailbox=`Junk' from=`*'
causes=(COPY) =>
before=`<a class="moz-txt-link-freetext" href="file:/etc/dovecot/sieve/report-spam.sieve">file:/etc/dovecot/sieve/report-spam.sieve</a>'
after=(none)</div>
<div>Nov 25 23:30:50 myserver dovecot:
imap(<a class="moz-txt-link-abbreviated" href="mailto:info@mydomain.tld">info@mydomain.tld</a>): Debug: imapsieve: Static
mailbox rule [2]: mailbox=`*' from=`Junk'
causes=(COPY) =>
before=`<a class="moz-txt-link-freetext" href="file:/etc/dovecot/sieve/report-ham.sieve">file:/etc/dovecot/sieve/report-ham.sieve</a>'
after=(none)</div>
</div>
<div>######################################### </div>
<div><br>
</div>
<div>So as far as I can interpret there is absolutely no
script called when I move a mail from inbox to junk
folder in Thunderbird.<br>
</div>
<div>Here is the output of dovecot -n but I don't exactly
if this is enough, so please give me an info if you need
more output.</div>
</div>
</div>
</div>
</div>
</blockquote>
<p>Your configuration tells me your mailbox names need to be
prefixed with "INBOX/".</p>
<p><br>
</p>
<p>Regards,</p>
<p>Stephan.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CA+YXVXsby1v9UR0Tre-M8-eLH8GpgDAV3WUFmgL6eamH09qPdA@mail.gmail.com">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><br>
</div>
<div><br>
</div>
<div>
<div>######################################### </div>
<div># 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf</div>
<div># Pigeonhole version 0.4.21 (92477967)</div>
<div># OS: Linux 4.15.0-39-generic x86_64 Ubuntu 18.04.1
LTS ext4</div>
<div>auth_mechanisms = plain login</div>
<div>lmtp_rcpt_check_quota = yes</div>
<div>lmtp_save_to_detail_mailbox = yes</div>
<div>mail_debug = yes</div>
<div>mail_location = maildir:/var/vmail/%d/%n/Maildir</div>
<div>mail_plugins = " quota"</div>
<div>mail_privileged_group = mail</div>
<div>managesieve_notify_capability = mailto</div>
<div>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 imapsieve vnd.dovecot.imapsieve</div>
<div>namespace inbox {</div>
<div> inbox = yes</div>
<div> list = yes</div>
<div> location =</div>
<div> mailbox Drafts {</div>
<div> auto = subscribe</div>
<div> special_use = \Drafts</div>
<div> }</div>
<div> mailbox Junk {</div>
<div> auto = subscribe</div>
<div> autoexpunge = 90 days</div>
<div> special_use = \Junk</div>
<div> }</div>
<div> mailbox Sent {</div>
<div> auto = subscribe</div>
<div> special_use = \Sent</div>
<div> }</div>
<div> mailbox "Sent Messages" {</div>
<div> special_use = \Sent</div>
<div> }</div>
<div> mailbox Trash {</div>
<div> auto = subscribe</div>
<div> autoexpunge = 30 days</div>
<div> special_use = \Trash</div>
<div> }</div>
<div> prefix = INBOX/</div>
<div> separator = /</div>
<div> subscriptions = yes</div>
<div> type = private</div>
<div>}</div>
<div>passdb {</div>
<div> args = /etc/dovecot/dovecot-sql.conf.ext</div>
<div> driver = sql</div>
<div>}</div>
<div>plugin {</div>
<div> imapsieve_mailbox1_before =
<a class="moz-txt-link-freetext" href="file:/etc/dovecot/sieve/report-spam.sieve">file:/etc/dovecot/sieve/report-spam.sieve</a></div>
<div> imapsieve_mailbox1_causes = COPY</div>
<div> imapsieve_mailbox1_name = Junk</div>
<div> imapsieve_mailbox2_before =
<a class="moz-txt-link-freetext" href="file:/etc/dovecot/sieve/report-ham.sieve">file:/etc/dovecot/sieve/report-ham.sieve</a></div>
<div> imapsieve_mailbox2_causes = COPY</div>
<div> imapsieve_mailbox2_from = Junk</div>
<div> imapsieve_mailbox2_name = *</div>
<div> quota_grace = 20%%</div>
<div> quota_status_nouser = DUNNO</div>
<div> quota_status_overquota = 552 5.2.2 Mailbox is
over quota</div>
<div> quota_status_success = DUNNO</div>
<div> recipient_delimiter = +</div>
<div> sieve = <a class="moz-txt-link-freetext" href="file:~/sieve;active=~/.dovecot.sieve">file:~/sieve;active=~/.dovecot.sieve</a></div>
<div> sieve_after = /etc/dovecot/sieve-after/</div>
<div> sieve_global = /etc/dovecot/sieve</div>
<div> sieve_global_extensions = +vnd.dovecot.pipe</div>
<div> sieve_pipe_bin_dir = /etc/dovecot/sieve</div>
<div> sieve_pipe_socket_dir = sieve-pipe</div>
<div> sieve_plugins = sieve_imapsieve sieve_extprograms</div>
<div> sieve_trace_debug = yes</div>
<div>}</div>
<div>protocols = " imap lmtp sieve pop3"</div>
<div>service auth {</div>
<div> unix_listener /var/spool/postfix/private/auth {</div>
<div> group = postfix</div>
<div> mode = 0660</div>
<div> user = postfix</div>
<div> }</div>
<div>}</div>
<div>service imap-login {</div>
<div> inet_listener imaps {</div>
<div> port = 993</div>
<div> ssl = yes</div>
<div> }</div>
<div>}</div>
<div>service lmtp {</div>
<div> unix_listener
/var/spool/postfix/private/dovecot-lmtp {</div>
<div> group = postfix</div>
<div> mode = 0600</div>
<div> user = postfix</div>
<div> }</div>
<div>}</div>
<div>service pop3-login {</div>
<div> inet_listener pop3s {</div>
<div> port = 995</div>
<div> ssl = yes</div>
<div> }</div>
<div>}</div>
<div>service quota-status {</div>
<div> client_limit = 1</div>
<div> executable = quota-status -p postfix</div>
<div> inet_listener {</div>
<div> port = 22466</div>
<div> }</div>
<div>}</div>
<div>ssl_cert =
</etc/letsencrypt/live/myserver.mydomain.tld/fullchain.pem</div>
<div>ssl_client_ca_dir = /etc/ssl/certs</div>
<div>ssl_key = # hidden, use -P to show it</div>
<div>userdb {</div>
<div> args = /etc/dovecot/dovecot-sql.conf.ext</div>
<div> driver = sql</div>
<div>}</div>
<div>userdb {</div>
<div> args = uid=vmail gid=vmail home=/var/vmail/%d/%n</div>
<div> driver = static</div>
<div>}</div>
<div>protocol lmtp {</div>
<div> mail_plugins = " quota quota sieve"</div>
<div> postmaster_address = <a class="moz-txt-link-abbreviated" href="mailto:postmaster@mydomain.tld">postmaster@mydomain.tld</a></div>
<div>}</div>
<div>protocol imap {</div>
<div> mail_plugins = " quota imap_sieve imap_quota"</div>
<div>}</div>
</div>
<div>
<div>######################################### </div>
<br class="gmail-Apple-interchange-newline">
</div>
<div><br>
</div>
<div>Would be really great if somebody knows what the he**
I am doing wrong.<br>
</div>
<div>Thank you for taking the time to go through this.</div>
<div><br>
</div>
<div>Michael</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>