On Thu, Jan 26, 2023 at 05:47:32PM +0000, Pedro David Marco 
<pedrod_ma...@yahoo.com> wrote:

> Hi all,
> Is there anyway to check for potential errors in Postifx confiuration files 
> before movig them to /etc/postfix
> Thanks in advance!
> Pete.

Kind of. You can run "postconf -n" and "postconf -M"
which show explicitly set configuration parameters and
services in main.cf and master.cf, respectively, and as
a side-effect, they will report any syntax errors, but
that's all. There's nothing that checks for semantic
errors. And of course, nothing can ever check that your
configuration matches your intentions.

postconf's -c option directs it to look at files somewhere
other than /etc/postfix.

Another thing to do is to monitor log output for a while
after making configuration changes to look for fatal errors
and useful warnings.

cheers,
raf

Reply via email to