[Dovecot] doveadm "-S <socket_path>" option enabled in 2.0.8?
I apologize if this is a stupid question but I just compiled 2.0.8 and am trying to use doveadm to get the quota for a user using the -S
For example, my default quota is filesystem (NFS rquota) and I can get that by doing:
doveadm quota get -u warden
which tells me:
Quota name Type Value Limit % User quota STORAGE 1313476 1766400 74
But when I try to get my quota on a different local IP using the -S flag to doveadm:
doveadm quota get -u warden -S 137.238.2.244:143
I am told:
get: invalid option -- S
The strange thing is doveadm's usage says that the -S option is valid for quite a few commands and in the man pages for those commands it looks like they should work for the way I'm calling doveadm. In the 2.0.8 source I also see code that looks like it should be parsing the -S flag.
I can telnet to 127.0.0.1:143 and do ". getquotaroot inbox" which gives me the same information as "doveadm quota get -u warden" and I can telnet to 137.238.2.244:143 and ". getquotaroot inbox" also tells me my quota, but I'm hoping to use doveadm to periodically recalc my Maildir++ quota and update the squat FTS indexes and for that to happen doveadm needs to be able to be told what local IP address/port to connect to (I think).
Here's my doveconf -n:
# 2.0.8: /etc/dovecot/dovecot.conf # OS: Linux 2.6.18-194.26.1.0.1.el5 x86_64 Red Hat Enterprise Linux Server release 5.5 (Tikanga) nfs auth_cache_size = 10 M auth_master_user_separator = * auth_mechanisms = plain login auth_username_format = %Ln deliver_log_format = msgid="%m" subject="%s" from="%f" size=%p result="%$" first_valid_uid = 0 lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes login_log_format_elements = user=%u method=%m rip=%r lip=%l lport=%a mpid=%e encryption=%c mail_location = maildir:/home/%Lu/Maildir:CONTROL=/Mail/mailhome/%Lu/.dovecot:INDEX=/Mail/mailhome/%Lu/.dovecot mail_log_prefix = "service=%s user=%u rip=%r lip=%l " mail_nfs_storage = yes mail_plugins = zlib quota mail_log notify fts fts_squat 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 mbox_write_locks = fcntl namespace { inbox = yes location = prefix = INBOX. separator = . type = private } passdb { args = /etc/dovecot/passwd.masterusers driver = passwd-file master = yes } passdb { args = cache_key=%u dovecot driver = pam } plugin { autocreate = Trash autocreate2 = Drafts autocreate3 = Sent autosubscribe = Trash autosubscribe2 = Drafts autosubscribe3 = Sent fts = squat mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename flag_change append mail_log_fields = uid box msgid size from subject flags mail_log_group_events = yes quota = fs:User quota quota_exceeded_message = Quota exceeded (mailbox for user is full). Please see http://go.geneseo.edu/emailoverquota for help deleting messages while over quota. sieve = /Mail/mailhome/%Lu/.filter.sieve sieve_dir = /Mail/mailhome/%Lu/.sievedir } postmaster_address = postmaster@geneseo.edu protocols = imap pop3 sieve quota_full_tempfail = yes service managesieve-login { inet_listener sieve { port = 4190 } } ssl_cert =
On Tue, 2010-12-21 at 14:55 -0500, David Warden wrote:
But when I try to get my quota on a different local IP using the -S flag to doveadm:
doveadm quota get -u warden -S 137.238.2.244:143
The purpose of -S is completely different. It's about connecting to another doveadm instance. There's currently no way to set IP for doveadm queries.
On Thu, Dec 30, 2010 at 01:52:53PM +0200, Timo Sirainen wrote:
On Tue, 2010-12-21 at 14:55 -0500, David Warden wrote:
But when I try to get my quota on a different local IP using the -S flag to doveadm:
doveadm quota get -u warden -S 137.238.2.244:143
The purpose of -S is completely different. It's about connecting to another doveadm instance. There's currently no way to set IP for doveadm queries.
Just to bump an old thread. Timo, I think this would be a great feature to add. It would allow people to pull stats (and system health) directly out of dovecot rather than having to run agents on the dovecot servers to get the info into some other transport like SNMP.
-- Kelsey Cummings - kgc@corp.sonic.net sonic.net, inc. System Architect 2260 Apollo Way 707.522.1000 Santa Rosa, CA 95407
On Wed, 2011-06-01 at 16:59 -0700, Kelsey Cummings wrote:
On Thu, Dec 30, 2010 at 01:52:53PM +0200, Timo Sirainen wrote:
On Tue, 2010-12-21 at 14:55 -0500, David Warden wrote:
But when I try to get my quota on a different local IP using the -S flag to doveadm:
doveadm quota get -u warden -S 137.238.2.244:143
The purpose of -S is completely different. It's about connecting to another doveadm instance. There's currently no way to set IP for doveadm queries.
Just to bump an old thread. Timo, I think this would be a great feature to add. It would allow people to pull stats (and system health) directly out of dovecot rather than having to run agents on the dovecot servers to get the info into some other transport like SNMP.
That feature is already there!
service doveadm { inet_listener { port = 12345 } } doveadm_password = foobar
Now you can use e.g.:
doveadm -S 4.3.2.1:12345 quota get -u foobar
There's no security in there though, the password is sent in plain text. For more security you could also just use "ssh 4.3.2.1 doveadm .."
participants (3)
-
David Warden
-
Kelsey Cummings
-
Timo Sirainen