Warning: Global setting won't change the setting inside an earlier filter
Timo Sirainen
tss at iki.fi
Wed Apr 13 10:44:57 UTC 2016
On 13 Apr 2016, at 10:40, Oliver Riesen-Mallmann <oliver at riesen.org> wrote:
>
> Hi,
>
> I'm using the Dovecot Prebuilt Binary:
> deb http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.2 main
>
> I configured multiple SSL certificates with client TLS SNI (see
> http://wiki2.dovecot.org/SSL/DovecotConfiguration).
>
> Since my last update I get some warnings:
>
> doveconf: Warning: /etc/dovecot/conf.d/10-ssl.conf line 12: Global
> setting ssl_cert won't change the setting inside an earlier filter at
> /etc/dovecot/conf.d/10-ssl-langzeittest.de.conf line 4
> doveconf: Warning: /etc/dovecot/conf.d/10-ssl.conf line 13: Global
> setting ssl_key won't change the setting inside an earlier filter at
> /etc/dovecot/conf.d/10-ssl-langzeittest.de.conf line 5
> doveconf: Warning: /etc/dovecot/conf.d/10-ssl.conf line 12: Global
> setting ssl_cert won't change the setting inside an earlier filter at
> /etc/dovecot/conf.d/10-ssl-langzeittest.de.conf line 4
> doveconf: Warning: /etc/dovecot/conf.d/10-ssl.conf line 13: Global
> setting ssl_key won't change the setting inside an earlier filter at
> /etc/dovecot/conf.d/10-ssl-langzeittest.de.conf line 5
>
> The reason is this commit:
> doveconf: Log a warning if a global setting is updated after it was a…
> …lready set inside a filter
> https://github.com/dovecot/core/commit/87404eae4581d7ef834f490507503e59a500066e
>
> My configuration is (shorted):
>
> # dovecot -n
> # 2.2.devel (87404ea): /etc/dovecot/dovecot.conf
> # Pigeonhole version 0.4.devel (215349a)
> # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.10
> [...]
> ssl_cert = </etc/letsencrypt/live/v083.violet.fastwebserver.de/fullchain.pem
> [...]
> ssl_key = </etc/letsencrypt/live/v083.violet.fastwebserver.de/privkey.pem
> [...]
> local_name imap.langzeittest.de {
> ssl_cert =
> </etc/letsencrypt/live/fahrerlager.langzeittest.de/fullchain.pem
> ssl_key = </etc/letsencrypt/live/fahrerlager.langzeittest.de/privkey.pem
> }
> local_name mail.langzeittest.de {
> ssl_cert =
> </etc/letsencrypt/live/fahrerlager.langzeittest.de/fullchain.pem
> ssl_key = </etc/letsencrypt/live/fahrerlager.langzeittest.de/privkey.pem
> }
>
> I understand, that the warning is correct. I configured ssl_cert and
> ssl_key both, globally (like a default) and in some local_name filters.
You should be able to solve this by moving the ssl_cert & ssl_key before the local_name {}. Note that doveconf -n reorders the settings here. So right now doveconf reads:
local_name {
ssl_cert = ..
}
ssl_cert = .. # it gives a warning here
If it's instead:
ssl_cert = ..
local_name {
ssl_cert = ..
}
There is no warning.
More information about the dovecot
mailing list