Re: Different message size per domain [Per-Recipient Data Responses (Exim)]

2015-08-24 Thread Viktor Dukhovni
On Mon, Aug 24, 2015 at 10:01:27PM +0200, Andrzej A. Filip wrote: > Claus Assmann wrote: > >> With SMTP there is no per-recipiet end-of-data reply, and a > >> reject reply will block mail for all recipients. > > > > AFAICT PRDR can do that -- it's implemented in exim and some other MTA. > > Howe

Re: Different message size per domain [Per-Recipient Data Responses (Exim)]

2015-08-24 Thread Andrzej A. Filip
Claus Assmann wrote: >> With SMTP there is no per-recipiet end-of-data reply, and a >> reject reply will block mail for all recipients. > > AFAICT PRDR can do that -- it's implemented in exim and some other MTA. > However, it's barely used... One way to "encourage" its implementation would be to

Re: Different message size per domain

2015-08-24 Thread Wietse Venema
Claus Assmann: > > With SMTP there is no per-recipiet end-of-data reply, and a > > reject reply will block mail for all recipients. > > AFAICT PRDR can do that -- it's implemented in exim and some other MTA. > However, it's barely used... It's a chicken and egg thing; if enough systems implement

Re: Different message size per domain

2015-08-24 Thread Claus Assmann
> With SMTP there is no per-recipiet end-of-data reply, and a > reject reply will block mail for all recipients. AFAICT PRDR can do that -- it's implemented in exim and some other MTA. However, it's barely used...

Re: Different message size per domain

2015-08-24 Thread Wietse Venema
Viktor Dukhovni: > > With SMTP there is no per-recipiet end-of-data reply, and a > > reject reply will block mail for all recipients. > > Of course, but if a policy service wants to refuse overly large > messages whenever *any* recipient's quota is exceeded, it still > needs to inspect all the re

Re: Different message size per domain

2015-08-24 Thread Viktor Dukhovni
On Mon, Aug 24, 2015 at 01:44:47PM -0400, Wietse Venema wrote: > Viktor Dukhovni: > > On Mon, Aug 24, 2015 at 06:54:56PM +0200, Alexandre Ellert wrote: > > > > > > Le 22 ao?t 2015 ? 15:46, Viktor Dukhovni a > > > > ?crit : > > > > > > > > Is the policy service check in "smtpd_recipient_restrict

Re: Different message size per domain

2015-08-24 Thread Wietse Venema
Viktor Dukhovni: > On Mon, Aug 24, 2015 at 06:54:56PM +0200, Alexandre Ellert wrote: > > > > Le 22 ao?t 2015 ? 15:46, Viktor Dukhovni a > > > ?crit : > > > > > > Is the policy service check in "smtpd_recipient_restrictions", in > > > "smtpd_end_of_data_restrictions" or both? > > The policy serv

Re: Different message size per domain

2015-08-24 Thread Viktor Dukhovni
On Mon, Aug 24, 2015 at 06:54:56PM +0200, Alexandre Ellert wrote: > > Le 22 ao?t 2015 ? 15:46, Viktor Dukhovni a > > ?crit : > > > > Is the policy service check in "smtpd_recipient_restrictions", in > > "smtpd_end_of_data_restrictions" or both? > The policy server is called at smtpd_end_of_data

Re: Different message size per domain

2015-08-24 Thread Alexandre Ellert
> Le 22 août 2015 à 15:46, Viktor Dukhovni a écrit > : > > Is the policy service check in "smtpd_recipient_restrictions", in > "smtpd_end_of_data_restrictions" or both? The policy server is called at smtpd_end_of_data_restrictions stage. > The message size is not always known at "RCPT TO" time

Re: Different message size per domain

2015-08-22 Thread Wietse Venema
Alexandre Ellert: > As far as I understand, the documentation says that the size > attribute is set by the sender. So the size is not computed by Unfortunately, Postfix cannott predict the future (if it could, then I would be doing something else). Before the entire message is received, Postfix u

Re: Different message size per domain

2015-08-22 Thread Viktor Dukhovni
On Sat, Aug 22, 2015 at 02:06:42PM +0200, Alexandre Ellert wrote: > I have two Postfix inbound servers which serve multiple domain and I'd > like to accept 20 Mb email for all domain except one (I want 10 Mb limit > for this one). > In main.cf I set message_size_limit = 20971520 and I use a polic