mailcow-dockerized-docs/docs/manual-guides/Postfix/u_e-postfix-attachment_size.en.md

21 Zeilen
797 B
Markdown

Open `data/conf/postfix/extra.cf` and set the `message_size_limit` accordingly in bytes. See `main.cf` for the default value.
2023-05-25 12:20:54 +02:00
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](https://rspamd.com/doc/configuration/options.html#:~:text=DoS%20(default%3A%201024)-,max_message,-maximum%20size%20of) for defaults
+ in `data/conf/clamav/clamd.conf` adjust `MaxScanSize` and `MaxFileSize`
2023-05-25 09:39:39 +02:00
Restart Postfix, Rspamd and Clamav:
2022-12-15 15:31:09 +01:00
=== "docker compose (Plugin)"
2022-12-14 22:09:09 +01:00
``` bash
2023-05-25 09:39:39 +02:00
docker compose restart postfix-mailcow rspamd-mailcow clamd-mailcow
2022-12-14 22:09:09 +01:00
```
2022-12-15 15:31:09 +01:00
=== "docker-compose (Standalone)"
2022-12-14 22:09:09 +01:00
``` bash
2023-05-25 09:39:39 +02:00
docker-compose restart postfix-mailcow rspamd-mailcow clamd-mailcow
2022-12-14 22:09:09 +01:00
```