Re: variable message size limit

From: Michael Tokarev (no email)
Date: Wed Jan 02 2002 - 06:44:51 EST


Oles' Hnatkevych wrote:
>
> Hello,
>
> My mail is intended mainly for postfix developers/hackers.
>
> There's a simple way to make separate message size limit
> depending on the sender/recipient address. I've made some
> changes to the smtpd daemon sources, and it works for me.
> However I do not know are they correct or not, and

Limiting message size at smtpd level does not work, unfortunately.
First of all, it works only for ESMTP and if the remote server
correctly uses SIZE= ESMTP extension. It doesn't work if

 a) message submitted by a way different from smtp
 b) message submitted by a non-ESMTP mailers
 c) remote smtp server does not use SIZE= ESMTP extension or
   uses fake number (the SIZE= is voluntary, remote can say
   any number here)
 d) message sent to multiple recipients in case per-recipient
   limits are different
 e) per-sender limits doesn't work if a sender is forged.

Cases a-c can be worked around if the similar limits will be implemented
in cleanup daemon.

Moreover, it's not usually practical to limit a size of individual
messages, unlike the mailbox storage.

Regards,
 Michael.
-
To unsubscribe, send mail to with content
(not subject): unsubscribe postfix-users








Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD