OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Gilles Chehade (gillescvs.openbsd.org)
Date: Sat Jan 03 2009 - 18:58:59 CST


CVSROOT: /cvs
Module name: src
Changes by: gillescvs.openbsd.org 2009/01/03 17:58:59

Modified files:
        usr.sbin/smtpd : forward.c lka.c mfa.c queue.c smtp.c
                         smtp_session.c smtpd.h

Log message:
aliases/forwards expansion was not done correctly and a race could
cause delivery to happen before expansion is over, causing some of
the recipients to never receive the mail. change how the mfa, lka,
queue and smtp processes communicate to ensure smtp never receives
an acknowledgment before ALL expanded envelopes are on disk. While
at it, lka was doing work which belongs in mfa, fix that also.

this is based on an idea from a talk with jacekm, change not over
but already better than what we had.