mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
e20a66864a
* docs(deps): bump mkdocs-material to 7.1.6 * chore: trigger preview on changes to preview workflows too * fix: replace deprecated admonition Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
35 lines
1.2 KiB
Markdown
35 lines
1.2 KiB
Markdown
---
|
|
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:
|
|
|
|
```cf
|
|
# increase maximum message size
|
|
message_size_limit = 52428800
|
|
```
|
|
|
|
That specific example is now supported and can be handled by setting `POSTFIX_MESSAGE_SIZE_LIMIT`.
|
|
|
|
!!! note
|
|
|
|
[Postfix documentation](http://www.postfix.org/documentation.html) 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:
|
|
|
|
```cf
|
|
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.
|