[Pkg-exim4-users] Where to change the message size limit

Ron Leach ronleach at tesco.net
Tue May 10 18:14:15 UTC 2016


On 10/05/2016 10:40, Marc Haber wrote:
>
> What did actually end up in /var/lib/exim4/config.autogenerated?

literally:
#############[nl]
MESSAGE_SIZE_LIMIT=100M########################################

I assumed this was config template's way of saying that it had found 
the macro definition.  Config template also has many lines of
######################
######################
at the start of the file, to warn folk that the file is autogenerated 
and changes should be made elsewhere, etc.

 > While
> I am reasonably sure that exim isn't this picky, I'd check for
> Unix/Windows line endings, non-printing characters and/or trailing
> spaces in the line where you set 100M.

This time using a KVM switch directly onto the server, and the mc 
package on the server, I edited the localmacros file.  I inserted a 
'newline' character (I think nl, I used the 'enter' key on the 
keyboard) at the end of the '100M'.  At the beginning of the next line 
(this macro is the only line in the file) mc reports <EOF> at position 
1.  Though I hadn't noticed because I wasn't expecting that would show 
in mc, I now think that my previous definition had been coded as
MESSAGE_SIZE_LIMIT = 100M<EOF>
that is, without a newline.

>
> I can confirm that MESSAGE_SIZE_LIMIT = 40M on my mail server works
> fine, such as MESSAGE_SIZE_LIMIT = 100M works as well (here, on
> jessie).

Marc, that was extremely kind of you to check, and very helpful, thank 
you.

> My gut feeling says non-printing character or wrong line
> ending.

Impressive.  I think you get two points for that. :)


Exim has restarted fine, no paniclogs, and my counterparty has sent 
its 98M email.


Ron



More information about the Pkg-exim4-users mailing list