On 4 Nov 2004 at 13:08, David F. Skoll wrote: > On Thu, 4 Nov 2004, Jeff Rife wrote: > > > If you put the /var/spool/MIMEDefang directory on a ramdisk (using > > either an actual ramdisk or tempfs) this not only speeds up the > > scanning but solves this problem in the long run, since every reboot > > gets rid of these randomly saved directories. > > Well, yeah, except I don't like to reboot too often! :-)
True, but for a while, I was doing a lot of reboots for new kernels. > And you > really don't want a ramdisk to fill up. Unless MD craps out or you stop/start it a lot, you shouldn't get any of these. > So if you're paranoid, run > this nightly from cron: > > find /var/spool/MIMEDefang -name 'mdefang-*' -type d -mtime +1 -exec rm -r {} \; > > /dev/null 2>&1 > > That deletes any /var/spool/MIMEDefang/mdefang-* directories older than a day. This also works: /bin/touch /var/spool/MIMEDefang/*.pid /bin/touch /var/spool/MIMEDefang/*.sock /usr/sbin/tmpwatch 24 /var/spool/MIMEDefang This makes sure that the important files are "fresh", and then anything older than 24 hours gets deleted. It's easy to add this to the /etc/cron.daily/tmpwatch file on a RedHat- based OS. -- Jeff Rife | "As usual, a knife-wielding maniac SPAM bait: | has shown us the way." [EMAIL PROTECTED] | [EMAIL PROTECTED] | -- Bart Simpson _______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang