home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / HOWTO / MAIL-HOW < prev    next >
Encoding:
Text File  |  1995-04-20  |  25.6 KB  |  732 lines

  1.   The Linux Electronic Mail HOWTO
  2.   Vince Skahan, <vince@halcyon.com>
  3.   v1.17, 22 Oct 1994
  4.  
  5.   This document describes the setup and care+feeding of Electronic Mail
  6.   (e-mail) under Linux.  You need to read this if you plan to communi-
  7.   cate locally or to remote sites via electronic mail.  You probably do
  8.   *not* need to read this document if don't exchange electronic mail
  9.   with other users on your system or with other sites.
  10.  
  11.   1.  Introduction
  12.  
  13.   The intent of this document is to answer some of the questions and
  14.   comments that appear to meet the definition of 'frequently asked
  15.   questions' about e-mail software under Linux.
  16.  
  17.   This document and the corresponding UUCP and News 'HOWTO' documents
  18.   collectively supersede the UUCP-NEWS-MAIL-FAQ that has previously been
  19.   posted to comp.os.linux.announce.
  20.  
  21.  
  22.   1.1.  New versions of this document
  23.  
  24.  
  25.   New versions of this document will be periodically posted to
  26.   comp.os.linux.announce, comp.answers, and news.answers.  They will
  27.   also be added to the various anonymous ftp sites who archive such
  28.   information including sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  29.  
  30.  
  31.   In addition, you should be generally able to find this document on the
  32.   Linux WorldWideWeb home page at http://sunsite.unc.edu/mdw/linux.html
  33.   and on my home page at http://www.halcyon.com/vince/welcome.html.
  34.  
  35.  
  36.   1.2.  Feedback
  37.  
  38.  
  39.   I am interested in any feedback, positive or negative, regarding the
  40.   content of this document via e-mail.  Definitely contact me if you
  41.   find errors or obvious omissions.
  42.  
  43.   I read, but do not necessarily respond to, all e-mail I receive.
  44.   Requests for enhancements will be considered and acted upon based on
  45.   that day's combination of available time, merit of the request, and
  46.   daily blood pressure :-)
  47.  
  48.   Flames will quietly go to /dev/null so don't bother.
  49.  
  50.   Feedback concerning the actual format of the document should go to the
  51.   HOWTO coordinator - Matt Welsh (mdw@sunsite.unc.edu).
  52.  
  53.  
  54.   1.3.  Copyright Information
  55.  
  56.  
  57.   The Mail-HOWTO is copyrighted (c)1994 Vince Skahan.
  58.  
  59.   A verbatim copy may be reproduced or distributed in any medium
  60.   physical or electronic without permission of the author.  Translations
  61.   are similarly permitted without express permission if it includes a
  62.   notice on who translated it.
  63.  
  64.   Short quotes may be used without prior consent by the author.
  65.   Derivative work and partial distributions of the Mail-HOWTO must be
  66.   accompanied with either a verbatim copy of this file or a pointer to
  67.   the verbatim copy.
  68.  
  69.   Commercial redistribution is allowed and encouraged; however, the
  70.   author would like to be notified of any such distributions.
  71.  
  72.   In short, we wish to promote dissemination of this information through
  73.   as many channels as possible. However, we do wish to retain copyright
  74.   on the HOWTO documents, and would like to be notified of any plans to
  75.   redistribute the HOWTOs.
  76.  
  77.   We further want that ALL information provided in the HOWTOS is
  78.   disseminated.  If you have questions, please contact Matt Welsh, the
  79.   Linux HOWTO coordinator, at mdw@sunsite.unc.edu.
  80.  
  81.  
  82.   1.4.  Standard Disclaimer
  83.  
  84.  
  85.   Of course, I disavow any potential liability for the contents of this
  86.   document.  Use of the concepts, examples, and/or other content of this
  87.   document is entirely at your own risk.
  88.  
  89.  
  90.   1.5.  Other sources of information
  91.  
  92.  
  93.  
  94.   1.5.1.  LINUX HOWTO Documents:
  95.  
  96.  
  97.   There is plenty of exceptional material provided in the other Linux
  98.   HOWTO documents and from the Linux DOC project.  In particular, you
  99.   might want to take a look at the following:
  100.  
  101.  
  102.   o  the Serial Communications HOWTO
  103.  
  104.   o  the Ethernet HOWTO
  105.  
  106.   o  the Linux Networking Administrators' Guide
  107.  
  108.  
  109.   1.5.2.  USENET:
  110.  
  111.  
  112.  
  113.              comp.mail.elm           the ELM mail system.
  114.              comp.mail.mh            The Rand Message Handling system.
  115.              comp.mail.mime          Multipurpose Internet Mail Extensions.
  116.              comp.mail.misc          General discussions about computer mail.
  117.              comp.mail.multi-media   Multimedia Mail.
  118.              comp.mail.mush          The Mail User's Shell (MUSH).
  119.              comp.mail.sendmail      the BSD sendmail agent.
  120.              comp.mail.smail         the smail mail agent.
  121.              comp.mail.uucp          Mail in the uucp environment.
  122.  
  123.  
  124.  
  125.  
  126.   1.5.3.  Books
  127.  
  128.  
  129.   The following is a non-inclusive set of books that will help...
  130.  
  131.  
  132.  
  133.   o  "Managing UUCP and USENET" from O'Reilly and Associates is in my
  134.      opinion the best book out there for figuring out the programs and
  135.      protocols involved in being a USENET site.
  136.  
  137.   o  "Unix Communications" from The Waite Group contains a nice
  138.      description of all the pieces (and more) and how they fit together.
  139.  
  140.  
  141.   o  "Sendmail" from O'Reilly and Associates looks to be the definitive
  142.      reference on sendmail-v8 and sendmail+IDA.  It's a "must have" for
  143.      anybody hoping to make sense out of sendmail without bleeding in
  144.      the process.
  145.  
  146.   o  "The Internet Complete Reference" from Osborne is a fine reference
  147.      book that explains the various services available on Internet and
  148.      is a great source for information on news, mail, and various other
  149.      Internet resources.
  150.  
  151.   o  "The Linux Networking Administrators' Guide" from Olaf Kirch of the
  152.      Linux DOC Project is available on the net and is also published by
  153.      (at least) O'Reilly and SSC.  It makes a fine one-stop shopping to
  154.      learn about everything you ever imagined you'd need to know about
  155.      Unix networking.
  156.  
  157.  
  158.   1.6.  Where *NOT* to look for help
  159.  
  160.  
  161.   There is nothing "special" about configuring and running mail under
  162.   Linux (any more).  Accordingly, you almost certainly do *NOT* want to
  163.   be posting generic mail-related questions to the comp.os.linux.*
  164.   newsgroups.
  165.  
  166.   Unless your posting is truly Linux-specific (ie, "please tell me what
  167.   routers are already compiled into the SLS1.03 version of smail3.1.28")
  168.   you should be asking your questions in one of the newsgroups or
  169.   mailing lists referenced above.
  170.  
  171.   Let me repeat that.
  172.  
  173.   There is virtually no reason to post anything mail-related in the
  174.   comp.os.linux hierarchy any more.  There are existing newsgroups in
  175.   the comp.mail.* hierarchy to handle *ALL* your questions.
  176.  
  177.   IF YOU POST TO COMP.OS.LINUX.* FOR NON-LINUX-SPECIFIC QUESTIONS, YOU
  178.   ARE LOOKING IN THE WRONG PLACE FOR HELP.  THE ELECTRONIC MAIL EXPERTS
  179.   HANG OUT IN THE PLACES INDICATED ABOVE AND GENERALLY DO NOT RUN LINUX.
  180.  
  181.   POSTING TO THE LINUX HIERARCHY FOR NON-LINUX-SPECIFIC QUESTIONS WASTES
  182.   YOUR TIME AND EVERYBODY ELSE'S...AND IT FREQUENTLY DELAYS YOU FROM
  183.   GETTING THE ANSWER TO YOUR QUESTION.
  184.  
  185.  
  186.   2.  Hardware Requirements
  187.  
  188.   There are no specific hardware requirements for mail under Linux.
  189.  
  190.   You'll need some sort of 'transport' software to connect to remote
  191.   systems, which means either tcp-ip or uucp.   This could mean that you
  192.   need a modem or ethernet card (depending on your setup).
  193.  
  194.  
  195.   3.  Getting the software
  196.  
  197.   In general, I grab my sources from ftp.uu.net and the other fine
  198.   archive sites on Internet.  In addition, Linux-specific binary ports
  199.   are found in the usual Linux distrbutions and on the usual Linux
  200.   anonymous ftp sites (sunsite.unc.edu and tsx-11.mit.edu in
  201.   particular).
  202.  
  203.   The newspak-2.4.tar.z distribution contains config files and readme
  204.   files related to building uucp, news, and mail software under Linux
  205.   from the various freely-available sources.  It can usually be found in
  206.   sunsite.unc.edu:/pub/Linux/system/Mail/news.  If you can't find it on
  207.   sunsite, please send me mail and I'll make sure you get a copy of it.
  208.  
  209.  
  210.   4.  Mail 'Transport Agents'
  211.  
  212.   This section contains information related to 'transport agents', which
  213.   means the underlying software that connects your local system to
  214.   remote systems.
  215.  
  216.  
  217.   4.1.  Smail v3.1
  218.  
  219.   Smail3.1 seems to be a de-facto standard transport agent for uucp-only
  220.   sites and for some smtp sites.  It compiles without patching from the
  221.   sources.  In addition, smail is provided in binary form in the SLS
  222.   distribution of Linux.
  223.  
  224.   The newspak distribution contains config files for smail3.1.28 under
  225.   Linux that you can use to start with.
  226.  
  227.   If you're building smail from sources, you need to have the following
  228.   in your os/linux file so that 'sed' gives you shell scripts that work
  229.   properly.
  230.  
  231.           CASE_NO_NEWLINES=true
  232.  
  233.  
  234.  
  235.   For a uucp-only system that has a MX-record and that wants a
  236.   domainized header (who goes through a smart-host for everything),
  237.   these are the entire config files you'll need:
  238.  
  239.  
  240.   o  replace 'subdomain.domain' with your domain name
  241.  
  242.   o  replace 'myhostname' with you un-domainized hostname
  243.  
  244.   o  replace 'my_uucp_neighbor' with the uucp name of your upstream site
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.              #-------- /usr/local/lib/smail/config -----------------
  266.              #
  267.              # domains we belong to
  268.              visible_domain=subdomain.domain:uucp
  269.              #
  270.              # who we're known as (fully-qualified-site-name)
  271.              visible_name=myhostname.subdomain.domain
  272.              #
  273.              # who we go through
  274.              smart_path=my_uucp_neighbor
  275.              #
  276.              #---------- /usr/local/lib/smail/paths --------------
  277.              #
  278.              # we're a domainized site, make sure we accept mail to both names
  279.              myhostname        %s
  280.              myhostname.subdomain.domain      %s
  281.              #
  282.              #-------------------------------------------------------------------
  283.  
  284.  
  285.   To run smail as a smtp daemon, add the following to /etc/inetd.conf:
  286.  
  287.                   smtp stream tcp nowait  root  /usr/bin/smtpd smtpd
  288.  
  289.  
  290.   Outgoing mail gets sent automatically, when using elm. If your inter-
  291.   net link is down when you send mail, then the mail sits in
  292.   "/usr/spool/smail/input".  When the link next comes up, "runq" is run
  293.   which causes the mail to be sent.
  294.  
  295.  
  296.   4.2.  Sendmail+IDA
  297.  
  298.   I run a uucp-only site and use sendmail5.67b+IDA1.5 instead of
  299.   smail3.1.28 due to the incredible ease of use.  There is a binary
  300.   distribution in sunsite.unc.edu:pub/Linux/system/Mail/delivery.  To
  301.   install it:
  302.  
  303.  
  304.   o  you'll probably want to remove (or rename) all the files from smail
  305.      (see the /install/installed directory if you are SLS) to be safe.
  306.  
  307.   o  cd to / then "gunzip -c sendmail5.67b+IDA1.5.tpz | tar xvf -" If
  308.      you have a "modern" tar from a recent Slackware (for example) you
  309.      can probably just do a "tar -zxvf filename.tgz" and get the same
  310.      results.
  311.  
  312.   o  cd to /usr/local/lib/mail/CF and copy the sample.m4 local.m4 file
  313.      to "yourhostname.m4".  Edit out the distributed hostname, aliases,
  314.      and smarthost and put in the correct one for your site.  The
  315.      default file is for a uucp-only site who has domainized headers and
  316.      who talks to a smart host.  Then "make yourhostname.cf" and move
  317.      the resulting file to /etc/sendmail.cf
  318.  
  319.   o  if you are uucp-only, you do *NOT* need to create any of the tables
  320.      mentioned in the README.linux file.  You'll just have to touch the
  321.      files so that the Makefile works.  Just edit the .m4 file, make
  322.      sendmail.cf, and start testing it.
  323.  
  324.   o  if you're uucp-only and you talk to sites in addition to your
  325.      "smart-host", you'll need to add uucpxtable entries for each (or
  326.      mail to them will also go through the smart host) and run dbm
  327.      against the revised uucpxtable.
  328.  
  329.   o  if you use my sendmail5.67b+IDA1.5 distribution you should not use
  330.      a "freeze file".
  331.   o  If you run Rich Braun's original binary distribution of 5.67a,
  332.      you'll need to freeze the configuration if you change your .cf file
  333.      with "/usr/lib/sendmail -bz" to make the changes take effect.  You
  334.      should also update your version to at least 5.67b since there is a
  335.      nasty security hole in 5.67a and earlier.
  336.  
  337.   Another nice thing is that if you have mail.debug set and you run
  338.   syslogd, your incoming and outgoing mail messages will get logged.
  339.   See the /etc/syslog.conf file for details.
  340.  
  341.   The sources for sendmail+IDA may be found at vixen.cso.uiuc.edu.  They
  342.   require no patching to run under Linux if you're running something
  343.   like a kernel of 1.00.
  344.  
  345.   If you're running a current kernel of around 1.1.50, you get the fun
  346.   of reversing most of the Linux-specific patches that are now in the
  347.   vanilla sources.  It's extremely obvious where this needs to be done.
  348.   Just type make and when it blows up, go to that line in the sources
  349.   and comment out the Linux-specific code that's in there.
  350.  
  351.   If you're going to run sendmail+IDA, I strongly recommend you go to
  352.   the sendmail5.67b+IDA1.5 version since all required Linux-specific
  353.   patches are now in the vanilla sources and several security holes have
  354.   been plugged that WERE (!!!) in the older version you may have grabbed
  355.   or built before about December 1st, 1993.
  356.  
  357.   The May/June 1994 edition of Linux Journal has an extensive article on
  358.   the care and feeding of sendmail+IDA.  The new edition of the Linux
  359.   DOC Project Networking Administrator's Guide will have an even more
  360.   detailed and complete version.
  361.  
  362.  
  363.   4.2.1.  The sendmail.m4 file
  364.  
  365.   Sendmail+IDA requires you to set up a sendmail.m4 file rather than
  366.   editing the sendmail.cffile directly.  The nice thing about this is
  367.   that it is simple to set up mail configurations that are extremely
  368.   difficult (if not totally impossible for most people to set up
  369.   correctly) in smail or traditional sendmail.
  370.  
  371.   The sendmail.m4 file that corresponds to the above smail example looks
  372.   like the following:
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.     dnl #------------------ SAMPLE SENDMAIL.M4 FILE ------------------
  398.     dnl #
  399.     dnl # (the string 'dnl' is the m4 equivalent of commenting out a line)
  400.     dnl #
  401.     dnl # you generally don't want to override LIBDIR from the compiled in paths
  402.     dnl #define(LIBDIR,/usr/local/lib/mail)dnl    # where all support files go
  403.     define(LOCAL_MAILER_DEF, mailers.linux)dnl    # mailer for local delivery
  404.     define(POSTMASTERBOUNCE)dnl                   # postmaster gets bounces
  405.     define(PSEUDODOMAINS, BITNET UUCP)dnl         # don't try DNS on these
  406.     dnl #
  407.     dnl #-------------------------------------------------------------
  408.     dnl #
  409.     dnl # names we're known by
  410.     define(PSEUDONYMS, myhostname.subdomain.domain myhostname.UUCP)
  411.     dnl #
  412.     dnl # our primary name
  413.     define(HOSTNAME, myhostname.subdomain.domain)
  414.     dnl #
  415.     dnl # our uucp name
  416.     define(UUCPNAME, myhostname)dnl
  417.     dnl #
  418.     dnl #-------------------------------------------------------------
  419.     dnl #
  420.     define(UUCPNODES, |uuname|sort|uniq)dnl       # our uucp neighbors
  421.     define(BANGIMPLIESUUCP)dnl                    # make certain that uucp
  422.     define(BANGONLYUUCP)dnl                       #  mail is treated correctly
  423.     define(RELAY_HOST, my_uucp_neighbor)dnl       # our smart relay host
  424.     define(RELAY_MAILER, UUCP-A)dnl               # we reach moria via uucp
  425.     dnl #
  426.     dnl #--------------------------------------------------------------------
  427.     dnl #
  428.     dnl # the various dbm lookup tables
  429.     dnl #
  430.     define(ALIASES, LIBDIR/aliases)dnl            # system aliases
  431.     define(DOMAINTABLE, LIBDIR/domaintable)dnl    # domainize hosts
  432.     define(PATHTABLE, LIBDIR/pathtable)dnl        # paths database
  433.     define(GENERICFROM, LIBDIR/generics)dnl       # generic from addresses
  434.     define(MAILERTABLE, LIBDIR/mailertable)dnl    # mailers per host or domain
  435.     define(UUCPXTABLE, LIBDIR/uucpxtable)dnl      # paths to hosts we feed
  436.     define(UUCPRELAYS, LIBDIR/uucprelays)dnl      # short-circuit paths
  437.     dnl #
  438.     dnl #--------------------------------------------------------------------
  439.     dnl #
  440.     dnl # include the 'real' code that makes it all work
  441.     dnl # (provided with the source code)
  442.     dnl #
  443.     include(Sendmail.mc)dnl                         # REQUIRED ENTRY !!!
  444.     dnl #
  445.     dnl #------------ END OF SAMPLE SENDMAIL.M4 FILE -------
  446.  
  447.  
  448.  
  449.  
  450.  
  451.   4.2.2.  Defining a local mailer
  452.  
  453.   Unlike most Unix distributions, Linux does not come with a local mail
  454.   delivery agent by default.  I recommend using the commonly available
  455.   deliver program, which is an optional package in a number of the usual
  456.   Linux distributions.  In order to do so, you need to define a
  457.   LOCAL_MAILER_DEF in the sendmail.m4 file that points to a file that
  458.   looks like:
  459.  
  460.  
  461.  
  462.  
  463.     # -- /usr/local/lib/mail/mailers.linux --
  464.     #     (local mailers for use on Linux )
  465.     Mlocal, P=/usr/bin/deliver, F=SlsmFDMP, S=10, R=25/10, A=deliver $u
  466.     Mprog,  P=/bin/sh,       F=lsDFMeuP,   S=10, R=10, A=sh -c $u
  467.  
  468.  
  469.  
  470.   There is a also built-in default for deliver in the Sendmail.mc file
  471.   that gets included into the sendmail.cf file.  To specify it, you
  472.   would not use the mailers.linux file but would instead define the
  473.   following in your sendmail.m4 file:
  474.  
  475.  
  476.      dnl --- (in sendmail.m4) ---
  477.      define(LOCAL_MAILER_DEF, DELIVER)dnl       # mailer for local delivery
  478.  
  479.  
  480.  
  481.   Unfortunately, Sendmail.mc assumes deliver is installed in /bin, which
  482.   is not the case with Slackware1.1.1 (which installs it in /usr/bin).
  483.   In that case you'd need to either fake it with a link or rebuild
  484.   deliver from sources so that it resides in /bin.
  485.  
  486.  
  487.   4.2.3.  The Sendmail+IDA dbm Tables
  488.  
  489.   Setting up special behavior for sites or domains is done through a
  490.   number of optional dbm tables rather than editing the sendmail.cf file
  491.   directly.  Refer to the July-1994 issue of Linux Journal, to the docs
  492.   in the sources, or to the sendmail chapter in the newest version of
  493.   the Linux DOC Project Networking Administration Guide which will be
  494.   available real-soon-now for more details.
  495.  
  496.  
  497.   o  mailertable   - defines special behavior for remote hosts or
  498.      domains.
  499.  
  500.   o  uucpxtable    - forces UUCP delivery of mail to hosts that are in
  501.      DNS format.
  502.  
  503.   o  pathtable     - defines UUCP bang-paths to remote hosts or domains.
  504.  
  505.   o  uucprelays    - short-circuits the pathalias path to well-known
  506.      remote hosts.
  507.  
  508.   o  genericfrom   - converts internal addresses into generic ones
  509.      visible to the outside world.
  510.  
  511.   o  xaliases      - converts generic addresses to/from valid internal
  512.      ones.
  513.  
  514.   o  decnetxtable  - converts RFC-822 addresses to DECnet-style
  515.      addresses.
  516.  
  517.  
  518.   4.2.4.  So Which Entries are Really Required?
  519.  
  520.   When not using any of the optional dbm tables, sendmail+IDA delivers
  521.   mail via the DEFAULT_MAILER (and possibly RELAY_HOST and RELAY_MAILER)
  522.   defined in the sendmail.m4 file used to generate sendmail.cf.  It is
  523.   easily possible to override this behavior through entries in the
  524.   domaintable or uucpxtable.
  525.  
  526.   A generic site that is on Internet and speaks Domain Name Service, or
  527.   one that is UUCP-only and forwards all mail via UUCP through a smart
  528.   RELAY_HOST, probably does not need any specific table entries at all.
  529.   Virtually all systems should set the DEFAULT_HOST and PSEUDONYMS
  530.   macros, which define the canonical site name and aliases it is known
  531.   by, and DEFAULT_MAILER.  If all you have is a relay host and relay
  532.   mailer, you don't need to set these defaults since it works
  533.   automagically.
  534.  
  535.   UUCP hosts will probably also need to set UUCPNAME to their official
  536.   UUCP name.  They will also probably set RELAY_MAILER, and RELAY_HOST
  537.   which enable smart-host routing through a mail relay.  The mail
  538.   transport to be used is defined in RELAY_MAILER and should usually be
  539.   UUCP-A for UUCP sites.
  540.  
  541.   If your site is SMTP-only and talks `Domain Name Service', you would
  542.   change the DEFAULT_MAILER to TCP-A and probably delete the
  543.   RELAY_MAILER and RELAY_HOST lines.
  544.  
  545.   If you're a SLIP site, you might want to take the easy way out and
  546.   just forward all outgoing mail to your service provider to do the
  547.   right thing with.  To do so, you'd want to define ISOLATED_DOMAINS and
  548.   VALIDATION_DOMAINS to be your domain, you'd also want to define
  549.   RELAY_HOST to be your service provider and RELAY_MAILER to be TCP. Of
  550.   course, you want to ask permission before you set any system up as
  551.   your general purpose relay.
  552.  
  553.  
  554.   4.3.  Sendmail 8.6
  555.  
  556.   Sendmail 8.6.x from Berkeley is the latest major revision after
  557.   sendmail5.  It has wonderful built-in support for building under
  558.   Linux.  Just "make linux" and you'll be all set.
  559.  
  560.  
  561.   4.4.  Other "transport agents"
  562.  
  563.   The following also are known to run under Linux.  Consult "archie" for
  564.   details regarding how to find them...
  565.  
  566.  
  567.   o  smail2.5 - very simple UUCP-based smail
  568.  
  569.  
  570.   4.5.  Local Delivery Agents
  571.  
  572.   Unlike most operating systems, Linux does not have mail "built-in".
  573.   You'll need a program to deliver the local mail.  One good program is
  574.   Rich Braun's "lmail" program, but I've switched to using the more
  575.   commonly available "deliver" program.
  576.  
  577.   Documentation for how to use either for local delivery is in the
  578.   sendmail5.67b+IDA1.5 binary release (on sunsite) mentioned above.
  579.  
  580.  
  581.   5.  Mail "User Agents"
  582.  
  583.   This section contains information related to "user agents", which
  584.   means the software the user sees and uses.  This software relies on
  585.   the "transport agents" mentioned above.
  586.  
  587.  
  588.   5.1.  Elm
  589.  
  590.   Elm compiles, installs, and runs flawlessly under Linux up to and
  591.   through Slackware 1.1.1 (gcc2.4.5, gcclib 4.4.4).  For more
  592.   information, see the elm sources and installation instructions.
  593.  
  594.  
  595.   The only thing to know is that Elm's Configure script incorrectly sets
  596.   the "ranlib" variable in config.sh.  The Elm Development Team has been
  597.   informed of this little problem, so please don't bother them with it
  598.   (again).
  599.  
  600.  
  601.   o  (from  Chip Rosenthal - chip@chinacat.unicom.com ) The easiest way
  602.      to deal with this is to create a file called config.over at the top
  603.      of you Elm source tree and include the line:
  604.  
  605.              ranlib='ranlib'
  606.  
  607.  
  608.  
  609.   o  Alternatively, you can just remember to correctly edit the line in
  610.      config.sh when Configure gives you the chance to do so.
  611.  
  612.   o  Elm and filter need to be mode 2755 (group mail) with
  613.      /usr/spool/mail mode 775 and group mail.
  614.  
  615.      If you use a binary distribution, you'll need to create a
  616.      /usr/local/lib/elm/elm.rc file to override the compiled-in hostname
  617.      and domain information:
  618.  
  619.  
  620.   o  replace "subdomain.domain" with your domain name replace
  621.  
  622.   o  "myhostname" with you un-domainized hostname replace
  623.  
  624.   o  "my_uucp_neighbor" with the uucp name of your upstream site
  625.  
  626.  
  627.              #---------- /usr/local/lib/elm/elm.rc ------------------
  628.              #
  629.              # this is the unqualified hostname
  630.              hostname = myhostname
  631.              #
  632.              # this is the local domain
  633.              hostdomain = subdomain.domain
  634.              #
  635.              # this is the fully qualified hostname
  636.              hostfullname = myhostname.subdomain.domain
  637.              #
  638.              #--------------------------------------------------------
  639.  
  640.  
  641.   One thing you want to be aware of is that if you have Elm compiled to
  642.   be MIME-able, you need metamail installed and in your path or Elm will
  643.   not be able to read MIME mail you've received.  Metamail is available
  644.   on thumper.bellcore.com and of course via "archie".
  645.  
  646.   We have heard reports that gcc and gcclib newer than v2.4.5 and v4.4.4
  647.   respectively are rather strict and fail to compile Elm.  Here's the
  648.   scoop as reported by  ccnp@unitrix.utr.ac.za (Neil Parker)  who
  649.   forwarded a posting by  longyear@netcom.com (Al Longyear).
  650.  
  651.  
  652.   o  ELM is using internal fields in the FILE structure in an effort to
  653.      bypass the standards. (The _flag, _IOERR, and _IOEOF are old fields
  654.      for the pre-POSIX runtime package. While POSIX doesn't say that you
  655.      can't define these fields, it does not say that you _must_. Linux
  656.      does not. It does say that programs should not be written to use
  657.      them, even if they are in the implementation.)
  658.  
  659.  
  660.  
  661.               where it does         if (fp->_flag & _IOERR) ...
  662.               change it to          if (ferror(fp)) ....
  663.  
  664.               where it does         if (fp->_flag & _IOEOF) ...
  665.               change it to          if (feof(fp)) ...
  666.  
  667.               These are the ANSI/POSIX definitions for the same function.
  668.  
  669.  
  670.  
  671.   o  While this item is not Linux-specific, it's a nagging bug
  672.      nevertheless.  We've heard that Elm sometimes fails with a message
  673.      that it's unable to malloc() some massive number of bytes.  This
  674.      has been identified as an Elm Bug.  The identified workaround is to
  675.      remove the post-processed global mail aliases (aliases.dir and
  676.      aliases.pag).
  677.  
  678.  
  679.   o  (from  scot@catzen.gun.de (Scot W. Stevenson) )
  680.  
  681.      The current metamail package requires csh for some of its scripts.
  682.      Failure to have csh (or tcsh) will cause most interesting errors...
  683.  
  684.  
  685.   5.2.  Mailx
  686.  
  687.   There is a fine binary implementation of mailx located on the various
  688.   Linux archive sites.  Make sure you grab version 5.3b or later since
  689.   there are security problems in v5.3a.  If you're into building from
  690.   sources, mailx v5.5 compiles without patching under Linux if you have
  691.   "pmake" installed.
  692.  
  693.   The only potential problem I'm aware of with the binary distribution
  694.   on sunsite is that it seems to be compiled in a way that requires
  695.   /usr/lib/smail rather than /usr/lib/sendmail as a transport agent.
  696.   You probably need a link if you run sendmail on your system.
  697.  
  698.   If anybody is still using it, I strongly recommend removing the old
  699.   "edmail" stuff from SLS1.00 and replacing it with mailx.
  700.  
  701.  
  702.   5.3.  Other user agents
  703.  
  704.   The following also are known to run under Linux.  Consult "archie" for
  705.   details regarding how to find them...
  706.  
  707.   o  Pine      - from the Univ. of Washington
  708.  
  709.   o  Metamail  - allows MIME support
  710.  
  711.   o  mh      - yet another way to handle mail
  712.  
  713.   o  deliver   - file/process mail based on rules
  714.  
  715.   o  procmail  - file/process mail based on rules
  716.  
  717.   o  Majordomo - manages e-mail lists
  718.  
  719.   o  Mserv     - provide files-by-mail
  720.  
  721.  
  722.   6.  Acknowledgements
  723.  
  724.   The following people have helped in the assembly of the information
  725.   (and experience) that helped make this document possible:
  726.  
  727.   Steve Robbins, Ian Kluft, Rich Braun, Ian Jackson, Syd Weinstein, Ralf
  728.   Sauther, Martin White, Matt Welsh, Ralph Sims, Phil Hughes, Chip
  729.   Rosenthal, Scot Stevenson, Neil Parker
  730.  
  731.   If I forgot anybody, my apologies...
  732.