<div dir="ltr"><div>Problem solved!</div><div><br></div><div>I installed 2.3.18 (9dd8408c18), and now everything is working.</div><div><br></div><div>I guess that there must be things in 2.2.36-4 which don't work properly under Debian-11.</div><div><br></div><div>Excelsior!</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br> <a href="mailto:hippoman@gmail.com" target="_blank">hippoman@gmail.com</a><br> Take a hippopotamus to lunch today.<br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 30, 2022 at 3:18 PM Hippo Man <<a href="mailto:hippoman@gmail.com">hippoman@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I've been running dovecot 2.2.36.4 (baf9232c1) on my Debian-8 host for a long time with no problems.</div><div>I
am trying to move my email server to a Debian-11 host, and I have
Dovecot configured exactly the same way that I have it configured under
Debian-8. However, when I try to connect to that server via imap, I
always get the following error:<br></div><div><br></div><div style="margin-left:40px">2022.05.30-18:17:21
imap-login: Info: Disconnected: Auth process broken (disconnected
before auth was ready, waited 0 secs): user=<>, rip=::1, lip=::1,
secured, session=<2+nKqj7g4t4AAAAAAAAAAAAAAAAAAAAB></div><div><div dir="ltr"><div dir="ltr"><div><br></div><div>The output of "dovecot -n" appears at the bottom of this message.</div><div><br></div><div>I'm
using mysql on the Debian-8 server for my authentication database, and
I'm using mariadb on the Debian-11 server. The contents of the database
on the new, Debian-11-based server are exactly the same as those on the
Debian-8 server.</div><div><br></div><div>These are the contents of /opt/local/etc/dovecot/dovecot-sql.ext
with the comments removed. I can manually run the following queries
against the database with a valid login ID, and these queries succeed
...<br><br><div style="margin-left:40px">driver = mysql<br><br>connect = host=127.0.0.1 user=postfix password=XXXXXXXX dbname=postfix<br><br>default_pass_scheme = CRYPT<br><br>password_query
= SELECT username AS user, domain, password FROM mailbox WHERE
(username = '%u' OR find_in_set('%u', loginid) > 0) AND active = 1<br>user_query
= SELECT concat('/var/vmail/', maildir) AS home, 1003 AS uid, 1003 AS
gid FROM mailbox WHERE (username = '%u' OR find_in_set('%u', loginid)
> 0) AND active = 1</div></div><div><br></div><div>Also ...<br><br></div><div><div style="margin-left:40px">% ls -Flas /var/run/dovecot/auth-userdb<br>0 srw-rw-rw- 1 dovecot root 0 May 30 18:30 /var/run/dovecot/auth-userdb=<br></div><div style="margin-left:40px">% ls -Flas /opt/local/etc/dovecot/dovecot-master-users-passwords</div><div style="margin-left:40px">4 -rw-rw-r-- 1 root dovecot 36 Dec 16 2018 /opt/local/etc/dovecot/dovecot-master-users-passwords<br></div><div style="margin-left:40px">% ls -Flas /opt/local/etc/dovecot/ad-hoc-userdb</div><div style="margin-left:40px">4 -rw-rw-r-- 1 root root 416 May 7 14:53 /opt/local/etc/dovecot/ad-hoc-userdb</div><div style="margin-left:40px">% ls -Flas /opt/local/etc/dovecot/dovecot-master-users-passwords</div><div style="margin-left:40px">4 -rw-rw-r-- 1 root dovecot 36 Dec 16 2018 /opt/local/etc/dovecot/dovecot-master-users-passwords</div><br></div><div>When I start up dovecot, the following line appears at the bottom of /var/log/mailclient.log ...<br><div style="margin-left:40px">2022.05.30-18:31:37
master: Info: Dovecot v2.2.36.4 (baf9232c1) starting up for imap, pop3,
lmtp, imap, pop3 (core dumps disabled)<br></div><br></div><div>However, if I then run "telnet localhost 143", the following lines appear at the end of /var/log/mailclient.log ...<br><div style="margin-left:40px">2022.05.30-18:32:44 master: Error: service(auth): command startup failed, throttling for 2 secs<br>2022.05.30-18:32:44 auth: Fatal: master: service(auth): child 235327 killed with signal 11 (core dumps disabled)<br>2022.05.30-18:32:44
imap-login: Info: Disconnected: Auth process broken (disconnected
before auth was ready, waited 0 secs): user=<>, rip=::1, lip=::1,
secured, session=<8ezN4T7gJOAAAAAAAAAAAAAAAAAAAAAB><br></div></div><div><br></div><div>The exact, same actions on my Debian-8 host do not fail.<br><br></div><div>And
here is the output from "dovecot -n". As you can see, all "verbose" and
debug-related options are set to "yes". Thank you for any suggestions
you might be able to offer:<br><br><div style="margin-left:40px"># 2.2.36.4 (baf9232c1): /opt/local/etc/dovecot/dovecot.conf<br># OS: Linux 5.10.0-14-amd64 x86_64 Debian 11.3 ext4<br># Hostname: <a href="http://my.hostname.com" target="_blank">my.hostname.com</a><br>auth_debug = yes<br>auth_debug_passwords = yes<br>auth_master_user_separator = :<br>auth_mechanisms = plain login<br>auth_socket_path = /var/run/dovecot/auth-userdb<br>auth_verbose = yes<br>auth_verbose_passwords = plain<br>base_dir = /var/run/dovecot/<br>disable_plaintext_auth = no<br>log_path = /var/log/mailclient.log<br>log_timestamp = "%Y.%m.%d-%H:%M:%S "<br>mail_debug = yes<br>mail_location = maildir:/var/vmail/%d/%n/<br>namespace inbox {<br> inbox = yes<br> list = yes<br> location = <br> mailbox Drafts {<br> special_use = \Drafts<br> }<br> mailbox Junk {<br> special_use = \Junk<br> }<br> mailbox Sent {<br> special_use = \Sent<br> }<br> mailbox "Sent Messages" {<br> special_use = \Sent<br> }<br> mailbox Trash {<br> special_use = \Trash<br> }<br> prefix = INBOX.<br> separator = .<br>}<br>passdb {<br> args = /opt/local/etc/dovecot/dovecot-master-users-passwords<br> driver = passwd-file<br> master = yes<br> pass = yes<br>}<br>passdb {<br> args = /opt/local/etc/dovecot/dovecot-sql.conf.ext<br> driver = sql<br>}<br>passdb {<br> args = scheme=plain username_format=%u /opt/local/etc/dovecot/ad-hoc-userdb<br> driver = passwd-file<br>}<br>plugin {<br> sieve = ~/.dovecot.sieve<br> sieve_dir = ~/sieve<br>}<br>postmaster_address = <a href="mailto:postmaster@my.hostname.com" target="_blank">postmaster@my.hostname.com</a><br>protocols = imap pop3 lmtp imap pop3<br>service imap-login {<br> inet_listener imap {<br> port = 143<br> }<br> inet_listener imaps {<br> port = 993<br> ssl = yes<br> }<br>}<br>service imap {<br> executable = imap postlogin<br>}<br>service pop3 {<br> executable = pop3 postlogin<br>}<br>service postlogin {<br> executable = script-login -d rawlog<br>}<br>ssl_cert = </etc/letsencrypt/live/<a href="http://my.hostname.com/fullchain.pem" target="_blank">my.hostname.com/fullchain.pem</a><br>ssl_cipher_list = HIGH:!SSLv2:!aNULL@STRENGTH<br>ssl_client_ca_dir = /etc/ssl/certs<br>ssl_client_ca_file = ca-certificates.crt<br>ssl_key = # hidden, use -P to show it<br>ssl_prefer_server_ciphers = yes<br>userdb {<br> args = /opt/local/etc/dovecot/dovecot-sql.conf.ext<br> driver = sql<br>}<br>userdb {<br> args = scheme=plain username_format=%u /opt/local/etc/dovecot/ad-hoc-userdb<br> driver = passwd-file<br>}<br>protocol imap {<br> mail_max_userip_connections = 128<br>}<font color="#888888"><br></font></div><font color="#888888"><br></font></div></div></div></div><div><div dir="ltr"><div dir="ltr"><div>-- <br> <a href="mailto:hippoman@gmail.com" target="_blank">hippoman@gmail.com</a><br> Take a hippopotamus to lunch today.<br></div></div></div></div></div>
</blockquote></div>