Hi to all of you,
as I am struggling around with this a week or so I'm afraid I have to ask for help here.The problem is sitting right in front of the computer, as most of the time. ;-)
So let me explain: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.Next part would be to get rspamd learning what mails the user puts into junk folder.I followed the tutorial, but it will not work.Also I tried to get into debug mode, but I feel that dovecot is not really logging too much.
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.
This is what I get on syslog, whilst *.* is being put at /var/log/allmessages.
#########################################Nov 25 23:30:50 myserver dovecot: imap(info@mydomain.tld): Debug: INBOX/Junk: Mailbox opened because: UID moveNov 25 23:30:50 myserver dovecot: imap(info@mydomain.tld): Debug: imapsieve: mailbox INBOX/Junk: MOVE eventNov 25 23:30:50 myserver dovecot: imap(info@mydomain.tld): Debug: sieve: Pigeonhole version 0.4.21 (92477967) initializingNov 25 23:30:50 myserver dovecot: imap(info@mydomain.tld): Debug: sieve: Sieve imapsieve plugin for Pigeonhole version 0.4.21 (92477967) loadedNov 25 23:30:50 myserver dovecot: imap(info@mydomain.tld): Debug: sieve: Sieve Extprograms plugin for Pigeonhole version 0.4.21 (92477967) loadedNov 25 23:30:50 myserver dovecot: imap(info@mydomain.tld): Debug: imapsieve: Static mailbox rule [1]: mailbox=`Junk' from=`*' causes=(COPY) => before=`file:/etc/dovecot/sieve/report-spam.sieve' after=(none)Nov 25 23:30:50 myserver dovecot: imap(info@mydomain.tld): Debug: imapsieve: Static mailbox rule [2]: mailbox=`*' from=`Junk' causes=(COPY) => before=`file:/etc/dovecot/sieve/report-ham.sieve' after=(none)#########################################
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.
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.
Your configuration tells me your mailbox names need to be prefixed with "INBOX/".
Regards,
Stephan.
########################################## 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf# Pigeonhole version 0.4.21 (92477967)# OS: Linux 4.15.0-39-generic x86_64 Ubuntu 18.04.1 LTS ext4auth_mechanisms = plain loginlmtp_rcpt_check_quota = yeslmtp_save_to_detail_mailbox = yesmail_debug = yesmail_location = maildir:/var/vmail/%d/%n/Maildirmail_plugins = " quota"mail_privileged_group = mailmanagesieve_notify_capability = mailtomanagesieve_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.imapsievenamespace inbox {inbox = yeslist = yeslocation =mailbox Drafts {auto = subscribespecial_use = \Drafts}mailbox Junk {auto = subscribeautoexpunge = 90 daysspecial_use = \Junk}mailbox Sent {auto = subscribespecial_use = \Sent}mailbox "Sent Messages" {special_use = \Sent}mailbox Trash {auto = subscribeautoexpunge = 30 daysspecial_use = \Trash}prefix = INBOX/separator = /subscriptions = yestype = private}passdb {args = /etc/dovecot/dovecot-sql.conf.extdriver = sql}plugin {imapsieve_mailbox1_before = file:/etc/dovecot/sieve/report-spam.sieveimapsieve_mailbox1_causes = COPYimapsieve_mailbox1_name = Junkimapsieve_mailbox2_before = file:/etc/dovecot/sieve/report-ham.sieveimapsieve_mailbox2_causes = COPYimapsieve_mailbox2_from = Junkimapsieve_mailbox2_name = *quota_grace = 20%%quota_status_nouser = DUNNOquota_status_overquota = 552 5.2.2 Mailbox is over quotaquota_status_success = DUNNOrecipient_delimiter = +sieve_after = /etc/dovecot/sieve-after/sieve_global = /etc/dovecot/sievesieve_global_extensions = +vnd.dovecot.pipesieve_pipe_bin_dir = /etc/dovecot/sievesieve_pipe_socket_dir = sieve-pipesieve_plugins = sieve_imapsieve sieve_extprogramssieve_trace_debug = yes}protocols = " imap lmtp sieve pop3"service auth {unix_listener /var/spool/postfix/private/auth {group = postfixmode = 0660user = postfix}}service imap-login {inet_listener imaps {port = 993ssl = yes}}service lmtp {unix_listener /var/spool/postfix/private/dovecot-lmtp {group = postfixmode = 0600user = postfix}}service pop3-login {inet_listener pop3s {port = 995ssl = yes}}service quota-status {client_limit = 1executable = quota-status -p postfixinet_listener {port = 22466}}ssl_cert = </etc/letsencrypt/live/myserver.mydomain.tld/fullchain.pemssl_client_ca_dir = /etc/ssl/certsssl_key = # hidden, use -P to show ituserdb {args = /etc/dovecot/dovecot-sql.conf.extdriver = sql}userdb {args = uid=vmail gid=vmail home=/var/vmail/%d/%ndriver = static}protocol lmtp {mail_plugins = " quota quota sieve"postmaster_address = postmaster@mydomain.tld}protocol imap {mail_plugins = " quota imap_sieve imap_quota"}#########################################
Would be really great if somebody knows what the he** I am doing wrong.
Thank you for taking the time to go through this.
Michael