[Mimedefang] FreeBSD 5.4, MD 2.54, and Quarantine Directories

Matthew Schumacher matt.s at aptalaska.net
Sat Jan 21 14:23:51 EST 2006


David Nelson wrote:
> I don't know if this is the proper forum for this, but I'd like to make
> a feature request for MD.
> 
> I ran into a problem quarantining messages on a FreeBSD 5.4 box.
> Specifically, I hit the upper limit for the number of directories a
> single directory can hold (32767).  I store about 2 weeks of quarantined
> mail in case anything needs to be released and I average over 3000
> quarantined messages daily.
> 
> The solution was to create 256 directories under MD-Quarantine (00-FF
> inclusive), have get_quarantine_dir() randomly generate a number,
> convert it to hex, and append it to $Features{'Path:QUARANTINEDIR'}.
> 
> I don't know if there's a more ''elegant'' way of doing it, but it does
> take care of the problem.
> 

I load my quarantine into a database which does a much better job of
storing this information since I simply run queries to cleanup or fetch
the information.

A simple perl script that wakes up and loads the information works, but
running the db queries inside your filter would be even cleaner.

schu



More information about the MIMEDefang mailing list