On Wed, Jun 18, 2014 at 10:36 AM, mailing lists <listas.cor...@yahoo.es> wrote: > Hello all > > I'm trying to limit big mails to local lists using postfix+postfwd but I must > be missing something because it seems too complex to me. > > Mail size is available in END-OF-MESSAGE (E-O-M) so I do size checks in this > phase of the protocol. With single recipient mails all works as expected, > postfix policy information shows size and recipient info and I can reject > them, whilst multiple recipient mails lacks the recipient info, > this field is empty in E-O-M, so there is no easy way to do this check > because not sufficient info is present at E-O-M. > > any ideas for how to implement this?
What you really need is Per Recipient Data Response ( http://tools.ietf.org/html/draft-hall-prdr-00 ) but that died in 2007. People use many different awful hacks to achieve this functionality but I would stick for rejecting the message for all of them. Due to the limitation of not have the full recipient list in policy daemon ate OEM stage, a milter would be the best tool to achieve this. José Borges Ferreira