0
root@debian11:/etc/dovecot# dovecot -n
# 2.3.13 (89f716dc2): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.13 (cdd19fe3)
# OS: Linux 5.10.0-26-amd64 x86_64 Debian 11.8
# Hostname: localhost
auth_username_format = %n
listen = 127.0.0.1, ::1
log_path = /var/log/dovecot.log
mail_debug = yes
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_privileged_group = mail
managesieve_notify_capability = mailto
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
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
plugin {
  sieve = file:~/sieve;active=~/.dovecot.sieve
  sieve_default = /etc/dovecot/sieve/global/default.sieve
  sieve_global = /etc/dovecot/sieve/global/
  sieve_max_redirects = 30
}
protocols = " imap sieve pop3 sieve"
ssl_cert = </etc/dovecot/private/dovecot.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
  driver = passwd
}
protocol lda {
  mail_plugins = " sieve"
}

and only this in log

Nov 06 23:46:41 master: Info: Dovecot v2.3.13 (89f716dc2) starting up for imap, sieve, pop3, sieve (core dumps disabled)

and roundcube success connecting to managesieve

in messages have headers like

X-Spam_score: -5.2
X-Spam_bar: ---

exim4+dovecot+mailroundcube+spamassasin

other logs

Nov  6 23:02:00 localhost dovecot: managesieve(admin)<258896><89DBU4EJyJp/AAAB>: Disconnected: Logged out bytes=54/518

Nov 6 23:01:29 localhost roundcube: <3muamjlk> S: OK "Dovecot (Debian) ready."

roundcube creating new filters in WEB UI, but not working and roundcube creating roundcube.sieve and symlink.. I also created a global script, but it doesn't work.

7
  • Are you saying that Roundcube can successfully connect to the managesieve service? Commented Nov 6, 2023 at 21:04
  • Why have you got sieve listed twice under protocols? Commented Nov 6, 2023 at 21:05
  • Nov 6 23:01:29 localhost roundcube: <3muamjlk> S: OK "Dovecot (Debian) ready." like this Commented Nov 6, 2023 at 21:05
  • I've tried three places sieve Commented Nov 6, 2023 at 21:05
  • Dumping log information isn't really answering what I've asked Commented Nov 6, 2023 at 21:06

1 Answer 1

0

It looks like Dovecot is correctly offering and managing a Sieve service. You will need to adjust your (unspecified) Mail Delivery Agent to use the Sieve file/service for message delivery.

5
  • what else do I have to install? Commented Nov 6, 2023 at 21:41
  • something that delivers mail Commented Nov 6, 2023 at 21:42
  • examples please Commented Nov 6, 2023 at 21:46
  • postfix sendmail exim4 Commented Nov 6, 2023 at 21:47
  • 1
    I already have exim4 so I didn't understand it right away, I will config it. Commented Nov 6, 2023 at 21:48

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.