Peter Rabbitson:
> > You can do per-user routing when mail LEAVES Postfix, but not when
> > Postfix re-injects mail into itself.
> >
> > You can set a per-user FILTER action with access/header/body maps
> > etc. but that action will affect all recipients of that message.
> >
>
> Well... this might very well work. A descriptive reject message will
> take care of the fact that all recipients are affected, as the sender
> will know it. I looked at http://www.postfix.org/header_checks.5.html,
> but it is not clear to me how can I say 'IF message size > x'. Can
> someone help me with this?
The idea is to specify your SMTP server with restricted message size
limit as a FILTER action in an SMTP server access map.
access:
[EMAIL PROTECTED] FILTER smtp:localhost:12345
master.cf:
localhost:12345 ... smtpd -o message_size_limit=54321
Wietse