doveconf non-syntax check
I use doveconf to check if my config is valid:
root@unix:/etc/dovecot# doveconf
doveconf doesn't report any errors, as my config is syntactically valid.
However, due to a non-syntax error, Dovecot doesn't start:
root@unix:/etc/dovecot# ls /usr/local/snicerts/thisdoesntexist.key ls: cannot access '/usr/local/snicerts/thisdoesntexist.key': No such file or directory root@unix:/etc/dovecot# dovecot -F doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 4: ssl_key: Can't open file /usr/local/snicerts/thisdoesntexist.key: No such file or directory root@unix:/etc/dovecot# echo $? 89
Does Dovecot provide a config checker that checks more than just the syntax, but also issues like the one above? If not, maybe it's useful to add a 'quiet' option (i.e. no stdout) to doveconf.
-- With kind regards,
William Edwards
Op 23 okt. 2021 om 16:01 heeft dovecot@ptld.com het volgende geschreven:
root@unix:/etc/dovecot# dovecot -F doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf ...maybe it's useful to add a 'quiet' option (i.e. no stdout) to doveconf.
dovecot -F > /dev/null 2>&1
:)
Not a fan of spawning processes outside of the service manager..
participants (2)
-
dovecot@ptld.com
-
William Edwards