Postfix

This article contains information on setting up and configuring the Postfix MTA.

Configuring Postfix
Postfix configuration is mostly performed using 2 files, both usually stored in :
 * specifies the daemons that are started by Postfix and the options they are started with.
 * stores the configuration options.

With regards to, there are two methods you can use to configure Postfix.
 * 1) You can edit the file directly with your favoured text editor &mdash; since Postfix only uses the last value specified, one tactic people use is to simply append values to the end.
 * 2) Alternatively you can use the postconf command. Postconf is very easy to use and allows you to configure Postfix with some checking on the values you're entering.

You can find a list of Postfix configuration options in the section 5 postconf man page:

Postconf Command Summary
The -d option allows you to check the default values for a given key. Even if you don't use postconf's other features, this can still be very useful for checking whether values have been changed from the default.

You can check the current value of any option by simply giving postconf the key.

This command allows you to set values. Simply pass the key you want to set and the value you want to set it to. If you specify a key which does not exist, you'll be given an error message.

Postconf does offer more options, such as the ability to use configuration files other than the default or list features (such as available SASL plugins) of your installation. For further information, see the postconf man page with:

Once Postfix is installed you'll need to add local aliases and run so Postfix will start and be happy. Postfix does not deliver mail to root so you'll want to point the mail for root to some other user or mail account. Edit the file, where you uncomment and fill out the root and operator lines with your own login name:

Now run the newaliases utility, to regenerate the aliases database file

Now add postfix to the default runlevel

And start it

IPv6-enabling Postfix
It is easy to enable IPv6 support on your Postfix server. You must emerge mail-mta/postfix with the USE flag, and type the following to tell Postfix to listen for IPv6 mail:

This will enable receiving and sending of both IPv6 and IPv4 mail. To make your mail server IPv6-only, change the above command to specify.

If you have manually specified your  setting, you may need to add your IPv6 subnet to the configuration:

You can find out more about IPv6 support in Postfix by running the following command:

Subpages

 * SSL/TLS encryption using server side certificates
 * Signing Email with OpenDKIM and Postfix