Can’t attach a file larger than 500 KB to a message

Hi. I use a self-hosted chatmail relay.
Before deploying, I edited chatmail.ini:
max_message_size = 104857600
Now, when I try to attach a file larger than 500 KB to a message I get the postfix error “proxy-reject: END-OF-MESSAGE: 523 Encryption Needed: Invalid Unencrypted Mail”.
However, when I attach a file smaller than 500 KB to a message it attaches correctly.
How can I resolve this problem?

Which version of the relay do you run? It is available in /etc/chatmail-version.

There is no such file on the server.
I use relay version 1.6.0.
It seems that this error has not previously appeared in version 1.6.0.
Perhaps it is caused by updating the components via apt update/upgrade.

This is fixed already, the change is “filtermail: allow partial body length in OpenPGP payloads” in the changelog. It is not in 1.6.0 however, but you can update to the latest main.

What is the best way to do this?

Update to the main branch by doing git pull and git checkout main, then re-run scripts/cmdeploy.

Thanks. Updating from the main branch helped.