home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / misc / linuxhow.zip / E_MAIL.HOW next >
Internet Message Format  |  1993-09-14  |  13KB

  1. Path: nlbbs!jaxsat!pagesat!decwrl!concert!samba.oit.unc.edu!sunSITE!mdw
  2. From: vince@victrola.wa.com (Vince Skahan)
  3. Newsgroups: comp.os.linux.announce,comp.answers,news.answers
  4. Subject: Linux Electronic Mail HOWTO
  5. Message-ID: <270f0g$sln@samba.oit.unc.edu>
  6. Date: 13 Sep 1993 00:31:12 GMT
  7. Reply-To: vince@victrola.wa.com (Vince Skahan)
  8. Followup-To: poster
  9. Organization: The University of North Carolina at Chapel Hill
  10. Lines: 316
  11. Approved: linux-announce@tc.cornell.edu (Matt Welsh)
  12. NNTP-Posting-Host: calypso.oit.unc.edu
  13. Originator: mdw@sunSITE
  14.  
  15. Archive-name: linux/howto/mail
  16. Last-modified:  31 August 1993
  17.  
  18. The Linux Electronic Mail HOWTO
  19. by Vince Skahan, <vince@victrola.wa.com>
  20. v1.1, Last Modified 31 August 1993
  21. ---------------------------------------------------------------------------
  22.  
  23. This document describes the setup and care+feeding of Electronic Mail
  24. (e-mail) under Linux.
  25.  
  26. You need to read this if you plan to communicate locally or to remote sites
  27. via electronic mail.
  28.  
  29. You probably do *not* need to read this document if don't exchange
  30. electronic mail with other users on your system or with other sites.
  31.  
  32.  
  33. 0.  Introduction
  34.  
  35.         The intent of this document is to answer some of the questions and
  36.         comments that appear to meet the definition of 'frequently asked
  37.         questions' about e-mail software under Linux.
  38.  
  39.         This document and the corresponding UUCP and News 'HOWTO' documents
  40.         collectively supersede the UUCP-NEWS-MAIL-FAQ that has previously
  41.         been posted to comp.os.linux.announce.
  42.  
  43.  
  44. 0.1 New versions of this document
  45.  
  46.         New versions of this document will be periodically posted to
  47.         comp.os.linux.announce, comp.answers, and news.answers.  They will
  48.         also be added to the various anonymous ftp sites who archive such
  49.         information including sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  50.  
  51.  
  52. 0.2 Feedback
  53.  
  54.         I am interested in any feedback, positive or negative, regarding
  55.         the content of this document via e-mail.  Definitely contact me if
  56.         you find errors or obvious omissions.
  57.  
  58.         I read, but do not necessarily respond to, all e-mail I receive.
  59.         Requests for enhancements will be considered and acted upon based on
  60.         that day's combination of available time, merit of the request, and
  61.         daily blood pressure :-)
  62.  
  63.          Flames will quietly go to /dev/null so don't bother.
  64.  
  65.         Feedback concerning the actual format of the document should go to
  66.         the HOWTO coordinator - Matt Welsh (mdw@sunsite.unc.edu).
  67.  
  68.  
  69. 0.3 Other sources of information
  70.  
  71.         USENET:
  72.         =======
  73.         comp.mail.elm           the ELM mail system.
  74.         comp.mail.mh            The Rand Message Handling system.
  75.         comp.mail.mime          Multipurpose Internet Mail Extensions.
  76.         comp.mail.misc          General discussions about computer mail.
  77.         comp.mail.multi-media   Multimedia Mail.
  78.         comp.mail.mush          The Mail User's Shell (MUSH).
  79.         comp.mail.sendmail      the BSD sendmail agent.
  80.         comp.mail.uucp          Mail in the uucp environment.
  81.  
  82.  
  83.         Mailing Lists:
  84.         ==============
  85.  
  86.         There is a smail-3.1 mailing list.  
  87.  
  88.         To join (or get off) the list, send mail to
  89.                 smail3-users-request@cs.athabascau.ca
  90.  
  91.         make sure that you include the address at which you want to receive
  92.         mail in the text of the message.
  93.  
  94.         To send a message to the list, send it to
  95.                 smail3-users@cs.athabascau.ca.
  96.  
  97.         Books:
  98.         ======
  99.  
  100.         The following is a non-inclusive set of books that will help...
  101.  
  102.         'Managing UUCP and USENET' from O'Reilly and Associates is in my
  103.         opinion the best book out there for figuring out the programs and
  104.         protocols involved in being a USENET site.
  105.  
  106.         'Unix Communications' from The Waite Group contains a nice
  107.         description of all the pieces (and more) and how they fit together.
  108.  
  109.  
  110. 0.4 Where *NOT* to look for help
  111.  
  112.         There is nothing 'special' about configuring and running mail under
  113.         Linux (any more).  Accordingly, you almost certainly do *NOT* want
  114.         to be posting generic mail-related questions to the comp.os.linux.*
  115.         newsgroups.
  116.  
  117.         Unless your posting is truly Linux-specific (ie, "please tell me
  118.         what routers are already compiled into the SLS1.03 version of
  119.         smail3.1.28") you should be asking your questions in one of the
  120.         newsgroups or mailing lists referenced above.
  121.  
  122.  
  123. 1.0 Hardware Requirements
  124.  
  125.         There are no specific hardware requirements for mail under Linux.
  126.  
  127.         You'll need some sort of 'transport' software to connect to remote
  128.         systems, which means either tcp-ip or uucp.   This could mean that
  129.         you need a modem or ethernet card (depending on your setup).
  130.  
  131.  
  132. 2.0 Getting the software
  133.  
  134.         In general, I grab my sources from ftp.uu.net and the other fine
  135.         archive sites on Internet.  In addition, Linux-specific binary ports
  136.         are found in the SLS distrbution and on the usual Linux anonymous
  137.         ftp sites (sunsite.unc.edu and tsx-11.mit.edu in particular).
  138.  
  139.         The newspak-1.7.tar.z distribution contains config files and readme
  140.         files related to building uucp, news, and mail software under Linux
  141.         from the various freely-available sources.  It can usually be found 
  142.         on sunsite.unc.edu in the directory /pub/Linux/system/Mail.
  143.  
  144.  
  145. 3.0 Mail 'Transport Agents'
  146.  
  147.         This section contains information related to 'transport agents',
  148.         which means the underlying software that connects your local system
  149.         to remote systems.
  150.  
  151.  
  152. 3.1 Smail v3.1
  153.  
  154.         Smail3.1 seems to be a de-facto standard transport agent for uucp-only
  155.         sites and for some smtp sites.  It compiles without patching from
  156.         the sources.  In addition, smail is provided in binary form in the
  157.         SLS distribution of Linux.
  158.  
  159.         The newspak distribution contains config files for smail3.1.28 under
  160.         Linux that you can use to start with.
  161.         
  162.         If you're building smail from sources, you need to have
  163.         CASE_NO_NEWLINES=true in your os/linux file.
  164.         
  165.         For a uucp-only system that has a MX-record and that wants a
  166.         domainized header (who goes through a smart-host for everything),
  167.         these are the entire config files you'll need:
  168.  
  169.         replace 'subdomain.domain' with your domain name
  170.         replace 'myhostname' with you un-domainized hostname
  171.         replace 'my_uucp_neighbor' with the uucp name of your upstream site
  172.  
  173.         #-------- /usr/local/lib/smail/config -----------------
  174.         #
  175.         # domains we belong to
  176.         visible_domain=subdomain.domain:uucp
  177.         #
  178.         # who we're known as (fully-qualified-site-name)
  179.         visible_name=myhostname.subdomain.domain
  180.         #
  181.         # who we go through
  182.         smart_path=my_uucp_neighbor
  183.         #
  184.         #---------- /usr/local/lib/smail/paths --------------
  185.         #
  186.         # we're a domainized site, make sure we accept mail to both names
  187.         myhostname        %s
  188.         myhostname.subdomain.domain      %s
  189.         #-------------------------------------------------------------------
  190.  
  191.         To run smail as a smtp daemon, add the following to /etc/inetd.conf:
  192.                 smtp stream tcp nowait  root  /usr/bin/smtpd smtpd
  193.  
  194.         Outgoing mail gets sent automatically, when using elm. If your
  195.         internet link is down when you send mail, then the mail sits in 
  196.         '/usr/spool/smail/input'. When the link next comes up, 'runq' is
  197.         run which causes the mail to be sent.
  198.  
  199.  
  200. 3.2 Sendmail+IDA
  201.  
  202.         There is a nice binary distribution of sendmail5.65c+IDA on sunsite
  203.         in pub/Linux/system/Mail that I highly recommend.  I run a uucp-only
  204.         site and use sendmail5.65c+IDA instead of smail3.1.28 due to the
  205.         incredible ease of use.
  206.  
  207.    To install it...
  208.         - you'll probably want to remove (or rename) all the files from
  209.                 smail (see the /install/installed directory if you are SLS)
  210.                 to be safe.
  211.         - cd to / then 'gunzip -c sendmail5.65c+IDA.tpz | tar xvf -'
  212.         - cd to /usr/local/src/sendmail5.65c+IDA/ida/cf and copy the example
  213.                 local.m4 file to 'yourhostname.m4'.  Edit out the distributed
  214.                 hostname, aliases, and smarthost and put in the correct one
  215.                 for your site.  The default file is for a uucp-only site
  216.                 who has domainized headers.  Then 'make yourhostname.cf'
  217.                 and move the resulting file to /etc/sendmail.cf
  218.         - if you are uucp-only, you do *NOT* need to create any of the 
  219.                 tables mentioned in the README.linux file.  Just edit
  220.                 the .m4 file, make sendmail.cf, and start testing it.
  221.         - if you're uucp-only and you talk to sites in addition to your
  222.                 'smart-host', you'll need to add uucpxtable entries for
  223.                 each (or mail to them will also go through the smart host)
  224.                 and run dbm against the revised uucpxtable.
  225.         - if you change your .cf file, be sure to refreeze your config
  226.                 with /usr/lib/sendmail -bz to make the changes take effect.
  227.  
  228.         Another nice thing is that if you have mail.debug set and you
  229.         run syslogd, your incoming and outgoing mail messages will get 
  230.         logged.  See the /etc/syslog.conf file for details.
  231.  
  232.         
  233. 3.3 Other 'transport agents'
  234.  
  235.         The following also are known to run under Linux.  Consult
  236.         'archie' for details regarding how to find them...
  237.  
  238.                 smail2.5 - very simple UUCP-based smail
  239.                 sendmail8.5 - the newest non-IDA sendmail from Berkeley
  240.  
  241.  
  242. 4.0 Mail 'User Agents'
  243.         
  244.         This section contains information related to 'user agents', which
  245.         means the software the user sees and uses.  This software relies on
  246.         the 'transport agents' mentioned above.
  247.  
  248.  
  249. 4.1 Elm
  250.  
  251.         Elm compiles, installs, and runs flawlessly under Linux.  For more
  252.         information, see the elm sources and installation instructions.
  253.  
  254.         The only thing to know is that Elm's Configure script incorrectly
  255.         sets the 'ranlib' variable in config.sh.  When Configure gives you
  256.         the chance to edit config.sh before proceeding, please do so and
  257.         set "ranlib='ranlib'" or the binaries will compile but not link.
  258.  
  259.         Elm and filter need to be mode 2755 (group mail) with
  260.         /usr/spool/mail mode 775 and group mail.
  261.  
  262.         If you use a binary distribution like the one in SLS, you'll need
  263.         to create a /usr/local/lib/elm/elm.rc file to override the compiled-in
  264.         hostname and domain information:
  265.         
  266.         replace 'subdomain.domain' with your domain name
  267.         replace 'myhostname' with you un-domainized hostname
  268.         replace 'my_uucp_neighbor' with the uucp name of your upstream site
  269.  
  270.         #---------- /usr/local/lib/elm/elm.rc ------------------
  271.         #
  272.         # this is the unqualified hostname
  273.         hostname = myhostname
  274.         #
  275.         # this is the local domain
  276.         hostdomain = subdomain.domain
  277.         #
  278.         # this is the fully qualified hostname
  279.         hostfullname = myhostname.subdomain.domain
  280.         #
  281.         #--------------------------------------------------------
  282.  
  283.         One thing you want to be aware of is that if you have Elm compiled
  284.         to be MIME-able, you need metamail installed and in your path or
  285.         Elm will not be able to read MIME mail you've received.
  286.  
  287.  
  288. 4.2 Mailx
  289.  
  290.         There is a fine binary implementation of mailx located on the various
  291.         Linux archive sites.  Make sure you grab version 5.3b or later since
  292.         there are security problems in v5.3a.
  293.  
  294.         The only potential problem I'm aware of is that it seems to be
  295.         compiled in a way that requires /usr/lib/smail rather than
  296.         /usr/lib/sendmail as a transport agent.  You probably need a link
  297.         if you run sendmail on your system.
  298.  
  299.         I strongly recommend removing the old 'edmail' stuff from SLS
  300.         and replacing it with mailx.  This is rumored to be done already
  301.         in the current SLS.
  302.  
  303.  
  304. 4.3 Other user agents
  305.  
  306.         The following also are known to run under Linux.  Consult
  307.         'archie' for details regarding how to find them...
  308.  
  309.         Pine      - from the Univ. of Washington
  310.         Metamail  - allows MIME support
  311.         mh        - yet another way to handle mail
  312.         deliver   - file/process mail based on rules 
  313.         procmail  - file/process mail based on rules
  314.         Majordomo - manages e-mail lists
  315.         Mserv     - provide files-by-mail
  316.         
  317.  
  318. 5.0 Acknowledgements
  319.  
  320.         The following people have helped in the assembly of the information
  321.         (and experience) that helped make this document possible:
  322.  
  323.                 Steve Robbins, Ian Kluft, Rich Braun, Ian Jackson, 
  324.                 Syd Weinstein, Ralf Sauther, Martin White, Matt Welsh
  325.  
  326.         If I forgot anybody, my apologies...
  327.  
  328.  
  329. -- 
  330. Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
  331.