HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

postconf — Postfix configuration utility. This command displays the values of the `main.cf` configuration param

Submitted by: @import:tldr-pages··
0
Viewed 0 times
postfixconfigurationcommandthisclipostconfutility
linux

Problem

How to use the postconf command: Postfix configuration utility. This command displays the values of the main.cf configuration parameters by default and warns about possible mistyped parameter names. It can also change the main.cf configuration parameter values. More information: <https://manned.org/postconf>.

Solution

postconf — Postfix configuration utility. This command displays the values of the main.cf configuration parameters by default and warns about possible mistyped parameter names. It can also change the main.cf configuration parameter values. More information: <https://manned.org/postconf>.

Specify the directory of the main.cf configuration file instead of the default configuration directory:
postconf -c {{path/to/configuration_directory}}


Edit the main.cf configuration file and update parameter settings with the "name=value" pairs:
postconf -e


Print the default parameter settings of the main.cf instead of the actual settings:
postconf -d


Display parameters only from the specified class:
postconf -C {{builtin|service|user|all}}


List available SASL plug-in types for the Postfix SMTP server. The plug-in type is selected with the smtpd_sasl_type configuration parameter by specifying cyrus or dovecot as the name:
postconf -a


List the names of all supported lookup table types. Lookup tables are specified as type:name in configuration files where the type can be btree, cdb, hash, mysql, etc:
postconf -m

Code Snippets

Specify the directory of the `main.cf` configuration file instead of the default configuration directory

postconf -c {{path/to/configuration_directory}}

Edit the `main.cf` configuration file and update parameter settings with the "name=value" pairs

postconf -e

Print the default parameter settings of the `main.cf` instead of the actual settings

postconf -d

Display parameters only from the specified class

postconf -C {{builtin|service|user|all}}

List available SASL plug-in types for the Postfix SMTP server. The plug-in type is selected with the `smtpd_sasl_type` configuration parameter by specifying `cyrus` or `dovecot` as the name

postconf -a

Context

tldr-pages: linux/postconf

Revisions (0)

No revisions yet.