[Rspamd-Users] Message size limiting in rpsamd

Sophie Loewenthal sophie at klunky.co.uk
Mon May 6 20:23:47 UTC 2019


> On 6 May 2019, at 22:12, Vsevolod Stakhov <vsevolod at rspamd.com> wrote:
> 
> On 06/05/2019 21:09, Sophie Loewenthal wrote:
>>> On 6 May 2019, at 22:01, Sophie Loewenthal <sophie at klunky.co.uk> wrote:
>>> 
>>>> On 6 May 2019, at 21:56, Vsevolod Stakhov <vsevolod at rspamd.com> wrote:
>>>> 
>>>> On 06/05/2019 20:34, Tim Harman via Users wrote:
>>>>> On 07/05/2019 6:12 am, Sophie Loewenthal wrote:
>>>>> ..SNIP..
> 
>> 
>> By the way, what happens when the size limit is reached? 
>> 
> 
> Rspamd sends HTTP error 413 "Request Entity Too Large". Not sure what
> happens in milter mode however, probably this limit is ignored and the
> rule of thumb is that your MTA should manage this limit.
>

Hi, 
Tested with a size of 1Mb limit, and sent a 2Mb attachment. It rejects with a 4.7.1 message.  Good to know. I can make use of this setting. Thanks again.

Logs follow:

==> /var/log/mail.log <==
May  6 20:17:34 pmx43 postfix/cleanup[28989]: warning: milter inet:localhost:11332: can't read SMFIC_BODYEOB reply packet header: No such file or directory
May  6 20:17:34 pmx43 postfix/cleanup[28989]: 7BD2B5B: milter-reject: END-OF-MESSAGE from mail-wr1-f42.google.com[209.85.221.42]: 4.7.1 Service unavailable - try again later; from=<removedremoved at gmail.com> to=<removed at example/co.uk> proto=ESMTP helo=<mail-wr1-f42.google.com>
May  6 20:17:34 pmx43 postfix/smtpd[28985]: disconnect from mail-wr1-f42.google.com[209.85.221.42] ehlo=2 starttls=1 mail=1 rcpt=1 data=0/1 quit=1 commands=6/7



==> /var/log/rspamd/rspamd.log <==
2019-05-06 20:17:34 #28912(normal) <df72fa>; task; accept_socket: accepted connection from 127.0.0.1 port 52050, task ptr: 0000559BC55FC590
2019-05-06 20:17:34 #28912(normal) <df72fa>; task; rspamd_worker_error_handler: abnormally closing connection from: 127.0.0.1, error: Request entity too large: 2793180
2019-05-06 20:17:34 #28910(rspamd_proxy) <127007>; proxy; proxy_backend_master_error_handler: abnormally closing connection from backend: 127.0.0.1, error: IO write error: Connection reset by peer, retries left: 5
…
2019-05-06 20:17:34 #28910(rspamd_proxy) <127007>; proxy; proxy_backend_master_error_handler: cannot connect to upstream, maximum retries has been reached: 6


More information about the Users mailing list