mailcow-dockerized-docs/docs/manual-guides/Postfix/u_e-postfix-attachment_size.en.md
2023-05-25 12:20:54 +02:00

797 B

Open data/conf/postfix/extra.cf and set the message_size_limit accordingly in bytes. See main.cf for the default value.

You will also need to adjust message size in Rspamd and Clamav configurations:

  • in data/conf/rspamd/local.d/options.inc add max_message parameter, check Rspamd Docs for defaults
  • in data/conf/clamav/clamd.conf adjust MaxScanSize and MaxFileSize

Restart Postfix, Rspamd and Clamav: === "docker compose (Plugin)"

``` bash
docker compose restart postfix-mailcow rspamd-mailcow clamd-mailcow
```

=== "docker-compose (Standalone)"

``` bash
docker-compose restart postfix-mailcow rspamd-mailcow clamd-mailcow
```