Installation of qmail 

1. Create the qmail home directory:                      # mkdir /var/qmail
2. Set up the qmail group and the qmail users before compiling the programs.                                     qmail:*:2107:
                           nofiles:*:2108:

                        where 2107 and 2108 are different from the other gids in /etc/group.
 

            alias:*:7790:2108::/var/qmail/alias:/bin/true
            qmaild:*:7791:2108::/var/qmail:/bin/true
            qmaill:*:7792:2108::/var/qmail:/bin/true
            qmailp:*:7793:2108::/var/qmail:/bin/true
            qmailq:*:7794:2107::/var/qmail:/bin/true
            qmailr:*:7795:2107::/var/qmail:/bin/true
            qmails:*:7796:2107::/var/qmail:/bin/true

where 7790 through 7796 are _new_ uids, 2107 is the qmail gid, and 2108 is the nofiles gid. Make sure you use the nofiles gid for qmaild, qmaill, qmailp, and alias, and the qmail gid for qmailq, qmailr, and qmails.
 

  3. Compile the programs:                                                       # make
  4. Create the formatted man pages, *.0:                     # make man
  5. Create the qmail directory tree:                                    # make setup
  6. Run instcheck to make sure it doesn't print any warnings:        # make check
  7. Read INSTALL.ctl and FAQ.
                    Minimal survival command:                                   # ./qmail-config
  8. Read INSTALL.alias.
                    Minimal survival command:
       # (cd ~alias; touch .qmail-postmaster .qmail-mailer-daemon .qmail-root)
       # chmod 644 ~alias/.qmail*
  9. Read INSTALL.mbox.
10. Read qmail-upgrade.0. This is what your users will need to know
    about the switch from sendmail to qmail.

 
 
Upgrading from sendmail to qmail
 
 
 
 
 
 
 
 
Differences after  the  system  switches
from sendmail to qmail

               russet   ------>       russet.math.uic.edu
               newton ------>       newton.math.uic.edu
               ut.ee     ------>       ut.ee  (a host in Estonia)
               ut.ee+   ------>       ut.ee.uic.edu
               uicvm+ ------>       uicvm.uic.edu
 

 
 
QMAIL MAILING LISTS 
Example: if you want to set up  a  bug-of-the-month-club mailing   list,  you  can  put  a  list  of  addresses  into  ~you/.qmail-botmc.  Any mail to you-botmc will be  forwarded to  all  of  those  addresses.  Mail directly to you is controlled by ~you/.qmail.  You can even set  up  a  catch-all,  ~you/.qmail-default, to handle unknown
you- addresses.