The Postfix Guide

General Configuration and Administration

Postfix default directories:

/etc/postfix                    [Configuration files and lookup tables]
/usr/libexec/postfix      [Postfix daemons]
/var/spool/postfix        [Queue files]
/usr/sbin                        [Postfix commands]


Starting Postfix the First Time

1. Set hostname properly

Postfix uses a configuration parameter called myhostname, which must be set to the fully qualified hostname of the system Postfix is running on. Once Postfix knows the fully qualified hostname, it can use that hostname to set default values for other important parameters, such as mydomain. If the parameter myhostname is not set, Postfix defaults to the hostname reported by the system itself.

$hostname

#postconf -e myhostname=mail.drbdtest.com


2. Check system aliases database

Make sure that your system’s aliases database is in the correct format.

#newaliases


3. Start the postfix

#postfix start

If Postfix encounters any problems at start up, it reports them to your terminal. After some initial setup, Postfix detaches from the terminal and can no longer report problems to the screen. It will, however, continue to send a lot of information to your system log.


Configuration Files

The directory /etc/postfix contains Postfix configuration files. The two most important files used in the configuration of Postfix are master.cf and main.cf. These files should be owned by, and only writable by, the root user. They should be readable by everyone. Whenever you make changes to these files, you have to reload Postfix for your changes to go into effect:*

# postfix reload

The master daemon is the overall process that controls other Postfix daemons for mail handling. The master.cf file contains a line for each Postfix service or transport.





Comments

Popular posts from this blog

Cambium cnPilot E400/E410/E500 Configuration Tutorial

Disabling Zimbra's AntiSpam, Amavis and AntiVirus filtering

Error "Unable to retrive Zimbra GPG key for package validation"