Re: [exim] Running Exim4 in docker - how to set the message…

Top Page
Delete this message
Reply to this message
Author: Evgeniy Berdnikov
Date:  
To: exim-users
Subject: Re: [exim] Running Exim4 in docker - how to set the message_size_limit?
On Mon, Feb 11, 2019 at 07:43:56PM +0100, Ralph Soika via Exim-users wrote:
> I found the solution by myself. It was not so difficult. Just adding the var
> 'MESSAGE_SIZE_LIMIT' into the /etc/exim4/update-exim4.conf.conf file did the
> trick


File /etc/exim4/update-exim4.conf.conf is autogenerated by dpkg (Debian
packet manager), so this it NOT a good solution. You have better to use
split-config and add custom definitions in files under
/etc/exim4/conf.d/main/.

> echo "MESSAGE_SIZE_LIMIT='100M'" >> /etc/exim4/update-exim4.conf.conf
>
> Important here is that the var must be in upper case where the internal
> param is in lower case.


It seems you do not understand clearly how it works...
File /etc/exim4/conf.d/main/02_exim4-config_options from Debian
distribution contains:

# Message size limit. The default (used when MESSAGE_SIZE_LIMIT
# is unset) is 50 MB
.ifdef MESSAGE_SIZE_LIMIT
message_size_limit = MESSAGE_SIZE_LIMIT
.endif

Files under /etc/exim4/conf.d/main/ are sourced in alphabetical order.
So if you add your custom definition of MESSAGE_SIZE_LIMIT before
02_exim4-config_options, it will be applied to message_size_limit.
If after, it will be ignored.

PS. As Jeremy pointed, this list is not for Debian-specific questions.
--
Eugene Berdnikov