[olug] qmail - install - trying the test bit...

Brian Roberson roberson at olug.org
Fri Mar 22 02:57:13 UTC 2002


I dont use daemontools, but here is a good effort....


( Quoting from the website you mentioned )  checkout the line in red...

The /var/qmail/boot directory contains example qmail boot scripts for different configurations: /var/spool/mail vs. $HOME/Mailbox, using procmail or dot-forward, and various combinations of these. Feel free to examine these, but for our installation, we'll use the following script:

#!/bin/sh

# Using stdout for logging
# Using control/defaultdelivery from qmail-local to deliver messages by default

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`"



--------------------------------------------------------------------------------
Note: This script uses backquotes (`), not single quotes ('). For best results, copy and paste the scripts in this guide instead of retyping them. 
--------------------------------------------------------------------------------


Use your editor to create the above /var/qmail/rc, then execute these commands:

    chmod 755 /var/qmail/rc
    mkdir /var/log/qmail

At this point you need to decide the default delivery mode for messages that aren't delivered by a .qmail file. The following table outlines some common choices.

      Mailbox format  Name  Location  defaultdelivery  Comments  
      mbox  Mailbox  $HOME  ./Mailbox  most common, works with most MUA's  
      maildir  Maildir  $HOME  ./Maildir/  more reliable, less MUA support  
      mbox   username  /var/spool/mail  See INSTALL.vsm  traditional UNIX mailbox  

See INSTALL.mbox, INSTALL.maildir, and INSTALL.vsm for more information.

To select your default mailbox type, just enter the defaultdelivery value from the table into /var/qmail/control/defaultdelivery. E.g., to select the standard qmail Mailbox delivery, do:

    echo ./Mailbox >/var/qmail/control/defaultdelivery



--------------------------------------------------------------------------------
Note: defaultdelivery isn't a standard qmail control file. It's a feature of the above /var/qmail/rc file. The defaultdelivery argument to qmail-start is the contents of a .qmail file that specifies delivery instructions to be followed when no actual .qmail is found. Putting these instructions in a separate control file eliminates the need to quote shell metacharacters in the delivery instructions and avoids messy multi-line command arguments. 
--------------------------------------------------------------------------------







More information about the OLUG mailing list