Package: dovecot-managesieved
Version: 1:2.3.19.1+dfsg1-2.1+deb12u2
Severity: important
X-Debbugs-Cc: [email protected]

Dear Maintainer,

Since recently, when trying to use `sieve-connect` authentication fails
with "Error in MANAGESIEVE command received by server." each time, with
or without correct credentials.

```
~$ sieve-connect --debug -s mail.example.com -p 4190
setup: Need to find SSL_ca_path, trying to ask openssl
setup: Have set SSL_ca_path to /usr/lib/ssl/certs
connection: trying <mail.example.com:4190>
connection: remote host address is [81.170.128.136] port [4190]
<<< "IMPLEMENTATION" "Dovecot (Debian) Pigeonhole"\r\n
<<< "SIEVE" "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"\r\n
<<< "NOTIFY" "mailto"\r\n
<<< "SASL" ""\r\n
<<< "STARTTLS"\r\n
<<< "VERSION" "1.0"\r\n
<<< OK "Dovecot (Debian) ready."
-T- will use TLS certs from directory "/usr/lib/ssl/certs"
-T- using hostname 'mail.example.com', verification verify-peer cert-required
>>> STARTTLS\r\n
<<< OK "Begin TLS negotiation now."\r\n
-T- TLS activated here [256 bits]
>>> NOOP "STARTTLS-RESYNC-CAPA"\r\n
<<< "IMPLEMENTATION" "Dovecot (Debian) Pigeonhole"\r\n
<<< "SIEVE" "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"\r\n
<<< "NOTIFY" "mailto"\r\n
<<< "SASL" "SCRAM-SHA-1 PLAIN"\r\n
<<< "VERSION" "1.0"\r\n
<<< OK "TLS negotiation successful."
<<< OK (TAG "STARTTLS-RESYNC-CAPA") "Done"
Sieve/IMAP Password: 
>>> AUTHENTICATE "PLAIN" {16+}\r\n
>>> AHVzZXIAdGVzdA==\r\n
<<< NO "Error in MANAGESIEVE command received by server."\r\n
>>> LOGOUT\r\n
<<< OK "Logout completed."\r\n
Authentication refused by server
: "Error in MANAGESIEVE command received by server."
```


-- Package-specific info:

dovecot configuration
---------------------
# 2.3.19.1 (9b53102964): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.19 (4eae2f79)
# OS: Linux 6.1.0-44-amd64 x86_64 Debian 12.13 
# Hostname: cerdale.example.com
auth_debug = yes
auth_mechanisms = scram-sha-1 plain
auth_verbose = yes
first_valid_uid = 131
imap_idle_notify_interval = 14 mins
mail_location = maildir:~/Maildir
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
metric auth_failures {
  filter = event=auth_request_finished AND NOT success=yes
}
metric auth_success {
  filter = event=auth_request_finished AND success=yes
}
metric imap_command {
  filter = event=imap_command_finished
  group_by = cmd_name tagged_reply_state
}
metric mail_delivery {
  filter = event=mail_delivery_finished
  group_by = duration:exponential:1:5:10
}
metric smtp_command {
  filter = event=smtp_server_command_finished
  group_by = cmd_name status_code duration:exponential:1:5:10
}
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 = 
  separator = /
}
passdb {
  args = scheme=CRYPT username_format=%u /etc/dovecot/users
  driver = passwd-file
  master = yes
}
passdb {
  args = scheme=CRYPT username_format=%u /etc/dovecot/users
  driver = passwd-file
}
plugin {
  sieve = file:~/sieve;active=~/.dovecot.sieve
}
protocols = " imap lmtp sieve"
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0660
    user = postfix
  }
}
service stats {
  inet_listener http {
    port = 9900
  }
}
ssl = required
ssl_cert = </var/lib/dehydrated/certs/mail.example.com/fullchain.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
userdb {
  args = username_format=%u /etc/dovecot/users
  driver = passwd-file
}
protocol lda {
  mail_plugins = " sieve"
}

-- System Information:
Debian Release: 12.13
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 
'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-44-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dovecot-managesieved depends on:
ii  dovecot-core   1:2.3.19.1+dfsg1-2.1+deb12u2
ii  dovecot-sieve  1:2.3.19.1+dfsg1-2.1+deb12u2
ii  libc6          2.36-9+deb12u13
ii  ucf            3.0043+nmu1+deb12u1

dovecot-managesieved recommends no packages.

dovecot-managesieved suggests no packages.

Versions of packages dovecot-managesieved is related to:
ii  dovecot-core [dovecot-common]  1:2.3.19.1+dfsg1-2.1+deb12u2
pn  dovecot-dev                    <none>
pn  dovecot-gssapi                 <none>
ii  dovecot-imapd                  1:2.3.19.1+dfsg1-2.1+deb12u2
pn  dovecot-ldap                   <none>
ii  dovecot-lmtpd                  1:2.3.19.1+dfsg1-2.1+deb12u2
ii  dovecot-managesieved           1:2.3.19.1+dfsg1-2.1+deb12u2
pn  dovecot-mysql                  <none>
pn  dovecot-pgsql                  <none>
pn  dovecot-pop3d                  <none>
ii  dovecot-sieve                  1:2.3.19.1+dfsg1-2.1+deb12u2
pn  dovecot-sqlite                 <none>

-- no debconf information

Reply via email to