Network

The postfix command

Mail transfer agent (MTA). With check it validates the config and with status it tells if running.

Syntax

postfix [check | status | start]Try it in the terminal →

Copy-ready examples

$ sudo postfix checkValidate the config
$ postfix statusService status

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • The configuration lives in /etc/postfix/main.cf (myhostname, mydomain...).

Related commands

FAQ

What is the postfix command for?

It controls the Postfix mail server: start, stop or check its configuration.

How do I validate the configuration?

With postfix check.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course