home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / LINUX / HOWTO / mini / qmailmh.txt < prev    next >
Text File  |  1997-07-07  |  12KB  |  363 lines

  1.   mini-HOWTO install qmail with MH
  2.   Christopher Richardson (rdn@tara.n.eunet.de)
  3.   v1.3 13.06.97
  4.  
  5.   I am just documenting my installation experiences to offer some help
  6.   to other users who wish to use the above combination for their email.
  7.  
  8.   1.  Introduction
  9.  
  10.   My thanks to all netizens who have helped me, especially Tony Nugent
  11.   (tony@trishul.sci.gu.edu.au), David Summers
  12.   (david@summersoft.fay.ar.us) and S.u.S.E ( Linux distribution) who has
  13.   made installing Linux so much easier, and the authors of the above
  14.   excellent programs.
  15.  
  16.   What is qmail and why should I use it?  Here is the author┤s (Dan
  17.   Bernstein) blurb:
  18.  
  19.   qmail is a secure, reliable, efficient, simple message transfer agent.
  20.   It is meant as a replacement for the entire sendmail-binmail system on
  21.   typical Internet-connected UNIX hosts.  Secure: Security isn't just a
  22.   goal, but an absolute requirement. Mail delivery is critical for
  23.   users; it cannot be turned off, so it must be completely secure. (This
  24.   is why I started writing qmail: I was sick of the security holes in
  25.   sendmail and other MTAs.)  Reliable: qmail's straight-paper-path
  26.   philosophy guarantees that a message, once accepted into the system,
  27.   will never be lost. qmail also supports maildir, a new, super-reliable
  28.   user mailbox format. Maildirs, unlike mbox files and mh folders, won't
  29.   be corrupted if the system crashes during delivery. Even better, not
  30.   only can a user safely read his mail over NFS, but any number of NFS
  31.   clients can deliver mail to him at the same time.  Efficient: On a
  32.   Pentium under BSD/OS, qmail can easily sustain 200000 local messages
  33.   per day---that's separate messages injected and delivered to mailboxes
  34.   in a real test! Although remote deliveries are inherently limited by
  35.   the slowness of DNS and SMTP, qmail overlaps 20 simultaneous
  36.   deliveries by default, so it zooms quickly through mailing lists.
  37.   (This is why I finished qmail: I had to get a big mailing list set
  38.   up.)  Simple: qmail is vastly smaller than any other Internet MTA.
  39.   Some reasons why: (1) Other MTAs have separate forwarding, aliasing,
  40.   and mailing list mechanisms. qmail has one simple forwarding mechanism
  41.   that lets users handle their own mailing lists. (2) Other MTAs offer a
  42.   spectrum of delivery modes, from fast+unsafe to slow+queued. qmail-
  43.   send is instantly triggered by new items in the queue, so the qmail
  44.   system has just one delivery mode: fast+queued. (3) Other MTAs
  45.   include, in effect, a specialized version of inetd that watches the
  46.   load average.  qmail's design inherently limits the machine load, so
  47.   qmail-smtpd can safely run from your system's inetd.  Replacement for
  48.   sendmail: qmail supports host and user masquerading, full host hiding,
  49.   virtual domains, null clients, list-owner rewriting, relay control,
  50.   double-bounce recording, arbitrary RFC 822 address lists, cross-host
  51.   mailing list loop detection, per-recipient checkpointing, downed host
  52.   backoffs, independent message retry schedules, etc. In short, it's up
  53.   to speed on modern MTA features. qmail also includes a drop-in
  54.   ``sendmail'' wrapper so that it will be used transparently by your
  55.   current UAs.
  56.  
  57.   2.  My System Details
  58.  
  59.   Cyrix 6x86, with the SuSE Linux Distribution. Kernel patched to 2.0.28
  60.   with the unofficial Cyrix patch ( from http://www.escnet.com/). Elsa
  61.   Winner Trio +64 graphics card.
  62.   PPP link to ISP
  63.  
  64.   3.  Qmail Installation
  65.  
  66.   Follow the INSTALL instructions exactly.
  67.  
  68.   Notes:
  69.  
  70.   Please take the time to read the Fine documentation  completely.  The
  71.   numerals refer to the installation steps in the above INSTALL doc.
  72.  
  73.   ╖  2  - I had to set up the groups and users manually as per
  74.      INSTALL.ids
  75.  
  76.   ╖  7  - ./qmail-makectl did not work on my system. I added my domain
  77.      name (mickey.n.eunet.de) manually in /var/qmail/control/me
  78.  
  79.   ╖  23 - Make sure qmail-smtpd is spelt correctly in the inetd-conf
  80.      file.  (I spelt it incorrectly i.e. qmail-smptd, which took me two
  81.      days to find:( ) smtp  stream  tcp     nowait  qmaild
  82.      /var/qmail/bin/tcp-env tcp-env /var/qmail/bin/qmail-smtpd
  83.  
  84.   3.1.  Maildir2smtp
  85.  
  86.   Dan Bernstein has provided a package for sending queued email to an
  87.   ISP via dial-in. This package is available as serialmailxxx from his
  88.   site.
  89.  
  90.   Install this package as described in the man page (Thanks Rupert
  91.   Mazzucco (maz@pap.univie.ac.at), it works out of the box!
  92.  
  93.          maildir2smtp - blast a maildir across SMTP
  94.  
  95.          maildir2smtp is designed to pass messages along a SLIP  or
  96.          PPP  link.  To set this up on the disconnected end, create
  97.          a new maildir in alias:
  98.  
  99.             # maildirmake ~alias/pppdir
  100.             # chown -R alias ~alias/pppdir
  101.  
  102.          Put
  103.  
  104.             :alias-ppp
  105.  
  106.          into control/virtualdomains and
  107.  
  108.             ./pppdir/
  109.  
  110.          into ~alias/.qmail-ppp-default.  Don't  forget  the  extra
  111.          slash in pppdir/.  Then, in the PPP startup script, do
  112.  
  113.             maildir2smtp ~alias/pppdir alias-ppp- $IP `hostname`
  114.  
  115.          replacing  $IP with the remote IP address.
  116.  
  117.   Notes:
  118.  
  119.   ╖  Please read the Fine manual page completely.
  120.  
  121.   ╖  Maildir2smtp requires the dotted IP address of your mail server. If
  122.      you do not have this then ping YourMail.host.country which will
  123.      return the IP.
  124.  
  125.   ╖  This command can be included in your login script to flush all
  126.      queued mail after logging in to your ISP.
  127.  
  128.   4.  MH Installation
  129.  
  130.   In addition to this, I also replaced /mh-6.8.4/mts/sendmail/smail.c
  131.   with Dan Bernstein┤s mh-qmail-smail.c
  132.  
  133.   This is what my mh-6.8.4/conf/MH looks like:
  134.  
  135.   ______________________________________________________________________
  136.  
  137.   bin     /usr/bin/mh
  138.   etc     /usr/lib/mh
  139.   #mail
  140.   #mandir /usr/man
  141.   #manuals        standard
  142.   chown   /bin/chown
  143.   #cp     cp
  144.   #ln     ln
  145.   #remove mv -f
  146.   cc      gcc
  147.   ccoptions -traditional -O2 -m486 -D_NFILE='getdtablesize()'
  148.             -DSIGEMT=SIGUSR1
  149.   curses  -lncurses
  150.   #ldoptions      -s
  151.   #ldoptlibs
  152.   lex     flex
  153.   #oldload        off
  154.   #ranlib on
  155.   mts     sendmail
  156.   #mf     off
  157.   #bboards        off
  158.   #bbdelivery     off
  159.   #bbhome /usr/spool/bboards
  160.   pop     on
  161.   popdir  /usr/lib/mh
  162.   sharedlib       sys5
  163.   slflags -fPIC
  164.   slibdir /usr/lib
  165.   mailgroup       mail
  166.   signal  void
  167.   sprintf int
  168.   #editor prompter
  169.   #debug  off
  170.   #regtest        off
  171.   options ATHENA
  172.   options BIND
  173.   options DPOP
  174.   options DUMB
  175.   options FCNTL
  176.   options MHE
  177.   options MHRC
  178.   options MIME
  179.   options MORE='"/usr/bin/less"'
  180.   options OVERHEAD
  181.   options POP2
  182.   options POPSERVICE='"pop3"'
  183.   options RENAME
  184.   options RPATHS
  185.   options RPOP
  186.   options SOCKETS
  187.   options SVR4
  188.   options SYS5
  189.   options SYS5DIR
  190.   options TERMINFO
  191.   options UNISTD
  192.   options VSPRINTF
  193.  
  194.   ______________________________________________________________________
  195.  
  196.   Notes:
  197.  
  198.   ╖  I have only compiled ``mts sendmail'' - read in comp.mail.mh
  199.      somewhere that /smtp can cause problems. Dominic Mitchell
  200.      (hdm@demon.net) wrote in comp.mail.mh (13 June 1997):
  201.  
  202.      ``Not quite. With this option MH still talks SMTP, just over a pipe
  203.      and not over a network. You *really* need a line in your
  204.      /.mh_profile which says:
  205.  
  206.      postproc: /usr/local/nmh/lib/spost
  207.  
  208.      Or whever it's kept on your system. This will pass the message
  209.      directly to sendmail in the traditional manner. You're using qmail
  210.      of course, so sendmail will be qmail's wrapper script, but that's
  211.      just fine.'' Thanks Dominic.
  212.  
  213.   ╖  I have remmed out ``mail'' because I want to control it via
  214.      mtstailor
  215.  
  216.   4.1.  mtstailor
  217.  
  218.   As qmail delivers mail to the home directory (~/Mailbox). I added the
  219.   following to my mtstailor
  220.  
  221.        localname:      mickey
  222.        localdomain:    n.eunet.de
  223.        mmdfldir:
  224.        mmdflfil:       Mailbox
  225.        uucpldir:
  226.        uucplfil:
  227.        mmdelim1:       \001\001\001\001\n
  228.        mmdelim2:       \001\001\001\001\n
  229.        mmailid:        0
  230.        umincproc:
  231.        lockldir:
  232.        sendmail:       /usr/lib/sendmail
  233.  
  234.   Notes:
  235.  
  236.   ╖  sendmail: /usr/lib/sendmail is a link to the qmail sendmail wrapper
  237.      in /var/qmail/bin
  238.  
  239.   ╖  MH does not like the tilde notation (~/) use /home instead or leave
  240.      blank which acco