Erick Calder:
> On Sep 24, 2009, at 1:41 PM, Victor Duchovni wrote:
> 
> > On Thu, Sep 24, 2009 at 01:40:58PM -0700, Erick Calder wrote:
> >
> >> I've been asking at the google groups mailing list with no results  
> >> so I
> >> figure I'd try this list:
> >>
> >> how can I customise the notice sent to a user when hir messages  
> >> exceeds my
> >> (or hir) size limit?  I'd like to inform them they can use a dropbox
> >
> > You can't. Most SMTP clients give up after you reply to EHLO reporting
> > your message size limit. They never attempt to send the message, and
> > you never get to say "no, but try this instead"...
> 
> odd because I've received rejection messages from servers that my mail  
> was not accepted on account of the attachment size and that I can use  
> a dropbox.
> 
> if your statement is true, what about increasing the message size  
> acceptable (or removing the limit if possible) and handling the limit  
> in some other way?

If Postfix announces a size limit of X, many SMTP clients won't
attempt to send larger messages, and Postfix won't accept a larger
message (and thus Postfix will not generate a bounce email message).

If you must configure Postfix to accept messages larger than X,
(and then return it to the sender) then you would have to use a
content filter to return the message with custom text.  Postfix
does not have different templates for different error types; it
only distinguishes between delayed mail and other errors. Generally
one message can have more than one recipient and each of them may
have different errors, so error-dependent templates don't scale well.

If the files are large, then I would suggest sending the users a
temporary password for a website upload link. This gives the user
immediate feedback.

        Wietse

Reply via email to