[Mimedefang] Work directory names

David F. Skoll dfs at roaringpenguin.com
Thu Mar 27 11:09:01 EST 2003


On Thu, 27 Mar 2003, Joseph Brennan wrote:

> Mimedefang seems not to generate enough different names
> for work directories for a very busy server.

You should not be seeing this error.

> # grep h2RF33fu026999: syslog
> Mar 27 10:03:03 marionberry mimedefang[16960]: [ID 702342 mail.warning]
> h2RF33fu026999: Could not create directory
> /var/spool/MIMEDefang/mdefang-3E8312A7-0: File exists

You should never see anything ending in -0 complaining, because mimedefang.c
tries up to MAXTRIES times to make a directory, and MAXTRIES is 8192.
If you are seeing this, it's because your system is not returning
EEXIST or EBADF when the mkdir() fails.

> What to do now?

Well, you could try MIMEDefang 2.32-BETA-1, which uses the Sendmail
queue identifier in the temporary directory name.  Because of the way
these identifiers are generated, this is practically guaranteed to
succeed.

If you don't want to upgrade, see if supplying the "-M" option
to mimedefang fixes it.  This puts a mutex lock around the whole
directory-creation loop.

Regards,

David.



More information about the MIMEDefang mailing list