On 18-May-2001 Richard Mayhew wrote:
> Hi
>
> Can you tell me how I can set the maxximum size of a mail message which is
> allowed to be accepted for delivery. I would like to stop any mail larger
> then say 5MB from being recieved/delivered by XMAIL?
The correct way to implement this feature is to use the ESMTP extension "SIZE",
but almost all mail clients ignore this.
Since RFC says that You can't stop in the middle of the DATA transfer You've to
receive the whole message before to give an error to the SMTP client.
You could handle this with a filter that, if the size is above Your limit, stop
the message and notify the sender.
- Davide