[Dovecot] wrong config file?
The sample provided config file (the one I started with by editing it) included the following text:
# ------------------------------ WARNING -------------------------------
# If there's a file /etc/dovecot/dovecot-postfix.conf, which is part of # dovecot-postfix package, it will be used instead of dovecot.conf.
# Keep in mind that, if that file exist, none of the changes in # /etc/dovecot/dovecot.conf will have effect on dovecot's configuration. # In that case you should customize /etc/dovecot/dovecot-postfix.conf.
# ------------------------------ WARNING -------------------------------
So I expected it would use that by default. It seems to not be doing so. Does this mean I have to modify the startup scripts to add the -c option to force the use of this config file? Or should I just put all my configs in the default "/etc/dovecot/dovecot.conf" file?
When doing "dovecot -n" it became apparent that my configs were not being used. But "dovecot -c /etc/dovecot/dovecot-postfix.conf -n" was doing it. Any idea why it's not behaving as those comments described?
On Fri, May 07, 2010 at 10:59:45AM -0400, Phil Howard wrote:
The sample provided config file (the one I started with by editing it) included the following text:
# ------------------------------ WARNING -------------------------------
# If there's a file /etc/dovecot/dovecot-postfix.conf, which is part of # dovecot-postfix package, it will be used instead of dovecot.conf.
# Keep in mind that, if that file exist, none of the changes in # /etc/dovecot/dovecot.conf will have effect on dovecot's configuration. # In that case you should customize /etc/dovecot/dovecot-postfix.conf.
# ------------------------------ WARNING -------------------------------
So I expected it would use that by default. It seems to not be doing so. Does this mean I have to modify the startup scripts to add the -c option to force the use of this config file? Or should I just put all my configs in the default "/etc/dovecot/dovecot.conf" file?
When doing "dovecot -n" it became apparent that my configs were not being used. But "dovecot -c /etc/dovecot/dovecot-postfix.conf -n" was doing it. Any idea why it's not behaving as those comments described?
Ubuntu is using dovecot-postfix.conf as the working config file if you install the package 'dovecot-postfix' from the Ubuntu server team. But if you install the seperate packages 'dovecot-[common|imapd|pop3d]' dovecot.conf will be used.
And it might be, that your master.cf does not call dovecot deliver with '-c /etc/dovecot/dovecot-postfix.conf' as part of argv=.
Dennis
On Fri, May 7, 2010 at 11:43, Dennis Guhl dg@dguhl.org wrote:
Ubuntu is using dovecot-postfix.conf as the working config file if you install the package 'dovecot-postfix' from the Ubuntu server team. But if you install the seperate packages 'dovecot-[common|imapd|pop3d]' dovecot.conf will be used.
This is what I have installed:
marconi/root/x0 /root 96# dpkg -l | egrep 'dovecot|postfix' ii dovecot-antispam 1.1+20090218.git.g28075fa-2 a Dovecot plugin that helps train spam filte ii dovecot-common 1:1.1.11-0ubuntu11 secure mail server that supports mbox and ma ii dovecot-dev 1:1.1.11-0ubuntu11 header files for the dovecot mail server ii dovecot-imapd 1:1.1.11-0ubuntu11 secure IMAP server that supports mbox and ma ii dovecot-pop3d 1:1.1.11-0ubuntu11 secure POP3 server that supports mbox and ma ii dovecot-postfix 1:1.1.11-0ubuntu11 full mail server stack provided by Ubuntu se ii postfix 2.6.5-3 High-performance mail transport agent ii postfix-cdb 2.6.5-3 CDB map support for Postfix ii postfix-doc 2.6.5-3 Documentation for Postfix ii postfix-pcre 2.6.5-3 PCRE map support for Postfix ii postfix-pgsql 2.6.5-3 PostgreSQL map support for Postfix marconi/root/x0 /root 97#
So, dovecot-postfix is intended as an alternative for all the others?
And it might be, that your master.cf does not call dovecot deliver with '-c /etc/dovecot/dovecot-postfix.conf' as part of argv=.
Thanks, I'll have to check that, too. I did not know it also needed to be in master.cf. I have a reference in main.cf but it doesn't have args.
smtpd_sasl_type = dovecot smtpd_sasl_path = private/dovecot-auth mailbox_command = /usr/lib/dovecot/deliver
On Fri, May 07, 2010 at 12:34:11PM -0400, Phil Howard wrote:
On Fri, May 7, 2010 at 11:43, Dennis Guhl dg@dguhl.org wrote:
Ubuntu is using dovecot-postfix.conf as the working config file if you install the package 'dovecot-postfix' from the Ubuntu server team. But if you install the seperate packages 'dovecot-[common|imapd|pop3d]' dovecot.conf will be used.
This is what I have installed:
[..]
So, dovecot-postfix is intended as an alternative for all the others?
I don't use Ubuntu, but Debian. I think dovecot-postfix might be a pseudo-package to omit installing all single packages but one which 'contains' everything.
And it might be, that your master.cf does not call dovecot deliver with '-c /etc/dovecot/dovecot-postfix.conf' as part of argv=.
Thanks, I'll have to check that, too. I did not know it also needed to be in master.cf. I have a reference in main.cf but it doesn't have args.
smtpd_sasl_type = dovecot smtpd_sasl_path = private/dovecot-auth mailbox_command = /usr/lib/dovecot/deliver
You can also give the full command here instead a transport name defined in the master.cf. And you append all parameters directly behind the command.
Also have a look here: http://www.postfix.org/postconf.5.html#mailbox_command
Dennis
On Fri, May 7, 2010 at 17:45, Dennis Guhl dg@dguhl.org wrote:
You can also give the full command here instead a transport name defined in the master.cf. And you append all parameters directly behind the command.
So I can do it either way? I would prefer in main.cf if that is sufficient.
On Mon, May 10, 2010 at 08:46:27AM -0400, Phil Howard wrote:
On Fri, May 7, 2010 at 17:45, Dennis Guhl dg@dguhl.org wrote:
You can also give the full command here instead a transport name defined in the master.cf. And you append all parameters directly behind the command.
So I can do it either way? I would prefer in main.cf if that is sufficient.
Yep, have a look at the provided link for further reference.
Dennis
On Fri, May 7, 2010 at 11:43, Dennis Guhl dg@dguhl.org wrote:
Ubuntu is using dovecot-postfix.conf as the working config file if you install the package 'dovecot-postfix' from the Ubuntu server team. But if you install the seperate packages 'dovecot-[common|imapd|pop3d]' dovecot.conf will be used.
And it might be, that your master.cf does not call dovecot deliver with '-c /etc/dovecot/dovecot-postfix.conf' as part of argv=.
Apparently the config file selection is being done in /etc/init.d/dovecot so it applies to the daemon and probably anything started from it, but not to programs started elsewhere. I'm guessing this special handling of Postfix is distro specific, and not part of the basic Dovecot package. But if they are going to make such a change, they really should have made it fully consistent and universal by changing the default file name string (and maybe the logic to test between 2 different names) within the Dovecot programs.
That init file is testing if dovecot-postfix.conf exists, and falling back to the default if not.
If that observation is correct, then I can simply be sure of which config file I'm using by removing dovecot-postfix.conf and just using dovecot.conf only.
On Mon, May 10, 2010 at 09:06:05AM -0400, Phil Howard wrote:
On Fri, May 7, 2010 at 11:43, Dennis Guhl dg@dguhl.org wrote:
Ubuntu is using dovecot-postfix.conf as the working config file if you install the package 'dovecot-postfix' from the Ubuntu server team. But if you install the seperate packages 'dovecot-[common|imapd|pop3d]' dovecot.conf will be used.
And it might be, that your master.cf does not call dovecot deliver with '-c /etc/dovecot/dovecot-postfix.conf' as part of argv=.
Apparently the config file selection is being done in /etc/init.d/dovecot so it applies to the daemon and probably anything started from it, but not to programs started elsewhere. I'm guessing this special handling of Postfix is distro specific, and not part of the basic Dovecot package. But if they are going to make such a change, they really should have made it fully consistent and universal by changing the default file name string (and maybe the logic to test between 2 different names) within the Dovecot programs.
That init file is testing if dovecot-postfix.conf exists, and falling back to the default if not.
If that observation is correct, then I can simply be sure of which config file I'm using by removing dovecot-postfix.conf and just using dovecot.conf only.
While not using Ubuntu I don't know if this is correct, but I agree that they should have made the changes more consistent if they think they are necessary at all.
Dennis
participants (2)
-
Dennis Guhl
-
Phil Howard