OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Stopping backscatter with a magic cookie ?

From: Adam Harrison (adamantispin.org)
Date: Thu Jul 22 2004 - 10:54:55 CDT


On Thursday 22 July 2004 16:36 pm, Wietse Venema wrote:
> Adam Harrison:
> > in a batch once you've received the whole DATA block (out of interest,
> > would it be very invasive to change it to work this way ? If you think
> > not, I might
>
> It would be bad design to have the MTA store entire email messages
> in main memory. That may be OK for a home PC, but does not scale.

You wouldn't have to. You could introduce a special regexp whose evaluation
status is remembered until all lines are seen (ultimately requiring one bit
of storage per regexp during the receipt of the message) and evaluate a user
specifiable boolean expression over those states before you send the reply
code.

Obviously there is a trade off here that all such regexps would be evaluated
for every line even if their result is not later needed due to short
circuiting in the expression evaluation. However, if you need to scale you
can avoid the overhead entirely by not using such rules at all; and if you
want the functionality, you pay with your performance budget.

Best,

Adam.