[Mimedefang] Looking for more ramdisk benefits
    Justin 
    listuser at numbnuts.net
       
    Fri Feb  6 10:24:22 EST 2004
    
    
  
On Fri, 6 Feb 2004, David F. Skoll wrote:
> You can split the Sendmail queue so that the "df" and "qf" files (which
> *must* survive a crash) are on permanent storage, but the temporary
> "xf" transaction files are on a ramdisk.  Someone else mentioned
> this; I don't have the reference offhand.
Taken from O'Reilly's "sendmail Cookbook" chapter 9, section 2 by Craig
Hunt (highly recommended BTW):
"
Create a new queue directory structure with separate directories for df, 
qf, and xf queue files.
umask 077
mkdir /var/spool/mqueue.new
cd /var/spool/mqueue.new
mkdir df qf xf
Move the old queue directory out of the way so that the new queue 
directory structure can be given the pathname defined by the 
QueueDirectory option in the sendmail.cf file.
mv /var/spool/mqueue /var/spool/mqueue.old
mv /var/spool/mqueue.new /var/spool/mqueue
Start another copy of sndmail as a queue runner to drain the old queue.  
Use the -O arguement on the sendmail command line to point the quue runner 
to the old queue.
sendmail -L sm-oldq -q15m -O QueueDirectory=/var/spool/mqueue.old
"
Sendmail will automagically use the df, qf and xf directories if they 
exist within QueueDirectory.  Knowing this you can easily mount a tmpfs 
volume to xf to reap the benefits.  Don't forget the queue runner for the 
old queue directory though.
HTH
 Justin
PS==> Did I mention that it's an excellent book?  
http://www.oreilly.com/catalog/sendmailckbk/
    
    
More information about the MIMEDefang
mailing list