postfix
Control the Postfix mail system
TLDR
Check configuration
SYNOPSIS
postfix [-c configdir] [**-D**] command_
DESCRIPTION
postfix is the control program for the Postfix mail transfer agent. It manages starting, stopping, and reconfiguring the mail system components.
Postfix is designed for security and performance, running multiple separate processes with minimal privileges. The control program coordinates these processes.
PARAMETERS
-c _config_dir_
Alternate configuration directory-D
Debug mode
CONFIGURATION
/etc/postfix/main.cf
Primary configuration file defining hostname, domain, relay settings, network restrictions, TLS, and all major Postfix parameters./etc/postfix/master.cf
Defines Postfix service components (smtpd, cleanup, local, etc.) and their process limits, chroot settings, and command-line options./etc/postfix/virtual
Virtual alias mapping for email address rewriting. Requires postmap to rebuild the database after changes./etc/postfix/transport
Controls mail routing by destination domain. Requires postmap after editing.
COMMANDS
check
Verify configuration for errorsstart
Start the Postfix mail systemstop
Stop the Postfix mail systemabort
Stop immediately without finishing deliveriesflush
Force delivery of queued mailreload
Reload configuration without restartstatus
Check if Postfix is running
CAVEATS
Requires root privileges for most commands. Mail queue persists across restarts. Check configuration before reload. Abort may lose mail in transit.
HISTORY
Postfix was written by Wietse Venema at IBM Research as a secure, fast replacement for Sendmail. Released in 1998, it became one of the most popular MTAs due to its security design and ease of configuration.
