Re: Testing validity of Dovecot config in a script

2018-11-24 Thread Ralph Seichter
* Aki Tuomi: > doveconf will reliably fail if config file cannot be parsed. Thanks, that's what I was hoping for. -Ralph

Re: Testing validity of Dovecot config in a script

2018-11-24 Thread Aki Tuomi
> On 24 November 2018 at 16:45 Ralph Seichter > wrote: > > > While trying to determine a given configuration is valid from within a > script, I found that the following works with Dovecot version 2.3.2.1: > > #!/usr/bin/env bash > doveconf -n >/dev/null || echo "Config is invalid" > >

Testing validity of Dovecot config in a script

2018-11-24 Thread Ralph Seichter
While trying to determine a given configuration is valid from within a script, I found that the following works with Dovecot version 2.3.2.1: #!/usr/bin/env bash doveconf -n >/dev/null || echo "Config is invalid" However, the return code is not documented in the doveconf manual page, and I