doveadm-server protocol change?
Heiko Schlittermann
hs at schlittermann.de
Mon May 30 15:17:05 UTC 2016
Hi,
I'm doing quota checks from a remote machine (the real setup is a bit
more complex, if necessary I can explain it in more detail, but I just
extracted the bits that are easily reproduceable)
# nc backend1 24245
VERSION doveadm-server 1 0
PLAIN agrVMDvHgz0ya2HHzax5svwB2ZHS¹
+
heiko quota get
But since the backend is upgraded to 2.2.22 it's not possible anymore.
The exuse in the log of the backend is:
dovecot: doveadm(149.1.1.1¹): Fatal: USER environment is missing and -u option not used
Running the `doveadm quota get -u heiko` locally on the backend works as
expected. But using the the doveadm-server it doesn't.
# 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.13 (7b14904)
# OS: Linux 4.4.0-22-generic x86_64 Ubuntu 16.04 LTS
…
auth_cache_negative_ttl = 0
auth_cache_ttl = 0
auth_master_user_separator = *
base_dir = /run/dovecot/
imap_metadata = yes
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k
mail_attribute_dict = file:%h/dovecot-attributes
mail_location = maildir:~:INBOX=/volumes/dovecot/inbox/%2.256Nn/%n:INDEX=/volumes/dovecot/cache/%2.256Nn/%n
mail_plugins = quota
mbox_md5 = all
mmap_disable = yes
namespace inbox {
…
passdb {
args = /etc/dovecot/master-users
driver = passwd-file
master = yes
}
passdb {
args = /etc/dovecot/dovecot-ldap.passdb.conf.ext
driver = ldap
}
plugin {
quota = maildir:User quota
quota_grace = 10%%
sieve = /volumes/dovecot/sieve/%2.256Nn/%n/.dovecot.sieve
sieve_dir = /volumes/dovecot/sieve/%2.256Nn/%n
}
pop3_uidl_format = %v.%u
protocols = " imap lmtp pop3"
service auth {
extra_groups = ssl-cert
}
service doveadm {
inet_listener {
port = 24245
}
}
service lmtp {
inet_listener lmtp {
port = 2525
}
}
ssl = required
ssl_cert = </etc/ssl/certs/snakeoil-crt.pem
ssl_key = </etc/ssl/private/snakeoil-key.pem
userdb {
driver = prefetch
override_fields = home=/volumes/dovecot/home/%2.256Nn/%n uid=vmail gid=vmail
}
userdb {
args = /etc/dovecot/dovecot-ldap.userdb.conf.ext
driver = ldap
override_fields = home=/volumes/dovecot/home/%2.256Nn/%n uid=vmail gid=vmail
}
verbose_proctitle = yes
protocol lmtp {
mail_plugins = quota sieve quota
}
protocol lda {
mail_plugins = quota sieve
}
protocol imap {
mail_plugins = quota imap_quota
}
local 149.1.1.0/24¹ {
doveadm_password = # hidden, use -P to show it
}
¹) It's changed :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20160530/28425144/attachment.sig>
More information about the dovecot
mailing list