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 .."