Postfix - Configuration (File, List and Default values)

About

This article:

You should have at minimal a little bit of knowledge about the postfix architecture.

File

  • /etc/postfix/main.cf where you define globally (the default configuration for all process)
  • /etc/postfix/master.cf where every single running process is defined where you can overwrite the default option of main.cf

master.cf

The master.cf configuration file defines:

  • how a client program connects to a service,
  • what daemon program runs when a service is requested.

The general format of the master.cf file is as follows:

  • Empty lines and whitespace-only lines are ignored, as are lines whose first non-whitespace character is a #.
  • A logical line starts with non-whitespace text. A line that starts with whitespace continues a logical line.
  • Each logical line defines a single Postfix service. Each service is identified by its name and type as described below.

When multiple lines specify the same service name and type, only the last one is remembered. Otherwise, the order of master.cf service definitions does not matter.

List

Output of the below command that gives all default postfix default configuration value

postconf -d 





Discover More
How to avoid SPAM with Postfix

An article on how to configure Postfix to avoid SPAM
Postfix - Architecture (Processes)

postfix may starts several process, generally: one to receive and relay mail (port 25) one to submit mail (port 587) Postfix services are implemented by daemon processes. These run in the background,...



Share this page:
Follow us:
Task Runner