11.7 Configuring Postfix
The main configuration settings for Postfix are
the /etc/postfix/main.cf. This file contains many configuration options
which are beyond the scope of the introductory book. There are many
on the internet that provide detailed information on Postfix so this
focus on the basic options required to get email up and running.
The key options in the main.cf file are:
myhostname = mta1.domain.com
Other settings will have either been
set up for you by the
installation process or are not needed unless you are feeling
want to configure a more sophisticated email system.
mydomain = domain.com
myorigin = $myhostname
inet_interfaces = $myhostname
The format of myhostname is host.domain.extension.
example if your Linux system is called MyLinuxHost and you internet
MyDomain.com you would set the myhostname option as:
myhostname = mylinuxhost.mydomain.com
The mydomain setting is just the domain part of
setting. For example:
mydomain = mydomain.com
The myorigin and inet_interfaces options use the
have just created so do not need to be changed (although the
may be commented out by default so you should remove the “#” at the
of this particular line in the main.cf file).