1
1
Fork 0
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-05-13 02:26:09 +02:00
docker-mailserver/docs/content/config/advanced/override-defaults/postfix.md
wernerfred 1a8552b96c docs(refactor): Restructure document hierarchy
Additionally rename `installation-examples.md` and split
2021-03-25 11:49:24 +13:00

1.2 KiB

title
Override the Default Configs | Postfix

The Postfix default configuration can easily be extended by providing a config/postfix-main.cf in postfix format. This can also be used to add configuration that is not in our default configuration.

For example, one common use of this file is for increasing the default maximum message size:

# increase maximum message size
message_size_limit = 52428800

That specific example is now supported and can be handled by setting POSTFIX_MESSAGE_SIZE_LIMIT.

Postfix documentation remains the best place to find configuration options.

Each line in the provided file will be loaded into postfix.

In the same way it is possible to add a custom config/postfix-master.cf file that will override the standard master.cf. Each line in the file will be passed to postconf -P. The expected format is <service_name>/<type>/<parameter>, for example:

submission/inet/smtpd_reject_unlisted_recipient=no

Run postconf -P in the container without arguments to see the active master options.

!!! note There should be no space between the parameter and the value.

Have a look at the code for more information.