[Mimedefang] RE: Multiplexor Issue

David F. Skoll dfs at roaringpenguin.com
Fri Feb 14 14:53:01 EST 2003


On Fri, 14 Feb 2003, Jesus Martinez Rubio wrote:

> I can't understand why you say "except in busy servers". Please, could you
> explain me?

MIMEDefang creates the spool directories like this:

mdefang-<time>-<counter>, where "time" is the time-of-day counter in
hexadecimal.  If a message comes in, the directory might be called:

	mdefang-3D9ACAFE-1

Once the message is processed, the directory is deleted.  If another message
comes in quickly, it might get assigned the same name "mdefang-3D9ACAFE-1"
if the time-of-day hasn't been incremented yet.

The solution is as follows:  In filter_relay, have your database system
generate a unique counter (using SEQUENCE or whatever.)  Store this
counter in the file "./counter".

Your filter_sender, filter_recipient and remaining filter_* functions can
read the file "./counter" and get the database identifier.

You could even wrap it inside Perl functions store_unique_id() and
retrieve_unique_id().

Regards,

David.




More information about the MIMEDefang mailing list