[Dovecot] Doveadm with a 2nd Instance
Hi Guys, I am trying to use 2 instances of Dovecot on the same server so I can have a Director managing my connections, everything appears to be working, but I can not use doveadm to control my 2nd instance, but doveconf seems to work fine.
[user@server logs]$ doveconf -i Director | grep logs debug_log_path = /home/user/apps/logs/director/director_debug.log info_log_path = /home/user/apps/logs/director/director_info.log log_path = /home/user/apps/logs/director/director.log info_log_path = /home/user/apps/logs/director/director_lmtp.log
[user@server logs]$ doveadm -i Director log find Debug: /home/user/apps/logs/dovecot_debug.log Info: /home/user/apps/logs/dovecot_info.log Warning: /home/user/apps/logs/dovecot.log Error: /home/user/apps/logs/dovecot.log Fatal: /home/user/apps/logs/dovecot.log
I have stopped and started both my instances so the config running is what is in the config file, but when I use -i Director with doveadm it uses the other instances config.
[user@server logs]$ doveadm instance list path name last used running /home/user/apps/dovecot/var/run/dovecot Dovecot 2013-09-26 00:39:14 yes /home/user/apps/dovecot/var/run/director Director 2013-09-26 00:32:31 yes
Any ideas, or does anyone have any experience with the Dovecot instance feature? Chris
On Thu, Sep 26, 2013 at 12:45:01AM -0400, Chris Lasater wrote:
I am trying to use 2 instances of Dovecot on the same server so I can have a Director managing my connections, everything appears to be working, but I can not use doveadm to control my 2nd instance, but doveconf seems to work fine.
I have noticed the same thing. It seems that doveadm ignores -i. "dovecot" works with -c /path/to/other/dovecot.conf, but it too ignores -i.
We got the idea to try -i
I have stopped and started both my instances so the config running is what is in the config file, but when I use -i Director with doveadm it uses the other instances config.
And this is a big problem for trying to use "doveadm director" commands when the director instance uses the nonstandard paths. I haven't found a way to do that yet! "-c /path/to/other/dovecot.conf" didn't work.
http://wiki2.dovecot.org/Tools/Doveadm/Director
Currently on 2.2.5, about to switch to 2.2.6 EE. It seemed like it worked back in 2.0.9 before upgrading.
http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
Hey Rob, I figured this one out. The bug is associated with the default run/dovecot base_dir. If you move both instances to a different location then (or at least the one named dovecot) it works fine and I can control both instances properly. Chris
On 09/26/2013 09:02 AM, /dev/rob0 wrote:
On Thu, Sep 26, 2013 at 12:45:01AM -0400, Chris Lasater wrote:
I am trying to use 2 instances of Dovecot on the same server so I can have a Director managing my connections, everything appears to be working, but I can not use doveadm to control my 2nd instance, but doveconf seems to work fine. I have noticed the same thing. It seems that doveadm ignores -i. "dovecot" works with -c /path/to/other/dovecot.conf, but it too ignores -i.
We got the idea to try -i
from http://wiki2.dovecot.org/Tools/Doveadm/Instance , but "doveadm help" itself does not show a -i. I have stopped and started both my instances so the config running is what is in the config file, but when I use -i Director with doveadm it uses the other instances config. And this is a big problem for trying to use "doveadm director" commands when the director instance uses the nonstandard paths. I haven't found a way to do that yet! "-c /path/to/other/dovecot.conf" didn't work.
http://wiki2.dovecot.org/Tools/Doveadm/Director
Currently on 2.2.5, about to switch to 2.2.6 EE. It seemed like it worked back in 2.0.9 before upgrading.
On Wed, Oct 09, 2013 at 02:24:04PM -0400, Chris Lasater wrote:
I figured this one out. The bug is associated with the default run/dovecot base_dir. If you move both instances to a different location then (or at least the one named dovecot) it works fine and I can control both instances properly.
Thank you for following up. I haven't had the chance to get back to this yet, but if the list doesn't hear back from me, assume it worked. :)
On 09/26/2013 09:02 AM, /dev/rob0 wrote:
On Thu, Sep 26, 2013 at 12:45:01AM -0400, Chris Lasater wrote:
I am trying to use 2 instances of Dovecot on the same server so I can have a Director managing my connections, everything appears to be working, but I can not use doveadm to control my 2nd instance, but doveconf seems to work fine. I have noticed the same thing. It seems that doveadm ignores -i. "dovecot" works with -c /path/to/other/dovecot.conf, but it too ignores -i.
We got the idea to try -i
from http://wiki2.dovecot.org/Tools/Doveadm/Instance , but "doveadm help" itself does not show a -i. I have stopped and started both my instances so the config running is what is in the config file, but when I use -i Director with doveadm it uses the other instances config. And this is a big problem for trying to use "doveadm director" commands when the director instance uses the nonstandard paths. I haven't found a way to do that yet! "-c /path/to/other/dovecot.conf" didn't work.
http://wiki2.dovecot.org/Tools/Doveadm/Director
Currently on 2.2.5, about to switch to 2.2.6 EE. It seemed like it worked back in 2.0.9 before upgrading.
-- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
Hi,
this bug should have been fixed by Timo in some 2.1.x release. The issue should be in the list archives too. Which version are you using?
BTW: I'm still using doveadm -c /etc/dovecot-director/dovecot- director.conf director status to address the director instance.
Regards Daniel
I upgraded to 2.2.6 yesterday and was one 2.2.5 before.
On 09/26/2013 07:06 PM, Daniel Parthey wrote:
Hi,
this bug should have been fixed by Timo in some 2.1.x release. The issue should be in the list archives too. Which version are you using?
BTW: I'm still using doveadm -c /etc/dovecot-director/dovecot- director.conf director status to address the director instance.
Regards Daniel
Could this bug have reappeared or not been passed to the 2.2.x release?
On 09/26/2013 07:06 PM, Daniel Parthey wrote:
Hi,
this bug should have been fixed by Timo in some 2.1.x release. The issue should be in the list archives too. Which version are you using?
BTW: I'm still using doveadm -c /etc/dovecot-director/dovecot- director.conf director status to address the director instance.
Regards Daniel
participants (4)
-
/dev/rob0
-
Chris
-
Chris Lasater
-
Daniel Parthey