dovecot bug since 3.96

Hi, I tested and waited for a few updates. But now I am sure. There seems to be a bug somewhere.

After (every) update imap stops immediately. See error messages below (after updating to 3.97-2 gpl).

I spent hours to troubleshoot but couldn't find any problem in the configuration, but then I noticed that everything worked just fine, when I clicked the "apply configuration" button in webmin's dovecot section.

I have to do this after every VM update (since 3.96). any ideas why?

Dec 17 14:23:48 mail dovecot: imap: Error: Authentication server didn't send valid SPID as expected: MECH#011PLAIN#011plaintext Dec 17 14:23:48 mail dovecot: imap: Error: Disconnected from auth server, aborting (client-pid=1838 client-id=1) Dec 17 14:23:48 mail dovecot: imap-login: Internal login failure (pid=1838 id=1) (auth failed, 1 attempts): user=, method=PLAIN, , mpid=1839, TLS Dec 17 14:23:49 mail dovecot: auth: Error: BUG: Authentication client sent unknown handshake command: REQUEST?408420218391?1?c74fc...

Status: 
Closed (fixed)

Comments

That is very odd, as a Virtualmin update doesn't touch the Dovecot configuration at all.

Was something else perhaps updated at the same time?

Yes, I agree, very odd. I will wait for 3.98 and test the update again. but so far after every Virtualmin update (since 3.95 or 3.96) I had to press that button.

I finally figured out the problem

in 10-auth.conf I had the following entry:

auth_mechanisms = plain

but it should have been

auth_mechanisms = plain login

I am pretty sure that I have never changed that file. Maybe a virtualmin update or a "yum update" was buggy?

Virtualmin will never remove login from the auth_mechanisms line .. it only adds it as part of the install process.