On Tue, 23 Sep 2008, Peter Rabbitson wrote:
Ralf Hildebrandt wrote:
* Peter Rabbitson <[EMAIL PROTECTED]>:
Hi,
I need to protect a specific local address by defining a very low
message_size_limit applicable only to this particular address.
Not possible in general. Only possible if the client uses ESMTP --
then you can use a policy server to restrict a combination of sender &
size
"Not possible in general" is a bit harsh. After all I can set up another
instance of the postfix suite and just route the mail in question to it.
It is however not very optimal. I really feel that with the modularity
of postfix there should be a way to deliver a message in this manner
without causing a loop, I just do not know what it is.
You could create a policy service and use it in
smtpd_end_of_data_restrictions. The 'size' attribute is known at that
stage of the game depending upon what version of Postfix you are using.
Postfix documentation states:
The "size" attribute value specifies the message size that the client
specified in the MAIL FROM command (zero if none was specified). With
Postfix 2.2 and later, it specifies the actual message size when the
client sends the END-OF-DATA command.
-d