LinuxCommandLibrary

postconf

Display and modify Postfix configuration

TLDR

Use alternate config directory

$ postconf -c [path/to/config_dir]
copy
Edit configuration parameters
$ postconf -e
copy
Show default settings
$ postconf -d
copy
Show parameters from specific class
$ postconf -C [builtin|service|user|all]
copy
List SASL plugin types
$ postconf -a
copy
List lookup table types
$ postconf -m
copy

SYNOPSIS

postconf [-c dir] [-d] [-e] [-C class] [parameters...]

DESCRIPTION

postconf displays and modifies Postfix mail server configuration. It reads and writes main.cf parameters, shows default values, and reports configuration warnings.
The tool validates parameter names and warns about typos. It's essential for administering Postfix without manually editing configuration files.

PARAMETERS

-c _directory_

Alternate configuration directory
-d
Show default parameter values
-e
Edit main.cf with name=value pairs
-C _class_
Filter by parameter class
-a
List available SASL plugin types
-m
List available lookup table types
-n
Show only parameters with non-default values

CAVEATS

Changes via -e require postfix reload to take effect. Some parameters require restart. Modifying running server config requires care. Backup configuration before major changes.

HISTORY

postconf is part of Postfix, the mail transfer agent created by Wietse Venema as a secure alternative to Sendmail. It provides safe configuration management for the complex mail system.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community