Adding Additional Postfix Configuration in the Kopano Container
Note
Make sure to enter the kopano container with docker exec -it kopano bash.
Administrators can override the configuration of both main.cf and master.cf.
To extend the default configuration, you can create custom configuration files:
- For
main.cf: Create a file named/storage/postfix-main-v2.cfusing the same format as main.cf. - For
master.cf: Create a file named/storage/postfix-master.cf. The contents of this file will be passed line by line topostconf -P. Use the format<service_name>/<type>/<parameter>to define custom parameters.
These changes will be automatically applied the next time the container is started. To apply changes immediately, run /etc/my_init.d/43_postfix-config-overrides.sh && sv restart postfix inside the container.
Example: Adding a always BCC rule
- Enter the kopano container
docker exec -it kopano bash - Edit the configuration file:
vim /storage/postfix-main-v2.cf - Add the line
always_bcc = archive@example.com - Close and apply the changes:
/etc/my_init.d/43_postfix-config-overrides.sh && sv restart postfix