Intermediate Package: postfix

postconf

Read or set Postfix main.cf configuration parameters.

Syntax

postconf [-e] [parameter[=value]]

Description

postconf is the safe way to inspect or edit Postfix configuration: it validates parameter names and, with -e, writes changes back to main.cf, avoiding typos that would otherwise stop the mail service starting.

Examples

postconf mydomain
Show the current value of a single parameter
postconf -n
List only parameters changed from their default
postconf -e "inet_interfaces=all"
Set a parameter and write it to main.cf

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE Alpine Linux

Put it into practice

Learn this in context