$linuxjunkies
>

postfix(1)

Postfix mail server control and management command for starting, stopping, and monitoring the mail system.

UbuntuDebianFedoraArch

Synopsis

postfix [-c config_dir] [-D] [-v] {start|stop|reload|flush|check|status|set-permissions|upgrade-configuration}

Description

The postfix command controls the Postfix mail server, a modular mail transfer agent (MTA) that routes and delivers email. It manages the lifecycle of Postfix processes and performs system configuration tasks.

Most commands require root or equivalent privileges. The command reads configuration from the main.cf file in the Postfix configuration directory (default /etc/postfix).

Common operations include starting the background daemon, reloading configuration, flushing queued mail, and verifying system setup. Use postfix check before starting to catch configuration errors early.

Common options

FlagWhat it does
-c config_dirSpecify alternate configuration directory (default: /etc/postfix)
-DEnable verbose logging and don't detach from controlling terminal
-vEnable verbose output for diagnostic information

Examples

Start the Postfix mail server daemon in the background

sudo postfix start

Stop the Postfix mail server gracefully

sudo postfix stop

Reload configuration without stopping active connections

sudo postfix reload

Verify basic Postfix configuration and directory permissions

postfix check

Show whether Postfix is running and the status of mail queues

postfix status

Force delivery attempt of all queued messages immediately

sudo postfix flush

Start Postfix using alternate configuration directory

sudo postfix -c /etc/postfix.backup start

Upgrade configuration files for the current Postfix version

sudo postfix upgrade-configuration

Related commands