Kevin Miller:
> When someone sends an attachment via email that exceeds our limit,
> I'd like to return a custom error message directing them to our
> in-house web based file upload/download utility (similar to Dropbox
> in functionality).  I've looked at the bounce.cf options, but I
> don't see an option to address message size.  Is that a possibility?

Do you even know at what SMTP stage the client runs into the error?

Some SMTP clients will not even attempt to send the message when
they see the SMTP server's SIZE announcement in the EHLO response.

Some clients send a SIZE parameter in the MAIL FROM command,
in which case the SMTP server will reject the MAIL FROM command.

Some clients don't do any of the above in which case the SMTP
server will reject the message with the end-of-data response.

Either way, the smtpd_reject_footer feature may be of some help.
http://www.postfix.org/postconf.5.html#smtpd_reject_footer

Keep it short and on the same line (start with \c) and don't
expect that anyone will actually read this.

        Wietse

Reply via email to