max-message-size

2021-07-12 Thread Kent Watsen
Would it be okay to add direction-specific versions of "max-message-size", e.g., "max-message-size-send” and "max-message-size-recv”? Reason: My outbound email relay provider (amazonses) limits outbound message size to 10M. If I don’t set "max-message-size 10M” and a

Re: max-message-size

2021-07-12 Thread Martijn van Duren
This area of the code is not my strong suit, so my answer might be a bit rough around the edges. First of, a max-message-size-send doesn't make sense, since from the perspective of smtpd an mbox delivery and relay are basically the same, it's just some different backend code. So ha

Re: max-message-size

2021-07-12 Thread Pete
Would it be possible to add an max-msgsize option to the match clause to get the desired result?

Re: max-message-size

2021-07-12 Thread Maarten de Vries
On Mon, 12 Jul 2021 at 20:36, Pete wrote: > Would it be possible to add an max-msgsize option to the match clause to > get the desired result? > > > That might be a potential footgun if it means messages that are too large end up with a subsequent match. Although careful documentation could maybe

Re: max-message-size

2021-07-13 Thread Pete
You're right. After a second thought i guess it's not a very good idea.