[Mimedefang] Re: Quarantine location

NFN Smith worldoff9908 at sacbeemail.com
Fri Aug 26 12:27:21 EDT 2005


Kris Deugau wrote:
> Matthew.van.Eerde at hbinc.com wrote:
> 
>>NFN Smith wrote:
>>
>>>I want to move the quarantines to the normal location, but for the
>>>life of me, I can't find in the MD configs where that is set (or why
>>>it would be set to something other than the normal location).
>>
>>It's hardcoded in mimedefang.pl... presumably it could be overridden
>>in mimedefang-filter.
> 
> 
> I was sure I had done this somewhere;  checking through several systems
> showed this near the top of /etc/mail/mimedefang-filter (just before
> filter_sender on that particular system):
> 
> # Force the correct quarantine dir.
> $QuarantineDir = "/var/spool/MD-Quarantine/";
> 
> And it's on a system running a locally-backported MD 2.51 on Debian
> (woody), no less.  <g>
> 

OK.  That's what I need to know.

I think I will do a bit of experimentation with mimedefang-filter.

> (As for "Why isn't it where I expect it?", the answer is probably
> "Debian Policy".  IIRC at one point the quarantine and work directories
> were the same by default in the official MD tarball though.)
> 

So, the fact that the box in question is running Debian is significant.

It will be worth seeing if a setting in mimedefang-filter will work. 
Because this is Debian, I won't try to tweak the mimedefang.pl script.

I discovered the hard way that with Debian, you don't want to tweak 
anything except files that are normally configured, especially scripts. 
   I'm also running SquirrelMail, and found that for some reason the 
maintainer of that package for Debian commented out three or four lines 
of code in a PHP script, disabling a feature I wanted.  It was simple to 
reenable the code, but then when an update was distributed through 
apt-get, my tweaks were overwritten with an original copy of the script.

I'm going to assume that if I tweak mimedefang.pl, I'm vulnerable to the 
same kind of "fixing" from apt-get.

In the meantime, for my cleanup script (where I'm tossing stuff older 
than 30 days), before actually deleting, I'm going to restart the 
mimedefang daemon, just to make absolutely sure that the socket files 
that are stored in the directory I'm cleaning are newer than anything I 
want to discard.

Thanks for the help.

Smith




More information about the MIMEDefang mailing list