OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: want 552 Message too large
From: Robby Griffin (rmgMIT.EDU)
Date: Tue Aug 29 2000 - 17:35:59 CDT


>> Running 19991231-pl06, is there a way to force smtpd to return a 552
>> when the message is too large? Currently it returns a 451 and then a 421
>> after ~300 seconds, which has gotten my mailer into a loop with someone
>> else's. They retry the large message every 30 minutes with no apparent
>> timeout. I temporarily upped my size limit to break the loop, but I want
>> to avoid this in the future by bouncing large mail, period. How?
>
>[thorin:~] 2:50:14pm 111 % telnet 12.33.21.200 25
>Trying 12.33.21.200...
>Connected to 12.33.21.200.
>Escape character is '^]'.
>220 bifur.cmc.net ESMTP Postfix
>helo mom
>250 bifur.cmc.net
>mail from:<bemcmc.net> SIZE=10240000000
>250 Ok
>rcpt to:<bemcmc.net>
>552 Message size exceeds fixed limit
>quit
>221 Bye
>
>Have you set the 'message_size_limit'?

Aha. Yes, and that example works on my server. The recent case that caused
problems involved a message that came in just barely under the size
limit, but was apparently too large after header processing. I want to
blame the cleanup daemon for returning the wrong status back to smptd,
but I can't be sure at what stage it's failing. As you saw in my original
message, the cleanup daemon does syslog the fact that the queue file is
too big, but this isn't being translated into the right smtp status code.

    --Robby