On 06 Jun 2013, at 06:40 , Raphael Bauduin <rbli...@gmail.com> wrote:
> Hi, > > I have message_size_limit set at the default value: > # postconf | grep message_size_limit > message_size_limit = 10240000 > > I create a file to attach by: > # dd if=/dev/urandom of=/tmp/75 bs=1024 count=7500 > > and then try to send it with: > # echo 'test 75' | biabam /tmp/75 -s test75 myaddr...@example.com > postdrop: warning: uid=1000: File too large > sendmail: fatal: raph(1000): message file too big > > Why is there a 2Mb+ difference between the message_size_limit value and the > attachment size accepted? (I don't think the envelope can take 2Mb…) Mail files are encoded into 7-bit text, this adds as much as 30% to the file size. the default of 10MB is pretty small and conservative. I have mine set at 25MB which matches gmail's limit (or at least it did when I set it, gmail's may have increased), though I believe that GMail's limit is based on the un-encoded file size. -- 'There has to be enough light,' he panted, 'to see the darkness.'