dhotson / prosody-modules

Automatically exported from code.google.com/p/prosody-modules
MIT License
5 stars 3 forks source link

Dovecot auth works, but spams logs #80

Open HanakoSeishin opened 7 years ago

HanakoSeishin commented 7 years ago

Using dovecot auth module, everything works fine, but the dovecot logs get spammed with tons of: auth: Error: plain(name@domain.tld): Request 60951.1323 timed out after 150 secs, state=3

related configuration:

authentication = "dovecot"
auth_append_host = true

related dovecot configuration:

service auth {
 unix_listener auth-login {
  mode = 0660
  user = prosody
  group = prosody
 }
}
disable_plaintext_auth = yes
aith_mechanisms = plain login cram-md5

Am I doing something wrong or is it working as designed? Everything seems to work fine, but it's annoying to get logs spammed like that, it even writes it in the error log and not debug log, so at least dovecot considers it to be actially serious. Looking into the mod_auth_dovecot code I couldn't quite understand it, but there was a suspicious plain_test function which sounds like it tests if the dovecot would accept plain auth but then doesn't actually proceed with plain authorization, which dovecot expects to continue, and uses another mechanism instead, so dovecot ends up saying the plain auth timed out. Is it indeed what it is doing? Why would it do that? And what would happen if I remove plain auth from dovecot configuration?