From 2970d45e2270d79cc24f350fa87d81970b8c8854 Mon Sep 17 00:00:00 2001 From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Thu, 25 May 2023 10:39:39 +0300 Subject: [PATCH] Update Postfix attachment_size how-to --- .../Postfix/u_e-postfix-attachment_size.en.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/manual-guides/Postfix/u_e-postfix-attachment_size.en.md b/docs/manual-guides/Postfix/u_e-postfix-attachment_size.en.md index 0e85e6711..9a7cce72c 100644 --- a/docs/manual-guides/Postfix/u_e-postfix-attachment_size.en.md +++ b/docs/manual-guides/Postfix/u_e-postfix-attachment_size.en.md @@ -1,14 +1,19 @@ Open `data/conf/postfix/extra.cf` and set the `message_size_limit` accordingly in bytes. See `main.cf` for the default value. -Restart Postfix: +Also you need align 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` + + +Restart Postfix, Rspamd and Clamav: === "docker compose (Plugin)" ``` bash - docker compose restart postfix-mailcow + docker compose restart postfix-mailcow rspamd-mailcow clamd-mailcow ``` === "docker-compose (Standalone)" ``` bash - docker-compose restart postfix-mailcow + docker-compose restart postfix-mailcow rspamd-mailcow clamd-mailcow ```