home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 3 / Meeting_Pearls_III.iso / Pearls / tcp / Networking / TCP / Mail / SMTPd / doc / smtpd.doc
Text File  |  1994-02-06  |  2KB  |  70 lines

  1. NAME
  2.      in.smtpd - SMTP (Simple Mail Transfer Protocol) daemon
  3.  
  4. SYNOPSIS
  5.      in.smtpd LOGFILE=LOG/K,RMAIL=RECEIVE/K
  6.  
  7. DESCRIPTION
  8.      SMTP is a simple message protocol, for transmitting EMail and other
  9.      simple messages.
  10.  
  11.      smtpd is started by inetd when it receives a TCP connection request
  12.      at port 25.  Once connected it reads command lines and text. smtpd
  13.      closes its connections as on receipt of a QUIT command.
  14.  
  15.      Mail items are passed on to their ultimate recipient using the rmail
  16.      command. The rmail command must therefore be in the path. smtpd
  17.      invokes rmail in the following way:
  18.  
  19.          rmail <mail-item recipient
  20.  
  21.      where mail-item is a temporary file holding the mail item, and
  22.      recipient is the ID of the recipient. RMail can be replaced by a 
  23.      mail receiver of your choice using the RMAIL parameter. The value of
  24.      the parameter should be of the form "MyReceive %s %s". The first
  25.      %s will be replaced by the name of the file containing the mail item,
  26.      the second by the recipient.
  27.  
  28.      If a logfile is specified, then SMTPD will copy all incoming mail
  29.      to that file.
  30.  
  31. INSTALLATION
  32.      Copy in.smtpd into AmiTCP:serv/
  33.  
  34.      Add the following line to AmiTCP:db/inetd.conf:
  35.  
  36. smtp      stream      tcp nowait root amitcp:serv/in.smtpd
  37.  
  38.      Ensure that rmail will be your path.
  39.  
  40.      Ensure that the environment variable HostName is set to the fully
  41.      qualified name of your machine (eg myhost.myco.com). This is setup
  42.      automatically in a standard AmiTCP installation.
  43.  
  44.      To specify a log file or alternative to rmail, a line of the following
  45.      form is needed in inetd.conf:
  46.  
  47. smtp      stream      tcp nowait root amitcp:serv/in.smtpd smtpd "parms"
  48.  
  49.      where parms is the options you require. Note that any double quotes in
  50.      the parameters will need to be escaped using the standard AmigaDOS
  51.      escape character (*). A sample might be:
  52.  
  53.      "LOG uumail:incoming.log RMAIL *"MyReceive %s %s*""
  54.  
  55. SEE ALSO
  56.      mail RFC821 rmail
  57.  
  58. BUGS
  59.      AmigaElm also uses the environment variable HostName, for a different
  60.      purpose...
  61.  
  62. HISTORY
  63.      
  64. Version 1.87
  65. Timeouts sorted out (set at 3 minutes)
  66. Improved logging
  67.  
  68. CONTACT
  69.      Graham Walter - gwalter@gwalter.demon.co.uk
  70.