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.cf using 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 to postconf -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

  1. Enter the kopano container docker exec -it kopano bash
  2. Edit the configuration file: vim /storage/postfix-main-v2.cf
  3. Add the line always_bcc = archive@example.com
  4. Close and apply the changes: /etc/my_init.d/43_postfix-config-overrides.sh && sv restart postfix