On Tue, May 10, 2016 at 07:58:36PM +0200, Sven Hartge wrote: > Brian <[email protected]> wrote: > > On Tue 10 May 2016 at 17:43:03 +0200, Sven Hartge wrote: > >> David Wright <[email protected]> wrote: > >> > On Tue 10 May 2016 at 11:07:47 (-0400), Haines Brown wrote: > > >>>> I tried to use mutt to send someone a zip file of about 50 Mb and got > >>>> the error: "Error sending message, child exited 1 (). Could not send > >>>> message." > >>>> > >>>> I assumed the attachment was too large and so went to > >>>> /etc/exim4/conf.d/main/02*/ and altered the configuration to be: > >>>> > >>>> # 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 # I commented this line > >>>> message_size_limit = 200 MB # I added this line > >>>> .endif > >>>> > >>>> I restarted exim, but it had no effect. > > >>> Isn't the Debian way to put > > >>> MESSAGE_SIZE_LIMIT=foo > > >>> into /etc/exim4/update-exim4.conf.conf and then run > >>> # dpkg-reconfigure exim4-config > >> > >> No, that won't work. You cannot just put stuff into > >> /etc/exim4/update-exim4.conf.conf and hope it will make it into the > >> configuration. > > > Didn't spot that; exim's .confs can be confusing. > > The file /etc/exim4/update-exim4.conf.conf is the configuration file for > the configuration generator, not Exim4 itself. > > > What file is used for non-split configuration? > > Have a look at /usr/share/doc/exim4/README.Debian.gz, Section 2.1.3 > "Using Exim Macros to control the configuration" > > Everything is documented there and the following sections, on how to > expand or override the configuration system provided by the Exim4 > maintainers. > > Grüße, > Sven.
Sven, your recommendation much appreciated, but didn't altogether clear up the situation. I took a look at /usr/share/doc/exim4/README.Debian.gz and found that to use a macro to change a default configuration value I need to define the new value in a local configuration file. I have a non-split configuration, and so it seems I must create a /etc/exim4/exim4.conf.localmacros file. The document says that if present this file is read before the exim4.conf.template file. I don't understand. Wouldn't reading the template file subsequently to it just overwrite my custom value with the default value? In this localmacros file it seems that I simply need the line MESSAGE_SIZE_LIMIT=200MB to redefine maximum message size from the default 50 MB to 200MB. I'm unsure of the syntax here. Is "MB" acceptable? Need it be separated from the number by a space? The document seems to say that for answers to such questions I should read the Exim Specification 6.4. It does not tell me where this specification is to be found. Another point of confusion is that MESSAGE_SIZE_LIMIT is referred to as a macro, but in context it seems more just a variable. To set a custom value, do I have to write an entire macro from scratch, which seems implied by the text, or merely set the value of a variable, which is implied by the example? I apologize for these elementary questions. Haines Brown

