home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / comm / mail / smail / src / rcs / smail.txt,v < prev    next >
Text File  |  1993-12-21  |  91KB  |  2,656 lines

  1. head    1.10;
  2. access;
  3. symbols
  4.     C_1:1.10;
  5. locks; strict;
  6. comment    @# @;
  7.  
  8.  
  9. 1.10
  10. date    93.11.16.23.52.00;    author Aussem;    state Exp;
  11. branches;
  12. next    1.9;
  13.  
  14. 1.9
  15. date    93.11.13.14.32.51;    author Aussem;    state Exp;
  16. branches;
  17. next    1.8;
  18.  
  19. 1.8
  20. date    93.11.09.22.45.45;    author Aussem;    state Exp;
  21. branches;
  22. next    1.7;
  23.  
  24. 1.7
  25. date    93.10.23.22.48.19;    author Aussem;    state Exp;
  26. branches;
  27. next    1.6;
  28.  
  29. 1.6
  30. date    93.10.23.22.24.54;    author Aussem;    state Exp;
  31. branches;
  32. next    1.5;
  33.  
  34. 1.5
  35. date    93.10.16.14.55.54;    author Aussem;    state Exp;
  36. branches;
  37. next    1.4;
  38.  
  39. 1.4
  40. date    93.10.11.22.14.29;    author Aussem;    state Exp;
  41. branches;
  42. next    1.3;
  43.  
  44. 1.3
  45. date    93.10.10.20.00.36;    author Aussem;    state Exp;
  46. branches;
  47. next    1.2;
  48.  
  49. 1.2
  50. date    93.09.29.13.25.00;    author Aussem;    state Exp;
  51. branches;
  52. next    1.1;
  53.  
  54. 1.1
  55. date    93.09.25.22.47.05;    author Aussem;    state Exp;
  56. branches;
  57. next    ;
  58.  
  59.  
  60. desc
  61. @Textmodul for smail.guide
  62. @
  63.  
  64.  
  65. 1.10
  66. log
  67. @*** empty log message ***
  68. @
  69. text
  70. @Document Smail
  71.  
  72.                     @@{u}@@{fg shine}Smail, rmail - a UUCP mailer@@{fg text}@@{uu}
  73.  
  74. 0. Features
  75. ------------
  76.  
  77.           o complete substitution for Dillons sendmail
  78.  
  79.           o using paths file for UUCP routing
  80.  
  81.           o re-routing of addresses according to the paths file
  82.  
  83.           o mail forwarding for users (~/.forward and uumail:<user>)
  84.  
  85.           o compatible parameters with Dillon's sendmail
  86.             (except -raw)
  87.  
  88.           o Return-To-Receipt recognition
  89.  
  90.           o returning undeliverable mails to sender and postmaster
  91.             of your host
  92.  
  93.           o support of the standard Getty, MultiUserFileSystem and
  94.             AXSh passwd files
  95.  
  96.           o smarthost option if your map files are not perfect :-)
  97.  
  98.           o easy setup of a mailing list via alias include files
  99.  
  100.           o extended log files
  101.  
  102.           o accepts the following addresses
  103.               - bang paths (e.g host1!host2!user)
  104.               - @@ addresses (e.g user@@host1)
  105.               - user%site%site.domain@@domain
  106.               - domain!site.domain%site%user
  107.  
  108.           o BSMTP (Batch Simple Mail Transport Protocol)
  109.  
  110.           o call uux (instead of writing directly in uuspool)
  111.  
  112.           o Checking local users permission to send mail
  113.             via UUCP/BSMTP
  114.  
  115.           o source files available
  116.  
  117.           o docs in AmigaGuide format
  118.  
  119.           o Installer script
  120.  
  121.           o only runs with OS2.0 or higher
  122.  
  123. 1. Introduction
  124. ---------------
  125.  
  126.           The  Smail/rmail  program replaces Dillons sendmail to become
  127.           the  UUCP mail transport mechanism.  rmail receives mail from
  128.           UUCP, Smail introduces mail into UUCP.
  129.  
  130.           Smail/rmail  can  work  with  or without sendmail, or another
  131.           intelligent   mail   system.    For  hosts  with  just  mail,
  132.           Smail/rmail  subsumes  some of the functions of sendmail, and
  133.           hands only local mail to the `Local Mailer'.
  134.  
  135.           To  varying  degrees,  Smail/rmail  automatically  routes the
  136.           addresses it processes.  Smail/rmail most often routes domain
  137.           style  addresses  (i.e.   user@@domain), producing a UUCP path
  138.           (i.e.   host!address)  or a local address (i.e.  user) but it
  139.           can also re-route explicit UUCP paths.
  140.  
  141. 2. Installation
  142. ---------------
  143.  
  144.              @@{u}@@{fg shine}Please use the Installer script !!!@@{fg text}@@{uu}
  145.  
  146.  
  147.           If this doesn't work do the following things:
  148.  
  149.           1.) Copy
  150.  
  151.              Smail       ->  uucp:c/sendmail
  152.              Smail       ->  uucp:c/rmail
  153.              mail        ->  uucp:c/mail
  154.  
  155.             or for the AXSh Version
  156.  
  157.              Smail_axsh  ->  uucp:c/sendmail
  158.              Smail_axsh  ->  uucp:c/rmail
  159.              mail_axsh   ->  uucp:c/mail
  160.  
  161.             or for the MUFS Version
  162.  
  163.              Smail_mufs  ->  uucp:c/sendmail
  164.              Smail_mufs  ->  uucp:c/rmail
  165.              mail_mufs   ->  uucp:c/mail
  166.  
  167.  
  168.           2) Edit the `Config options' of Smail in "uulib:config."
  169.  
  170.           3) Make a directory "Mail" in "uulib:"
  171.  
  172.           4)  If you want to use `Aliases' edit "uulib:mail/aliases".  If
  173.               you  have already an alias file from Dillons sendmail, just
  174.               copy  it  to  "uulib:mail/aliases"  or  edit the SMAlias in
  175.               "uulib:config".
  176.  
  177.           5)  If you are using a different NAME for sendmail/rmail than
  178.               "sendmail"/"rmail"  (e.g  Smail  or Smail -r) you have to
  179.               insert a Sendmail/Rmail Entry in "uulib:config".  This is
  180.               necessary if Smail cannot deliver a mail or Smail found a
  181.               "Return-To-Receipt  Header".   In either case Smail calls
  182.               the sendmail program to deliver the mails.
  183.  
  184.           6)  Setup  a  path  file  (if you want to use this option)
  185.               (see `Setup a path file')
  186.  
  187.           7)  Setup BSMTP stuff (if you want to use this option)
  188.               (see `BSMTP setup')
  189.  
  190.  
  191. 2.1. Different Smail programs
  192. -----------------------------
  193.  
  194.           o Getty
  195.             List all your site's users in getty:passwd.  The real name must
  196.             be  entered  in  the  comment field.  You only need this if you
  197.             don't  usr the ENV:  variable called "REALNAME".  Besides Smail
  198.             takes the home-directory for `Mail forwarding' from the getty's
  199.             passwd.
  200.  
  201.           o AXSh
  202.             These programs use the AXSh passwd instead of Getty's passwd.
  203.  
  204.           o MUFS
  205.             These programs use the MUFS passwd instead of Getty's passwd.
  206.  
  207. 2.3. Setup a path file
  208. ----------------------
  209.  
  210.           Convert  your paths file (generated by pathalias -f) to Smail
  211.           format  using  "convert"  and  "(q)sort".  For the CShell the
  212.           command line is:
  213.  
  214.           pathalias -f <maps |convert|qsort >uulib:mail/paths
  215.  
  216.           For  receivers  that  are  not  in  your maps data (nobody is
  217.           perfect)  setup  SM`Smarthost'  in "uulib:config".  This host
  218.           receives  all  mails  for  receivers  that  are not listed in
  219.           "uulib:mail/paths".
  220.  
  221.           @@{fg fill}Attention!!!@@{fg text}
  222.           Use the following syntax for your maps:
  223.  
  224.           ----------------- snip ---------------------------
  225.           host.with.domain=host
  226.           yourhost host(DAILY+FAST)
  227.           ----------------- snap ---------------------------
  228.  
  229.           NOT
  230.  
  231.           ----------------- snip ---------------------------
  232.           host=host.with.domain
  233.           yourhost host.with.domain(DAILY+FAST)
  234.           ----------------- snap ---------------------------
  235.  
  236.           If you don't have real maps use demo_maps/demo_paths.
  237.           You must change
  238.  
  239.           mavhh              -> your_site_without_domain
  240.           mavhh.hanse.de     -> your_site_with_domain
  241.           torfhh             -> 1.site_you_call_without_domain
  242.           torfhh.hanse.de    -> 1.site_you_call_with_domain
  243.           wolfhh             -> 2.site_you_call_without_domain
  244.           wolfhh.hanse.de    -> 2.site_you_call_with_domain
  245.  
  246.           @@{fg fill}Attention!!!@@{fg text}
  247.           Don't forget to sort the path file.
  248.  
  249. 2.4. Don't use paths-files
  250. --------------------------
  251.  
  252.           Insert  SM`Smarthost'  your_smart_host in your "uulib:config"
  253.           file.  The smarthost is the host receiving all your mail.
  254.  
  255. 2.5. BSMTP setup
  256. ----------------
  257.  
  258.           Copy
  259.                Smail        ->   uucp:c/rsmtp
  260.                Smail        ->   uucp:c/rcsmtp
  261.                Smail        ->   uucp:c/rfsmtp
  262.                batch_smtp   ->   uucp:c/batch_smtp
  263.  
  264.           Setup  the SMCompress, SMBsmtpCmd, SMBsmtpSites, Compress and
  265.           Freeze Keywords in "uulib:config".
  266.  
  267.           Add  every  host  that  should  receive  mails  via  BSMTP to
  268.           "uulib:mail/bsmtp_sites".
  269.  
  270.           Read the `BSMTP' section.
  271.  
  272. 3. Usage
  273. ---------
  274.  
  275.           Smail [ `Options' ] address ...
  276.           rmail [ `Options' ] address ...
  277.  
  278.  
  279.           -A Print the resolved addresses.  DON'T collect a message or
  280.              invoke a mailer (e.g.  for address resolving in scripts)
  281.  
  282.           -d Be verbose and DON'T invoke other mailers.
  283.  
  284.           -v Be verbose but still invoke other mailers.
  285.  
  286.           -h hostname
  287.                Set hostname.  You may alternatively set this via the 
  288.                `Config options' in "uulib:config", too.
  289.  
  290.           -H hostdomain
  291.                Set hostdomain. You may alternatively set this via the 
  292.                `Config options' in "uulib:config", too.
  293.  
  294.           -f address
  295.                Use address on the "From:" line in locally generated
  296.                mail.
  297.  
  298.           -p pathfile
  299.                Set path database file name if not "uulib:mail/paths"
  300.                You may even set this via the `Config options' in 
  301.                "uulib:config".
  302.  
  303.           -a aliasfile
  304.                Set alias file name if not "uulib:mail/aliases"
  305.                You may even set this via the `Config options' in 
  306.                "uulib:config".
  307.  
  308.           -n namelist
  309.                Smail  supports  another  type  of aliasing intended for
  310.                full  name  resolution  using a sorted file, namelist or
  311.                name/address     pairs.     This    allows    mail    to
  312.                George.P.Burdell@@gatech.edu      to     be     delivered
  313.                appropriately.   These aliases are by nature very simple
  314.                since  they are not composed of long lists of recipients
  315.                for  each  alias.   They are also numerous since mail to
  316.                George.P.Burdell may be addressed to Burdell, G.Burdell,
  317.                George.Burdell,      P.Burdell,      G.P.Burdell,     or
  318.                George.P.Burdell.   This  simpler  form of aliasing uses
  319.                the  same  fast searching algorithm that is used for the
  320.                paths  file,  so it keeps resolution time manageable.You
  321.                may   even   set   this  via  the  `Config  options'  in
  322.                "uulib:config", too.
  323.  
  324.        @@{fg fill}Attention!!!@@{fg text}
  325.           On AmigaUUCP you normally don't find a uux with queueing.
  326.           So the next three options (-q -m -u) are mostly useless.
  327.  
  328.           -q number
  329.                Take  number  as the queueing threshold.  When routing a
  330.                mail  (  -o,  -O,  or domain addressed mail ) to a given
  331.                host  and  the  costs  listed in the paths file are less
  332.                than  the  queueing  threshold  the  mail  will  be sent
  333.                immediately.   This  overrides  the default threshold of
  334.                300.
  335.  
  336.           -m number
  337.                Most  number  jobs  will  be handed to uux for immediate
  338.                delivery by a single invocation of Smail (default 2)
  339.  
  340.           -u uuxflags
  341.                Use uuxflags as the flags passed to uux for remote mail.
  342.                This  overrides  any  of  the  default  values and other
  343.                queueing strategies.
  344.  
  345.           -M If Smail fails to deliver the mail don't send this back to
  346.              the sender.
  347.  
  348.           -C Consult the paths file for the cost of the path even
  349.              when not routing the mail.  This makes it possible to
  350.              use the cost information when sending pure UUCP path
  351.              mail without re-routing it.
  352.  
  353.           -o Route the first component of a UUCP path (host!address) in
  354.              addition  to  routing  domain addresses (user@@domain) (see
  355.              `Routing') Deactivate re-routing !
  356.  
  357.  
  358.           -O Re-route UUCP paths, trying successively larger righthand
  359.              substrings of a path until a component is recognized (see
  360.              `Routing').  Activate re-routing !
  361.  
  362.           -r Running  Smail  in  rmail mode.  In this mode Smail/rmail
  363.              does not search for for addresses (to send the mail to)in
  364.              the  mail file, but ONLY takes the addresses from command
  365.              line (see `RMail mode').
  366.  
  367.           -l Instead of routing a domain address send it to the local
  368.              mailer  for processing.  Normally, only local addresses go
  369.              to the local mailer.
  370.  
  371.           -L Send  all  addresses  to the local mailer for processing,
  372.              including  UUCP paths.  This options is used, if you want
  373.              Smail  ONLY to resolve the address and NOT to deliver the
  374.              mail.
  375.  
  376.           -B Send  the  mail to EVERY receiver via BSMTP (Batch Simple
  377.              Mail  Transport Protocol) !  If you want to send only to
  378.              some     receivers/hosts     via     BSMTP     use    the
  379.              "uulib:mail/bsmtp_sites" file (see `BSMTP').
  380.  
  381.           -c address
  382.              Use address on the "Cc:" line in locally generated mail.
  383.  
  384.           -b address
  385.              Use address on the "Bcc:" line in locally generated mail.
  386.  
  387.           -t address
  388.              Use address on the "To:" line in locally generated mail.
  389.  
  390.           -F file
  391.              Use file as input for the locally mail.
  392.                @@{fg fill}Attention!!!@@{fg text}
  393.                Your filename has to start with t:.  Otherwise use <file.
  394.  
  395.           -s text
  396.              Use text on the "Subject:" line in locally generated mail.
  397.  
  398.           -R text
  399.              Use text as real name in locally generated mail.
  400.  
  401.           The -l flag causes rmail to pass all domain addresses through
  402.           to  the  local  mailer  to  process  addresses  for  non UUCP
  403.           domains.  The -L flag causes rmail to pass even explicit UUCP
  404.           paths  through to the local mailer, presumably to make use of
  405.           other  transport  mechanisms.  In both cases rmail defers any
  406.           routing until Smail gets hold of it.
  407.  
  408. 5. Address
  409. ----------
  410.  
  411.  
  412. 5.1. Addresses accepted
  413. ------------------------
  414.  
  415.           Smail/rmail  understands  "user%site%site.domain@@domain"  and
  416.           "user@@domain"  to  be  a  domain  address, "host!address" and
  417.           "domain!site.domain%site%user" to be a UUCP path and anything
  418.           else to be a local address.
  419.  
  420.           Because   hostile   rmail's   unpredictably  interpret  mixed
  421.           UUCP/domain  addresses, Smail/rmail understands "domain!user"
  422.           to  be a domain address and generates "path!domain!user" when
  423.           mailing to a cognate Smail/rmail host.  To distinguish domain
  424.           "domain!user"  from  UUCP "host!address" "domain" contains at
  425.           least one (1) period.  Smail/rmail gives precedence to @@ over
  426.           !   when  parsing  mixed  addresses,  thus a!b@@c is parsed as
  427.           (a!b)@@c, rather than a!(b@@c).
  428.  
  429. 5.2. Routing
  430. ------------
  431.  
  432.           Because  Smail/rmail  is  the UUCP transport mechanism it can
  433.           only  effect  delivery  on  UUCP  paths  and local addresses;
  434.           domain  addresses require resolution into UUCP paths or local
  435.           addresses.   To  resolve a domain address Smail/rmail finds a
  436.           route  to  the most specific part of the domain specification
  437.           listed  in  the routing table.  Two degrees of resolution can
  438.           occur:
  439.  
  440.                Full  resolution:   Smail/rmail  finds  a  route for the
  441.                entire   domain   specification,   and  tacks  the  user
  442.                specification  onto  the  end  of  the  UUCP  path.  The
  443.                address  can  also  fully  resolved into a local address
  444.                (the UUCP path is null).
  445.  
  446.                Partial  resolution:  Smail/rmail finds a route for only
  447.                righthand  part  of the domain specification so it tacks
  448.                the  complete address (in the form domain!user) onto the
  449.                end  of  the UUCP path.  Since this syntax is not widely
  450.                understood  UUCP  gateways  listed  in the path database
  451.                must install new UUCP software either Smail/rmail or new
  452.                sendmail configuration files (or both).
  453.  
  454.           If partially resolved address routes to the local host (means
  455.           having a null UUCP path) it's treated as an error.  According
  456.           to  the routing table the local host takes the responsibility
  457.           for parsing the address correctly.
  458.  
  459. 5.3. Re-routing
  460. ---------------
  461.  
  462.           The  -o  flag  makes  Smail/rmail  attempt to route the first
  463.           component of a UUCP path, probably to impress people with how
  464.           many  UUCP  hosts  it  knows.   If  this  fails  it sends the
  465.           unrouted  address  to  the  `Smarthost'.
  466.           The  -O flag makes Smail/rmail take a UUCP path and route the
  467.           rightmost  component  of  it (saving the user name).  This is
  468.           implemented for hosts having very up-to-date routing tables.
  469.  
  470.           If  a  route  cannot  be discerned from the available routing
  471.           database  an  additional attempt to route the mail is made by
  472.           searching  for  an entry in the database containing the route
  473.           to  a  `Smarthost'.   If  this  entry exists the mail will be
  474.           forwarded using that route.  This allows a host to depend on
  475.           another  (presumably  better  informed)  host  to deliver its
  476.           mail.   This  kind  of  arrangement should be worked out - in
  477.           advance - with the smart host's administrator.
  478.  
  479.           After  Smail/rmail  resolves an address it reparses it to see
  480.           if  it  is  now  a  UUCP  path  or local address.  If the new
  481.           address   turns  out  to  be  another  domain  address  Smail
  482.           complains as it doesn't like to resolve more than once.  This
  483.           error  occurs  when  an  address partially resolves the local
  484.           host.
  485.  
  486.           By  default  Smail won't alter the explicit bang path routing
  487.           of  any mail message.  If the stated path is unuseable, (i.e.
  488.           the  next  hop  host is unknown) then Smail will ALWAYS apply
  489.           routing  and attempt to deliver the mail to the potential new
  490.           address.   If  either  this  fails  REROUTE  routing  will be
  491.           applied  to  the  address  and  another attempt to deliver is
  492.           made.  Finally an attempt to find a path to a better informed
  493.           host (see `Smarthost') will be made and the mail is passed to
  494.           that  host.   If  there  is  no path file Smail will call uux
  495.           directly  with  the  smarthost  as  host.  So you must have a
  496.           entry for your smarthost in "uulib:l.sys".
  497.  
  498. 5.4. Fromming
  499. -------------
  500.  
  501.           Smail/rmail  improves  "From_" and ">From_" lines to a simple
  502.           from argument, which it can pass to sendmail or use to create
  503.           its  own "From" line.  The rule for fromming is:  concatenate
  504.           each "remote from" host (separating them by "!"'s), and tack
  505.           on  the  address on the last "From_" line; if that address is
  506.           in  user@@domain format rewrite it as domain!user; ignore host
  507.           or  domain  if  either is simply the local hostname.  It also
  508.           removes  redundant  information  from  the "From_" line.  For
  509.           instance:
  510.  
  511.                          ...!myhost!myhost.mydomain!...
  512.  
  513.           becomes
  514.  
  515.                                  ...!myhost!...
  516.  
  517.           Leading  occurrences  of  the  local  host name are elided as
  518.           well.
  519.  
  520.           Smail/rmail generates it own From_ line, unless it is feeding
  521.           sendmail,  which is happy with the -ffrom argument.  For UUCP
  522.           bound  mail,  Smail/rmail generates a "remote from hostname",
  523.           where hostname is the UUCP hostname (not the domain name), so
  524.           that  From_  can  indicate  a  valid  UUCP  path, leaving the
  525.           sender's domain address in "From:".
  526.  
  527. 6. Miscellaneous
  528. ----------------
  529.  
  530. 6.1. Headers
  531. ------------
  532.  
  533.           Certain  headers, "To:", "From:", "Date:", etc., are required
  534.           by  RFC822.  If these headers are absent in locally generated
  535.           mail,  they will be inserted by Smail.  Also, a line of trace
  536.           information,  called  a "Received:" line, will be inserted at
  537.           the  top  of  each message.  In addition Smail support "Cc:",
  538.           "Bcc:" and `Return-Receipt-To headers':.
  539.  
  540. 6.2. Undeliverable mail
  541. -----------------------
  542.  
  543.           Surely   nobody   likes  his  mail  not  reach  its  intended
  544.           destination  but  it sometimes happens that way.  Mail that is
  545.           found  to  be  undeliverable  (i.e.,  unknown user or unknown
  546.           host)  will  be  returned  to the sender and to postmaster of
  547.           the local host.
  548.  
  549.  
  550. 6.3. Return-Receipt-To headers
  551. ------------------------------
  552.  
  553.           Smail/rmail will send a mail with a copy of the header of the
  554.           original  mail  to the address after the "Return-To-Receipt:"
  555.           Header if the mail is for a user on your site.  You may turn
  556.           this  off  via  the  SMReceipt  keyword in the "uulib:config"
  557.           file.   See `Local Mailer' for the recognition whether a user
  558.           exists on your site.
  559.  
  560.           @@{fg fill}Attention!!!@@{fg text}
  561.           Only  one  Return-Receipt-To:   header  line  and address per
  562.           mails is allowed ! This will be fixed soon.
  563.  
  564.           @@{fg fill}Attention!!!@@{fg text}
  565.           If the Smail/rmail delivers a mail to two or more recipients
  566.           with  one  call of your local mailer and one fails, no return
  567.           mail is send. e.g:
  568.  
  569.           mail testmail user0 user1 user2
  570.  
  571.           Only  the  delivery  to  user1  fails  =>  No receipt mail is
  572.           generated, because the "mail" command fails.
  573.  
  574.  
  575. 6.4. From and Realname
  576. ----------------------
  577.  
  578.           If you send a mail, Smail/rmail looks whether there is
  579.           a) a -f argument and a -R argument
  580.              => take the fromname from -f and the realname from -R
  581.           b) -f argument and no -R argument.
  582.              =>  take the fromname from -f, try to find the fromname in
  583.                  getty:passwd/axsh:etc/passwd  and  take the comment as
  584.                  realname.    If   not   found  look  for  Realname  in
  585.                  "uulib:config".
  586.           c) no -f argument and no -R argument
  587.              => o Getty/AXSh version
  588.                   look  at the local variable USER and REALNAME.  If no
  589.                   REALNAME environment variable exists, try to find USER
  590.                   in  getty:passwd  or  axsh:etc/passwd  and  take  the
  591.                   comment  as realname.  If not found look for RealName
  592.                   in  "uulib:config".   If  no  USER  is found look for
  593.                   UserName in "uulib:config".
  594.                 o MUFS version
  595.                   Determinate  via  MUFS who is the owner of this task.
  596.                   If   this  is  not  possible,  do  the  same  as  the
  597.                   Getty/AXSh version.
  598.  
  599. 6.5. Config options
  600. -------------------
  601.  
  602.           You can configure the following options in "uulib:config"
  603.  
  604.           # react to Return-To-Receipt
  605.           SMReceipt         Yes
  606.           # DUUCP-styled logfile
  607.           SMLogfile         uuspool:Smail.log
  608.           # wCNews styled logfile
  609.           SMMaillogfile     uulib:Mail/logfile
  610.           # evaluate the cost of a mail
  611.           SMGetcost         Yes
  612.           # Record-file (could be nil: # for nologging)
  613.           SMSentlog         t:Smail.sent
  614.           # ascii passwd
  615.           SMPasswd          getty:passwd
  616.           # ascii paths  file (converted and sorted!)
  617.           SMPath            uulib:Mail/paths
  618.           # ascii aliases  file
  619.           SMAlias           uulib:Mail/aliases
  620.           # ascii fullnames file
  621.           SMFullname        uulib:Mail/fullname
  622.           # name of the smarthost
  623.           SMSmarthost       wolfhh
  624.           SMRerouting       1
  625.           #  0 - route C, B, or A (whichever works); set by -O
  626.           #      this means Smail do re-routing
  627.           #  1 - route A always; set by -o
  628.           #      this means Smail do no re-routing
  629.           #  2 - route A if A is a domain
  630.  
  631.           SMHandle          0
  632.           #  0 - handle UUCP and DOMAIN addresses
  633.           #      this means Smail does everything for you
  634.           #  1 - handle UUCP only; set by -l
  635.           #      this means Smail work only for UUCP addresses
  636.           #  2 - all mail is LOCAL; set by -L
  637.           #      this means Smail gives all work to the local mailer
  638.           #      this is useful for using sendmail for the real mail
  639.           #      transport
  640.  
  641.          SMCompress         compress
  642.          # the command to compress your BSMTP mails
  643.          # the command is execute (see `BSMTP')
  644.          #  cmd <infile >outfile
  645.  
  646.          SMBsmtpCmd         rcsmtp
  647.          # the command on the host, that receive your BSMTP
  648.          # mails, to deliver the BSMTP mails (see `BSMTP')
  649.  
  650.          SMBsmtpSites       uulib:mail/bsmtp_sites
  651.          # file in which all BSMTP sites are written down
  652.          # (see `BSMTP')
  653.  
  654.          Compress           sys:c/compress
  655.          Freeze             sys:c/freeze
  656.          # complete path for compress and freeze
  657.  
  658.          SMCheckuser        No
  659.          # check sender permission to send mails via UUCP/BSMTP
  660.  
  661.          SMCheckFile        uulib:mail/checkuser
  662.          # file in which all users are written down
  663.  
  664. 6.6. Command line parsing
  665. -------------------------
  666.  
  667.           If  you  submit a string with spaces for an option (e.g for a
  668.           subject), you have to enclose them into double quotes because
  669.           Smail/rmail use the normal argv[] parsing routines.
  670.  
  671.           Example:
  672.  
  673.           Wrong:
  674.           Smail <mail -s this is a nice subject ...
  675.           Right:
  676.           Smail <mail -s "this is a nice subject" ...
  677.  
  678.           If  you  want  to  enclose  double  quotes themselves in your
  679.           subject you have to stuff the double quotes.
  680.           in the CShell:
  681.           Smail <mail -s "this is a nice *\"subject*\"" ...
  682.           in C= shell:
  683.           Smail <mail -s "this is a nice *"subject*"" ...
  684.  
  685. 6.7. Smarthost
  686. --------------
  687.  
  688.           If  Smail/rmail  can't  resolve  a  path to the receiver of a
  689.           mail,  Smail/rmail will try to sent this mail to a smarthost.
  690.           You  must  label the name of the smarthost in "uulib:config"
  691.           with  the keyword SMSmarthost.  Normally Smail/rmail tries
  692.           to  resolve  the  path  to  the  smarthost.   If  this is not
  693.           possible  (e.g you don't have a paths file) Smail/rmail will
  694.           call uux directly.
  695.  
  696. 6.8. Logfiles
  697. --------------
  698.  
  699.           SMSentlog  will backup the complete mail and a little header
  700.           with the sender and the maillength
  701.  
  702.           SMLogfile will write logmessages in the DUUCP logfile format
  703.           e.g:
  704.           (09/07-18:30:10) Smail,-,- cmd: "mail T:03 aussem" from wolfhh!chris
  705.  
  706.           SMMaillogfile writes a logfile in wCNews style
  707.           e.g:
  708.           Sep 10 20:05:37: + 'aussem' 'wolfhh!tester' 1354 bytes
  709.  
  710.           If  you  want  to  disable  a  log  file  set  the  entry  in
  711.           "uulib:config" to nil:.
  712.  
  713. 6.9. RMail mode
  714. ----------------
  715.  
  716.           If  Smail  is  called  with  the  program name (argv[0] for C
  717.           programmers) rmail, Smail/rmail switch to the rmail mode (the
  718.           same as if you start Smail -r ...).  In this mode Smail/rmail
  719.           does not parse the mail body (e.g.  for receiver or sender of
  720.           the mail).
  721.  
  722.           If  Smail  is  called  with  the  program name (argv[0] for C
  723.           programmers) rsmtp or rcsmtp or rfsmtp, Smail/rmail switch to
  724.           the  rmail and the BSMTP mode (the same as if you start Smail
  725.           -Br  ...).  Smail/rmail will try to extract the BSMTP message
  726.           and deliver this with rmail command.
  727.  
  728. 6.10. Check user
  729. ----------------
  730.  
  731.           Smail/rmail can check the permission, whether a local user is
  732.           really  allowed  to  send a mail via UUCP/BSMTP.  To activate
  733.           this  option  just  turn  the SMCheckuser Option to "Yes" and
  734.           setup who is allowed to mail via UUCP/BSMTP.
  735.  
  736.           The setup depends on the Smail/rmail version:
  737.  
  738.           o AXSh/Getty version
  739.             All   users   that   are  written  down  line  by  line  in
  740.             "uulib:mail/checkuser"  (see  SMCheckuser  and SMCheckFile)
  741.             are allowed to send mails via UUCP/BSMTP.
  742.  
  743.           o MUFS version
  744.             All  users  that  are  in group "mail", are allowed to send
  745.             mails  via  UUCP/BSMTP.   Additionally  all  users that are
  746.             written  down  line  by line in "uulib:mail/checkuser" (see
  747.             SMCheckuser  and SMCheckFile) are allowed to send mails via
  748.             UUCP/BSMTP.
  749.  
  750.           @@{fg fill}Attention!!!@@{fg text}
  751.           Only the mails from @@{b}local@@{bu} users are checked and the
  752.           usernames in the checkuser file are case insensitive.
  753.  
  754.  
  755. 6.11. Local Mailer
  756. ------------------
  757.           If Smail/rmail delivers a local mail it calls the local mail
  758.           program with the following syntax:
  759.  
  760.           mail mail-file address0 .. addressN-1
  761.  
  762.           Smail comes with three versions of mail:
  763.  
  764.           o  mail_axsh uses the AXSh passwd file to determinate whether
  765.              a user exists
  766.  
  767.           o  mail_mufs uses the MUFS passwd file to determinate whether
  768.              a user exists
  769.  
  770.           o  mail  uses  uumail:   mail folder to determinate whether a
  771.              user  exists.   If no mail-folder exists the user does not
  772.              exists.
  773.  
  774.          If  you  want to deliver a mail to a non existing user set the
  775.          environment variable MAILTONOEXIST.
  776.  
  777. 6.12. BSMTP
  778. -----------
  779.          BSMTP  is  a option for Smail/rmail to save transmission time,
  780.          because  your  mails  are  compressed and batched (like you do
  781.          with news).
  782.  
  783.          You can active the BSMTP protocol directly via the -B option.
  784.          The  better way is to write down all hosts that receives mails
  785.          via  BSMTP,  in the "uulib:mail/bsmtp_sites" file.  Simply one
  786.          site by every line (case insensitive!).
  787.  
  788.          BSMTP  collects  all mail in uuspool:batch/<hostname>.  Before
  789.          you call your host you must execute Smail with -D option
  790.  
  791.          @@{fg fill}Attention!!!@@{fg text}
  792.          You  have  to  batch  your mails EACH TIME before calling your
  793.          host  !   If  you  forget to batch your mails they'll never be
  794.          delivered !
  795.  
  796.          Here comes an example:
  797.  
  798.          Your node for BSMTP is testhh.
  799.  
  800.             put in "uulib:mail/bsmtp_sites"
  801.             ---------------------- snip ------------------
  802.             testhh
  803.             ---------------------- snip ------------------
  804.  
  805.             All  mails  Smail/rmail  sends  to testhh will be stored in
  806.             "uuspool:batch/testhh".
  807.  
  808.             Before you call testhh execute (don't forget it!)
  809.  
  810.             Smail -Dh testhh
  811.  
  812.          The  command  for  compressing  your  mails can be changed via
  813.          SMCompress  config option (default compress).  The command for
  814.          your  host  receiving  your  BSMTP  mails  can  be changed via
  815.          SMBsmtpCmd  config  option  (default  rcsmtp).   Normally  you
  816.          should use the following pairs:
  817.  
  818.          SMCompress                    SMBsmtpCmd
  819.          ----------------------------------------
  820.          compress           <->        rcsmtp
  821.          freeze             <->        rfsmtp
  822.          no compress        <->        rsmtp
  823.  
  824.          If you want to receive your mails with BSMTP you must copy (or
  825.          make  a  link)  from  Smail/rmail  to rcsmtp,rfsmtp and rsmtp.
  826.          Then  talk  to your host's system operator from which you want
  827.          to receive BSMTP mails.
  828.  
  829. 7. Aliases
  830. ----------
  831.  
  832. 7.1. Alias format
  833. -----------------
  834.           An  attempt  has been made to remain compatible with sendmail
  835.           alias file format, though the syntax is much more format free
  836.           than  sendmail.  As distributed, case differences are ignored
  837.           when  comparing  names  to  aliases.   Only alias names which
  838.           resolve  to  the local host are recognized, and are stored in
  839.           their  local  form.  Lines which start with a white space are
  840.           continuation  lines.   Parenthesized  strings  are  taken  as
  841.           comments  (no nesting), as is anything after a '#'.  Here are
  842.           some examples:
  843.  
  844.           # this whole line is a comment
  845.           #
  846.           # These are equivalent definitions
  847.  
  848.           alias_name      recip1 recip2 recip3
  849.           alias_name:     recip1, recip2 , recip3
  850.  
  851.           alias_name      recip1 recip2
  852.                           recip3
  853.  
  854.           alias_name      recip1  # Recip1's name
  855.                           recip2  # Recip2's name
  856.                           recip3  # Recip3's name
  857.  
  858.           alias_name      recip1 (Recp1's name) recip2 (Recp2's name)
  859.                           recip3 (Recp3's name)
  860.  
  861.           alias_name@@thishost     recip1 recip2 recip3
  862.  
  863.           alias_name@@thisdomain   recip1 recip2 recip3
  864.  
  865.           thisdomain!alias_name   recip1 recip2 recip3
  866.  
  867.           All  aliases  are  recursive,  so care must be taken in their
  868.           definition.   Smail  aliasing  attempts  to  prevent infinite
  869.           loops, and to do what was intended by the user.  For example,
  870.           the alias:
  871.  
  872.                           mylogin mypc!mylogin mylogin
  873.  
  874.           Expands to
  875.  
  876.                               mypc!mylogin mylogin
  877.  
  878.           even  though  the  second  occurrence  of mylogin matches the
  879.           alias  name.   If  you  want  to prevent Smail from alias the
  880.           second mylogin, use a \ before mylogin.
  881.  
  882.           Both forms of file inclusion are recursive, too, so watch out
  883.           for nesting include files.  They may lead to infinite loops.
  884.  
  885.           While   the   cost  of  parsing  an  alias  file  is  usually
  886.           negligible, it's wise to take savings anywhere savings can be
  887.           found.   Therefore,  it's  worth  mentioning  Smail's parsing
  888.           strategy.  Smail will try to get by with doing as little work
  889.           as  possible when aliasing.  If on a particular invocation of
  890.           Smail,  none  of the recipient addresses are local, (i.e., not
  891.           potential  aliases) then the aliases file won't even be read.
  892.           Similarly,  when  an aliases file is read, it does not expand
  893.           any of the :include:  files until they are referenced.  Thus,
  894.           in    the    alias    (above)    for    mylist,    the   file
  895.           :include:uulib:mylist  would  not be opened and read (parsed)
  896.           unless mail was sent to mylist.  Wise use of :include:  files
  897.           can  greatly  increase  the  efficiency of the alias utility.
  898.           It's  not  clear  exactly  where the break-even point is when
  899.           deciding to use an :include:  file in an alias, versus having
  900.           all  of  the  recipients  listed on the line; but if a mailing
  901.           list  is  large  (whatever  that means) it is wise to use the
  902.           :include:   feature to save on parsing costs.  Note that this
  903.           discussion  only applies to the first form of file inclusion,
  904.           since  reading  an  aliases  file  constitutes a reference to
  905.           :include:  files of the second form.
  906.  
  907. 7.2. Mailing list
  908. -----------------
  909.  
  910.           Mailing  lists  are  easily  handled  by  two  forms  of file
  911.           inclusion.   The  first  form  is the same as is supported by
  912.           sendmail
  913.  
  914.                      mylist    :include:uulib:mylist
  915.  
  916.           In this example, each entry in uulib:mylist would be added to
  917.           the  alias  for  mylist.  The second form is unique to Smail.
  918.           It allows the aliases file to include other aliases files.
  919.  
  920. 7.3. Include other alias files
  921. ------------------------------
  922.  
  923.                        :include:uulib:more-aliases
  924.  
  925.           This  would  include the file uulib:more-aliases as a regular
  926.           alias  file.   This  makes  it  easier  to maintain groups of
  927.           aliases  that  change frequently, such as the list of netnews
  928.           moderators.
  929.  
  930. 7.4. Mail forwarding
  931. --------------------
  932.  
  933.           There  is another form of aliasing which works with the alias
  934.           capability.   This  is  called  user forwarding.  For a given
  935.           user  name,  if  there  is no alias for the user and the file
  936.           users-home/.forward exists its contents will be treated as an
  937.           alias  for  the  user.  The syntax is the same as that of the
  938.           recipient  lists  in  the alias file described above.  If you
  939.           want  to  use forwarding in uumail:  put a file with the name
  940.           of the user you want to forward in uumail:  and let the first
  941.           line  have starts with "Forward:".  The rest of the file will
  942.           be treated as an alias described above.
  943.  
  944. 7.5. Command piping
  945. -------------------
  946.  
  947.           If the alias starts with an | Smail will call the string
  948.           after the | with the mail file as input.
  949.  
  950.  
  951. 8. Thanks
  952. ---------
  953.  
  954.  
  955.  
  956.           for Betatesting...
  957.  
  958.                 Gerhard Schneider
  959.                 Thorsten Gau
  960.                 Christoph Haas
  961.  
  962. 9. Version and Author
  963. ---------------------
  964.  
  965.  
  966.           This Smail based on Smail V2.5 from Christopher Seiwald in 1987.
  967.           Enhancements,  enhancement  requests,  trouble reports, etc.,
  968.           should be sent to
  969.  
  970.  
  971.  
  972.                      @@{fg shine}aussem@@mavhh.hanse.de@@{fg text}
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.           $Id: smail.txt,v 1.9 1993/11/13 14:32:51 Aussem Exp Aussem $
  980.  
  981. 10. Wish list
  982. -------------
  983.  
  984.      o SMTP via AmiTCP (I need a beta tester for this option !)
  985.  
  986.      o gdbm support for the alias/path/bsmtp and user files
  987.  
  988.  
  989. 11. Copyright
  990. -------------
  991.  
  992.      @@{b}This program is free software; you can redistribute it and/or
  993.      modify it under the terms of the GNU General Public License as
  994.      published by the Free Software Foundation; either version 2 of
  995.      the License, or (at your option) any later version.
  996.  
  997.      This program is distributed in the hope that it will be useful,
  998.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  999.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1000.      General Public License for more details.
  1001.  
  1002.      You should have received a copy of the GNU General Public License
  1003.      along with this program; if not, write to the Free Software
  1004.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.@@{bu}
  1005.  
  1006.  
  1007. 12. Source files
  1008. ----------------
  1009.  
  1010.           You  need  to  recompile them SAS C V6.3 and (HW)RCS.  If you
  1011.           want to recompile the AXSh version, you need the source files
  1012.           of  AXSh.lib  to  compile  a  resident and register parameter
  1013.           version  of  the  axsh.lib.   If  you  want  to recompile the
  1014.           MultiUserFileSystem   you   the   include   files  from  MUFS
  1015.           distribution.
  1016.  
  1017.           @@{fg fill}Attention!!!@@{fg text}
  1018.  
  1019.  
  1020.           If you change something,
  1021.  
  1022.           a) please inform me, so that I can submit your changes in the
  1023.              "official" distribution.
  1024.  
  1025.           b)  check  your changes in as branches !  It is easier for me
  1026.               to merge them.
  1027.  
  1028.  
  1029. 13. History
  1030. -----------
  1031.  
  1032.           1.0  -  initial release
  1033.           
  1034. @
  1035.  
  1036.  
  1037. 1.9
  1038. log
  1039. @nothing special
  1040. @
  1041. text
  1042. @d1 1
  1043. a1 1
  1044. Document SMail
  1045. d3 1
  1046. a3 1
  1047.                     @@{u}@@{fg shine}smail, rmail - a UUCP mailer@@{fg text}@@{uu}
  1048. d8 1
  1049. a8 1
  1050.           o complete substitute for Dillons sendmail
  1051. d16 2
  1052. a17 2
  1053.           o nearly command line compatible with Dillon's sendmail
  1054.             (execpt -raw)
  1055. d43 3
  1056. a53 3
  1057.           o Checking local users permission to send mail
  1058.             via UUCP/BSMTP
  1059.  
  1060. d57 1
  1061. a57 1
  1062.           The  smail/rmail  program replaces Dillons sendmail to become
  1063. d59 1
  1064. a59 1
  1065.           UUCP, smail introduces mail into UUCP.
  1066. d61 1
  1067. a61 1
  1068.           smail/rmail  can  work  with  or without sendmail, or another
  1069. d63 1
  1070. a63 1
  1071.           smail/rmail  subsumes  some of the functions of sendmail, and
  1072. d66 2
  1073. a67 2
  1074.           To  varying  degrees,  smail/rmail  automatically  routes the
  1075.           addresses it processes.  smail/rmail most often routes domain
  1076. d70 1
  1077. a70 1
  1078.           can also reroute explicit UUCP paths.
  1079. d82 2
  1080. a83 2
  1081.              smail       ->  uucp:c/sendmail
  1082.              smail       ->  uucp:c/rmail
  1083. d88 2
  1084. a89 2
  1085.              smail_axsh  ->  uucp:c/sendmail
  1086.              smail_axsh  ->  uucp:c/rmail
  1087. d94 2
  1088. a95 2
  1089.              smail_mufs  ->  uucp:c/sendmail
  1090.              smail_mufs  ->  uucp:c/rmail
  1091. d99 1
  1092. a99 1
  1093.           2) Edit the `Config options' of smail in "uulib:config."
  1094. d108 6
  1095. a113 6
  1096.           5)  If  you  are  using  a  different  NAME  for  sendmail than
  1097.               "sendmail"  (e.g smail) you have to insert a Sendmail Entry
  1098.               in  "uulib:config".   This  is  necessary  if  smail cannot
  1099.               deliver  a  mail or smail found a Return-To-Receipt Header.
  1100.               In  either case smail calls the sendmail program to deliver
  1101.               the mails.
  1102. d122 1
  1103. a122 1
  1104. 2.1. Different SMail programs
  1105. d128 1
  1106. a128 1
  1107.             don't  usr the ENV:  variable called "REALNAME".  Besides smail
  1108. d141 1
  1109. a141 1
  1110.           Convert  your paths file (generated by pathalias -f) to smail
  1111. d190 3
  1112. a192 3
  1113.                smail        ->   uucp:c/rsmtp
  1114.                smail        ->   uucp:c/rcsmtp
  1115.                smail        ->   uucp:c/rfsmtp
  1116. d206 1
  1117. a206 1
  1118.           smail [ `Options' ] address ...
  1119. d269 1
  1120. a269 1
  1121.                delivery by a single invocation of smail (default 2)
  1122. d276 1
  1123. a276 1
  1124.           -M If smail fails to deliver the mail don't send this back to
  1125. d289 1
  1126. a289 1
  1127.           -O Reroute UUCP paths, trying successively larger righthand
  1128. d293 1
  1129. a293 1
  1130.           -r Running  smail  in  rmail mode.  In this mode smail/rmail
  1131. d296 1
  1132. a296 1
  1133.              line.
  1134. d304 1
  1135. a304 1
  1136.              smail  ONLY to resolve the address and NOT to deliver the
  1137. d308 1
  1138. a308 1
  1139.              Mail  Transport Protocoll) !  If you want to send only to
  1140. d337 1
  1141. a337 1
  1142.           routing until smail gets hold of it.
  1143. d343 1
  1144. a343 1
  1145. 5.1. Addresses acctepted
  1146. d346 1
  1147. a346 1
  1148.           smail/rmail  understands  "user%site%site.domain@@domain"  and
  1149. d352 1
  1150. a352 1
  1151.           UUCP/domain  addresses, smail/rmail understands "domain!user"
  1152. d354 1
  1153. a354 1
  1154.           mailing to a cognate smail/rmail host.  To distinguish domain
  1155. d356 1
  1156. a356 1
  1157.           least one (1) period.  smail/rmail gives precedence to @@ over
  1158. d363 1
  1159. a363 1
  1160.           Because  smail/rmail  is  the UUCP transport mechanism it can
  1161. d366 1
  1162. a366 1
  1163.           addresses.   To  resolve a domain address smail/rmail finds a
  1164. d371 1
  1165. a371 1
  1166.                Full  resolution:   smail/rmail  finds  a  route for the
  1167. d377 1
  1168. a377 1
  1169.                Partial  resolution:  smail/rmail finds a route for only
  1170. d382 1
  1171. a382 1
  1172.                must install new UUCP software either smail/rmail or new
  1173. d390 2
  1174. a391 2
  1175. 5.3. Rerouting
  1176. --------------
  1177. d393 1
  1178. a393 1
  1179.           The  -o  flag  makes  smail/rmail  attempt to route the first
  1180. d397 1
  1181. a397 1
  1182.           The  -O flag makes smail/rmail take a UUCP path and route the
  1183. d410 1
  1184. a410 1
  1185.           After  smail/rmail  resolves an address it reparses it to see
  1186. d412 1
  1187. a412 1
  1188.           address   turns  out  to  be  another  domain  address  smail
  1189. d417 1
  1190. a417 1
  1191.           By  default  smail won't alter the explicit bang path routing
  1192. d419 1
  1193. a419 1
  1194.           the  next  hop  host is unknown) then smail will ALWAYS apply
  1195. d425 1
  1196. a425 1
  1197.           that  host.   If  there  is  no path file smail will call uux
  1198. d432 1
  1199. a432 1
  1200.           smail/rmail  improves  "From_" and ">From_" lines to a simple
  1201. d451 1
  1202. a451 1
  1203.           smail/rmail generates it own From_ line, unless it is feeding
  1204. d453 1
  1205. a453 1
  1206.           bound  mail,  smail/rmail generates a "remote from hostname",
  1207. d466 1
  1208. a466 1
  1209.           mail,  they will be inserted by smail.  Also, a line of trace
  1210. d468 1
  1211. a468 1
  1212.           the  top  of  each message.  In addition smail support "Cc:",
  1213. d475 1
  1214. a475 1
  1215.           destination  but  it somtimes happens that way.  Mail that is
  1216. d493 1
  1217. a493 1
  1218.           mails is allowed !
  1219. d496 1
  1220. a496 1
  1221.           If the smail/rmail delivers a mail to two or more receipients
  1222. d509 1
  1223. a509 1
  1224.           If you send a mail, smail/rmail looks whether there is
  1225. d520 1
  1226. a520 1
  1227.                   REALNAME enviroment variable exists, try to find USER
  1228. d538 1
  1229. a538 1
  1230.           SMLogfile         uuspool:smail.log
  1231. d544 1
  1232. a544 1
  1233.           SMSentlog         t:smail.sent
  1234. d557 1
  1235. a557 1
  1236.           #      this means smail do rerouting
  1237. d559 1
  1238. a559 1
  1239.           #      this means smail do no rerouting
  1240. d564 1
  1241. a564 1
  1242.           #      this means smail does everything for you
  1243. d566 1
  1244. a566 1
  1245.           #      this means smail work only for UUCP addresses
  1246. d568 1
  1247. a568 1
  1248.           #      this means smail gives all work to the local mailer
  1249. d600 1
  1250. a600 1
  1251.           smail/rmail use the normal argv[] parsing routines.
  1252. d605 1
  1253. a605 1
  1254.           smail <mail -s this is a nice subject ...
  1255. d607 1
  1256. a607 1
  1257.           smail <mail -s "this is a nice subject" ...
  1258. d612 1
  1259. a612 1
  1260.           smail <mail -s "this is a nice *\"subject*\"" ...
  1261. d614 1
  1262. a614 1
  1263.           smail <mail -s "this is a nice *"subject*"" ...
  1264. d619 2
  1265. a620 2
  1266.           If  smail/rmail  can't  resolve  a  path to the receiver of a
  1267.           mail,  smail/rmail will try to sent this mail to a smarthost.
  1268. d622 1
  1269. a622 1
  1270.           with  the keyword SMSmarthost.  Normally smail/rmail tries
  1271. d624 1
  1272. a624 1
  1273.           possible  (e.g you don't have a paths file) smail/rmail will
  1274. d630 1
  1275. a630 1
  1276.           SMSentlog  will backup the complette mail and a little header
  1277. d635 1
  1278. a635 1
  1279.           (09/07-18:30:10) smail,-,- cmd: "mail T:03 aussem" from wolfhh!chris
  1280. d641 2
  1281. a642 2
  1282.           If you want to disable a log file set the entry in "uulib:config"
  1283.           to nil:.
  1284. d647 9
  1285. a655 9
  1286.           If  smail  is  called  with  the  program name (argv[0] for C
  1287.           programmers) rmail, smail/rmail switch to the rmail mode (the
  1288.           same as if you start smail -r ...).  In this mode smail/rmail
  1289.           does   not  extract  addresses  from  mail  file.   Only  the
  1290.           addresses passed via command line are used for delivering.
  1291.  
  1292.           If  smail  is  called  with  the  program name (argv[0] for C
  1293.           programmers) rsmtp or rcsmtp or rfsmtp, smail/rmail switch to
  1294.           the  rmail and the BSMTP mode (the same as if you start smail
  1295. d667 1
  1296. a667 1
  1297.           The setup depends on the smail/rmail version:
  1298. d683 1
  1299. a683 1
  1300.           usernames in the checkuser file are case insensitiv.
  1301. d688 1
  1302. a688 1
  1303.           If smail/rmail delivers a local mail it calls the local mail
  1304. d693 1
  1305. a693 1
  1306.           SMail comes with three versions of mail:
  1307. d706 1
  1308. a706 1
  1309.          enviroment variable MAILTONOEXIST.
  1310. d710 1
  1311. a710 1
  1312.          BSMTP  is  a option for smail/rmail to save transmission time,
  1313. d714 1
  1314. a714 1
  1315.          You can active the BSMTP protocoll directly via the -B option.
  1316. d720 1
  1317. a720 1
  1318.          you call your host you must execute smail with -D option
  1319. d736 1
  1320. a736 1
  1321.             All  mails  smail/rmail  sends  to testhh will be stored in
  1322. d741 1
  1323. a741 1
  1324.             smail -Dh testhh
  1325. d756 1
  1326. a756 1
  1327.          make  a  link)  from  smail/rmail  to rcsmtp,rfsmtp and rsmtp.
  1328. d771 1
  1329. a771 1
  1330.           continuation  lines.   Parenthesised  strings  are  taken  as
  1331. d799 1
  1332. a799 1
  1333.           definition.   smail  aliasing  attempts  to  prevent infinite
  1334. d810 1
  1335. a810 1
  1336.           alias  name.   If  you  want  to prevent smail from alias the
  1337. d818 2
  1338. a819 2
  1339.           found.   Therefore,  it's  worth  mentioning  smail's parsing
  1340.           strategy.  smail will try to get by with doing as little work
  1341. d821 1
  1342. a821 1
  1343.           smail,  none  of the recipent addresses are local, (i.e., not
  1344. d831 1
  1345. a831 1
  1346.           all  of  the  recipents  listed on the line; but if a mailing
  1347. d848 1
  1348. a848 1
  1349.           the  alias  for  mylist.  The second form is unique to smail.
  1350. d878 1
  1351. a878 1
  1352.           If the alias starts with an | smail will call the string
  1353. d897 1
  1354. a897 1
  1355.           This smail based on SMail V2.5 from Christopher Seiwald in 1987.
  1356. d910 1
  1357. a910 1
  1358.           $Id: smail.txt,v 1.8 1993/11/09 22:45:45 Aussem Exp Aussem $
  1359. d915 3
  1360. a917 1
  1361.      o SMTP via AmiTCP
  1362. @
  1363.  
  1364.  
  1365. 1.8
  1366. log
  1367. @lots of changes
  1368. :-)
  1369. @
  1370. text
  1371. @d41 2
  1372. d57 2
  1373. a58 2
  1374.           The smail/rmail program replaces Dillons sendmail to become
  1375.           the UUCP mail transport mechanism. rmail receives mail from
  1376. d61 3
  1377. a63 3
  1378.           smail/rmail can work with or without sendmail, or another
  1379.           intelligent mail system.  For hosts with just mail,
  1380.           smail/rmail subsumes some of the functions of sendmail, and
  1381. d66 5
  1382. a70 5
  1383.           To varying degrees, smail/rmail automatically routes the
  1384.           addresses it processes.  smail/rmail most often routes
  1385.           domain style addresses (i.e. user@@domain), producing a UUCP
  1386.           path (i.e. host!address) or a local address (i.e. user) but
  1387.           it can also reroute explicit UUCP paths.
  1388. d78 1
  1389. a78 1
  1390.         If this doesn't work do the following things:
  1391. d80 1
  1392. a80 1
  1393.         1.) Copy
  1394. d99 1
  1395. a99 1
  1396.         2) Edit the `Config options' of smail in "uulib:config."
  1397. d101 1
  1398. a101 1
  1399.         3) Make a directory "Mail" in "uulib:"
  1400. d103 11
  1401. a113 10
  1402.         4) If you want to use `Aliases' edit "uulib:mail/aliases".
  1403.            If you have already an alias file from Dillons sendmail,
  1404.            just copy it to "uulib:mail/aliases" or edit the SMAlias
  1405.            in "uulib:config".
  1406.  
  1407.         5) If you are using a different NAME for sendmail than "sendmail"
  1408.            (e.g smail) you have to insert a Sendmail Entry in "uulib:config".
  1409.            This is necessary if smail cannot deliver a mail or smail found
  1410.            a Return-To-Receipt Header. In either case smail calls the sendmail
  1411.            program to deliver the mails.
  1412. d115 2
  1413. a116 2
  1414.         6) Setup a path file (if you want to use this option)
  1415.            (see `Setup a path file')
  1416. d118 2
  1417. a119 2
  1418.         7) Setup BSMTP stuff (if you want to use this option)
  1419.            (see `BSMTP setup')
  1420. d125 6
  1421. a130 6
  1422.       o Getty
  1423.         List all your site's users in getty:passwd. The real name
  1424.         must be entered in the comment field. You only need this if
  1425.         you don't usr the ENV: variable called "REALNAME".
  1426.         Besides smail takes the home-directory for `Mail forwarding' 
  1427.         from the getty's passwd.
  1428. d132 2
  1429. a133 2
  1430.       o AXSh
  1431.         These programs use the AXSh passwd instead of Getty's passwd.
  1432. d135 2
  1433. a136 2
  1434.       o MUFS
  1435.         These programs use the MUFS passwd instead of Getty's passwd.
  1436. d141 3
  1437. a143 3
  1438.           Convert your paths file (generated by pathalias -f)
  1439.           to smail format using "convert" and "(q)sort". For the CShell
  1440.           the command line is:
  1441. d147 3
  1442. a149 3
  1443.           For receivers that are not in your maps data (nobody is
  1444.           perfect) setup SM`Smarthost' in "uulib:config". This host
  1445.           receives all mails for receivers that are not listed in
  1446. d183 2
  1447. a184 2
  1448.           Insert SM`Smarthost' your_smart_host in your "uulib:config"
  1449.           file. The smarthost is the host receiving all your mail.
  1450. d189 1
  1451. a189 1
  1452.            Copy
  1453. d195 5
  1454. a199 2
  1455.            Setup the SMCompress, SMBsmtpCmd, SMBsmtpSites,
  1456.            Compress and Freeze Keywords in "uulib:config".
  1457. d201 1
  1458. a201 4
  1459.            Add every host that should receive mails
  1460.            via BSMTP to "uulib:mail/bsmtp_sites".
  1461.            
  1462.            Read the `BSMTP' section.
  1463. d210 2
  1464. a211 2
  1465.           -A   Print the resolved addresses.  DON'T collect a message
  1466.                or invoke a mailer (e.g. for address resolving in scripts)
  1467. d213 1
  1468. a213 1
  1469.           -d   Be verbose and DON'T invoke other mailers.
  1470. d215 1
  1471. a215 1
  1472.           -v   Be verbose but still invoke other mailers.
  1473. d240 14
  1474. a253 14
  1475.                Smail supports another type of aliasing intended for
  1476.                full name resolution using a sorted file, namelist or
  1477.                name/address pairs.  This allows mail to
  1478.                George.P.Burdell@@gatech.edu to be delivered
  1479.                appropriately.  These aliases are by nature very
  1480.                simple since they are not composed of long lists of
  1481.                recipients for each alias.  They are also numerous
  1482.                since mail to George.P.Burdell may be addressed to
  1483.                Burdell, G.Burdell, George.Burdell, P.Burdell,
  1484.                G.P.Burdell, or George.P.Burdell.  This simpler form of
  1485.                aliasing uses the same fast searching algorithm that is
  1486.                used for the paths file, so it keeps resolution time
  1487.                manageable.You may even set this via the `Config options'
  1488.                in "uulib:config", too.
  1489. d260 6
  1490. a265 6
  1491.                Take number as the queueing threshold. When routing
  1492.                a mail ( -o, -O, or domain addressed mail ) to a 
  1493.                given host and the  costs listed in the paths file
  1494.                are less than the queueing threshold the mail will be
  1495.                sent immediately.  This overrides the default threshold
  1496.                of 300.
  1497. d268 1
  1498. a268 1
  1499.                Most number jobs will be handed to uux for immediate
  1500. d272 39
  1501. a310 41
  1502.                Use uuxflags as the flags passed to uux for remote
  1503.                mail.  This overrides any of the default values and
  1504.                other queueing strategies.
  1505.  
  1506.           -M   If smail fails to deliver the mail don't send this
  1507.                back to the sender.
  1508.  
  1509.           -C   Consult the paths file for the cost of the path even
  1510.                when not routing the mail.  This makes it possible to
  1511.                use the cost information when sending pure UUCP path
  1512.                mail without re-routing it.
  1513.  
  1514.           -o   Route the first component of a UUCP path (host!address)
  1515.                in addition to routing domain addresses (user@@domain)
  1516.                (see `Routing')
  1517.                Deactivate re-routing !
  1518.  
  1519.  
  1520.           -O   Reroute UUCP paths, trying successively larger
  1521.                righthand substrings of a path until a component is
  1522.                recognized (see `Routing').
  1523.                Activate re-routing !
  1524.  
  1525.           -r   Running smail in rmail mode
  1526.                In this mode smail/rmail does not search for
  1527.                for addresses (to send the mail to)in the mail file, but
  1528.                ONLY takes the addresses from command line.
  1529.  
  1530.           -l   Instead of routing a domain address send it to the
  1531.                local mailer for processing.  Normally, only local
  1532.                addresses go to the local mailer.
  1533.  
  1534.           -L   Send all addresses to the local mailer for processing,
  1535.                including UUCP paths. This options is used, if you want
  1536.                smail ONLY to resolve the address and NOT to deliver the
  1537.                mail.
  1538.  
  1539.           -B   Send the mail to EVERY receiver via BSMTP (Batch Simple Mail
  1540.                Transport Protocoll) ! If you want to send only to some 
  1541.                receivers/hosts via BSMTP use the "uulib:mail/bsmtp_sites"
  1542.                file (see `BSMTP').
  1543. d313 1
  1544. a313 2
  1545.                Use address on the "Cc:" line in locally generated
  1546.                mail.
  1547. d316 1
  1548. a316 2
  1549.                Use address on the "Bcc:" line in locally generated
  1550.                mail.
  1551. d319 1
  1552. a319 2
  1553.                Use address on the "To:" line in locally generated
  1554.                mail.
  1555. d322 1
  1556. a322 1
  1557.                Use file as input for the locally mail.
  1558. d324 1
  1559. a324 2
  1560.                Your filename has to begin with t:. Otherwise
  1561.                use <file .
  1562. d327 1
  1563. a327 2
  1564.                Use text on the "Subject:" line in locally generated
  1565.                mail
  1566. d330 1
  1567. a330 1
  1568.                Use text as real name in locally generated mail.
  1569. d333 5
  1570. a337 5
  1571.           to the local mailer to process addresses for non UUCP domains.
  1572.           The -L flag  causes rmail to pass even explicit UUCP paths
  1573.           through to the local mailer, presumably to make use of other
  1574.           transport mechanisms.  In both cases rmail defers any routing
  1575.           until smail gets hold of it.
  1576. d346 13
  1577. a358 13
  1578.           smail/rmail understands "user%site%site.domain@@domain"
  1579.           and "user@@domain" to be a domain address,
  1580.           "host!address" and "domain!site.domain%site%user"
  1581.           to be a UUCP path and anything else to be a local address.
  1582.  
  1583.           Because hostile rmail's unpredictably interpret mixed
  1584.           UUCP/domain addresses, smail/rmail understands "domain!user"
  1585.           to be a domain address and generates "path!domain!user"
  1586.           when mailing to a cognate smail/rmail host.  To distinguish
  1587.           domain "domain!user" from UUCP "host!address" "domain"
  1588.           contains at least one (1) period. smail/rmail gives precedence
  1589.           to @@ over ! when parsing mixed addresses, thus a!b@@c is parsed
  1590.           as (a!b)@@c, rather than a!(b@@c).
  1591. d363 6
  1592. a368 6
  1593.           Because smail/rmail is the UUCP transport mechanism it can
  1594.           only effect delivery on UUCP paths and local addresses;
  1595.           domain addresses require resolution into UUCP paths or local
  1596.           addresses. To resolve a domain address smail/rmail finds a
  1597.           route to the most specific part of the domain specification
  1598.           listed in the routing table.  Two degrees of resolution can
  1599. d371 4
  1600. a374 4
  1601.                Full resolution:  smail/rmail finds a route for the
  1602.                entire domain specification, and tacks the user
  1603.                specification onto the end of the UUCP path.  The
  1604.                address can also fully resolved into a local address 
  1605. d377 12
  1606. a388 12
  1607.                Partial resolution:  smail/rmail finds a route for only
  1608.                righthand part of the domain specification so it tacks
  1609.                the complete address (in the form domain!user) onto the
  1610.                end of the UUCP path.  Since this syntax is not widely
  1611.                understood UUCP gateways listed in the path database
  1612.                must install new UUCP software either smail/rmail or
  1613.                new sendmail configuration files (or both).
  1614.  
  1615.           If partially resolved address routes to the local host
  1616.           (means having a null UUCP path) it's treated as an error.
  1617.           According to the routing table the local host takes the
  1618.           responsibility for parsing the address correctly.
  1619. d393 35
  1620. a427 38
  1621.           The -o flag makes smail/rmail attempt to route the first
  1622.           component of a UUCP path, probably to impress people
  1623.           with how many UUCP hosts it knows.  If this fails it passes
  1624.           the unrouted address to uux just in case the path database is
  1625.           incomplete.  The -O flag makes smail/rmail take a UUCP
  1626.           path and route the rightmost component of it (saving the
  1627.           user name). This is implemented for hosts having
  1628.           very up-to-date routing tables.
  1629.  
  1630.           If a route cannot be discerned from the available routing
  1631.           database an additional attempt to route the mail is made by
  1632.           searching for an entry in the database containing the route to a
  1633.           `Smarthost' (smail takes DefaultNode from "uulib:config"). If
  1634.           this entry exists the mail will be forwarded using that
  1635.           route. This allows a host to depend on another
  1636.           (presumably better informed) host to deliver its mail.
  1637.           This kind of arrangement should be worked out - in advance -
  1638.           with the smart host's administrator.
  1639.  
  1640.           After smail/rmail resolves an address it reparses it to see
  1641.           if it is now a UUCP path or local address. If the new
  1642.           address turns out to be another domain address smail
  1643.           complains as it doesn't like to resolve more than once.
  1644.           This error occurs when an address partially resolves the
  1645.           local host.
  1646.  
  1647.           By default smail won't alter the explicit bang path
  1648.           routing of any mail message.  If the stated path is
  1649.           unuseable, (i.e. the next hop host is unknown) then smail
  1650.           will ALWAYS apply routing and attempt to deliver the mail
  1651.           to the potential new address.  If either this fails
  1652.           REROUTE routing will be applied to the address and another
  1653.           attempt to deliver is made.  Finally an attempt to find a
  1654.           path to a better informed hostart host (see `Smarthost')
  1655.           will be made and the mail is passed to that host. If there
  1656.           is no path file smail will call uux directly with the smart-
  1657.           host as host. So you must have a entry for your smarthost
  1658.           in "uulib:l.sys".
  1659. d432 9
  1660. a440 9
  1661.           smail/rmail improves "From_" and ">From_" lines to a
  1662.           simple from argument, which it can pass to sendmail or use
  1663.           to create its own "From" line.  The rule for fromming is:
  1664.           concatenate each "remote from" host (separating them by
  1665.           "!"'s), and tack on the address on the last "From_" line; if
  1666.           that address is in user@@domain format rewrite it as
  1667.           domain!user; ignore host or domain if either is simply the
  1668.           local hostname.  It also removes redundant information from
  1669.           the "From_" line.  For instance:
  1670. d448 1
  1671. a448 1
  1672.           Leading occurrences of the local host name are elided as
  1673. d451 6
  1674. a456 6
  1675.           smail/rmail generates it own From_ line, unless it is
  1676.           feeding sendmail, which is happy with the -ffrom argument.
  1677.           For UUCP bound mail, smail/rmail generates a "remote from
  1678.           hostname", where hostname is the UUCP hostname (not the
  1679.           domain name), so that From_ can indicate a valid UUCP path,
  1680.           leaving the sender's domain address in From:.
  1681. d464 6
  1682. a469 6
  1683.           Certain headers, To:, From:, Date, etc., are required by
  1684.           RFC822.  If these headers are absent in locally generated
  1685.           mail, they will be inserted by smail.  Also, a line of trace
  1686.           information, called a Received: line, will be inserted at
  1687.           the top of each message. In addition smail support Cc:, Bcc:
  1688.           and `Return-Receipt-To headers'.
  1689. d474 5
  1690. a478 5
  1691.           Although nobody likes to have a mail message fail to reach
  1692.           its intended destination, it somtimes happens that way.
  1693.           Mail that is found to be undeliverable (i.e., unknown user
  1694.           or unknown host) will be returned to the sender and to
  1695.           postmaster of this host.
  1696. d484 10
  1697. a493 6
  1698.           Smail/rmail will send a mail with a copy of the header
  1699.           of the original mail to the address after the Return-To-Receipt:
  1700.           Header if the mail is for a user on your site. You can turn this 
  1701.           off via the SMReceipt keyword in the "uulib:config" file. See
  1702.           `Local Mailer' for the recognition whether a user exists on 
  1703.           your site.
  1704. d496 3
  1705. a498 3
  1706.           If the smail/rmail delivers a mail to two or more receipients with 
  1707.           one call of your local mailer and one fails, no return mail is send.
  1708.           e.g:
  1709. d502 1
  1710. a502 1
  1711.           Only the delivery to user1 fails => No receipt mail is
  1712. d510 1
  1713. a510 1
  1714.           a) a -f argument and -R argument
  1715. d513 4
  1716. a516 3
  1717.              => take the fromname from -f, try to find the fromname
  1718.                 in getty:passwd/axsh:etc/passwd and take the comment
  1719.                 as realname. If not found look for Realname in "uulib:config".
  1720. d519 6
  1721. a524 6
  1722.                   look at the local variable USER and REALNAME.
  1723.                   If no REALNAME enviroment variable exists, try
  1724.                   to find USER in getty:passwd/axsh:etc/passwd and
  1725.                   take the comment as realname. If not found look
  1726.                   for RealName in "uulib:config".
  1727.                   If no USER is found look for UserName in "uulib:config".
  1728. d526 3
  1729. a528 2
  1730.                   Determinate via MUFS who is the owner of this task. If
  1731.                   this is not possible, do the same as the Getty/AXSh version.
  1732. d578 1
  1733. a578 1
  1734.          # the command on the host, which receive your BSMTP
  1735. d598 4
  1736. a601 3
  1737.           If you submit a string with spaces for an option (e.g for
  1738.           a subject), you have to enclose them into ", because smail/rmail
  1739.           use the normal argv[] parsing routines.
  1740. d603 1
  1741. d609 2
  1742. a610 2
  1743.           If you want to enclose " in your subject you have
  1744.           to stuff the ".
  1745. d619 7
  1746. a625 7
  1747.           If smail/rmail can't resolve a path to the receiver of a
  1748.           mail, smail/rmail will try to sent this mail to a smarthost.
  1749.           You must config the name of the smarthost in "uulib:config" with
  1750.           the keyword SMSmarthost. Normally smail/rmail will try to
  1751.           resolve the path to the smarthost. If this is not possible
  1752.           (e.g you donnot have a paths file) smail/rmail will call
  1753.           uux directly.
  1754. d630 1
  1755. a630 1
  1756.           SMSentlog will backup the complette mail and a little header
  1757. d635 1
  1758. a635 1
  1759.           (09/07-18:30:10) smail,-,- cmd: "mail T:PNPZ4.0003  aussem" from wolfhh!chris
  1760. d639 1
  1761. a639 1
  1762.           Sep 10 20:05:37: + 'aussem' 'wolfhh!peti.GUN.de!simons' 1354 bytes
  1763. d647 11
  1764. a657 13
  1765.           If smail is called with the program name (argv[0] for C
  1766.           programmers)rmail, smail/rmail switch to the rmail mode
  1767.           (the same as if you start smail -r ...).
  1768.           In this mode smail/rmail does not extract addresses
  1769.           from mail file. Only the addresses passed via command
  1770.           line are used for delivering.
  1771.  
  1772.           If smail is called with the program name (argv[0] for C
  1773.           programmers) rsmtp or rcsmtp or rfsmtp, smail/rmail
  1774.           switch to the rmail and the BSMTP mode (the same as
  1775.           if you start smail -Br ...). Smail/rmail will try to 
  1776.           extract the BSMTP message and deliver this with rmail 
  1777.           command.
  1778. d662 4
  1779. a665 2
  1780.           Smail/rmail can check the permission, whether a local
  1781.           user is really allowed to send a mail via UUCP/BSMTP.
  1782. d667 1
  1783. a667 2
  1784.           @@{fg fill}Attention!!!@@{fg text}
  1785.           Only the mails from @@{b}local@@{bu} users are checked.
  1786. d669 4
  1787. a672 2
  1788.           How to determinate the users depends on the smail/rmail 
  1789.           version:
  1790. d674 6
  1791. a679 4
  1792.           o AXSh/Getty version
  1793.             All users that are written down line by line
  1794.             in "uulib:mail/checkuser" (See `Config options'
  1795.             SMCheckFile) are allowed to send mails via UUCP/BSMTP.
  1796. d681 3
  1797. a684 3
  1798.           o MUFS version
  1799.             All users that are in group "mail", are allowed to
  1800.             send mails via UUCP/BSMTP.
  1801. d688 2
  1802. a689 2
  1803.           If smail/rmail delivers a local mail, it calls the local 
  1804.           mail program with the following syntax:
  1805. d695 2
  1806. a696 2
  1807.           o mail_axsh uses the AXSh passwd file to determinate
  1808.             whether a user exists
  1809. d698 2
  1810. a699 2
  1811.           o mail_mufs uses the MUFS passwd file to determinate
  1812.             whether a user exists
  1813. d701 3
  1814. a703 3
  1815.           o mail uses uumail: mail folder to determinate
  1816.             whether a user exists. If no mail-folder exists
  1817.             the user does not exists.
  1818. d705 2
  1819. a706 2
  1820.          If you want to deliver a mail to a non existing user
  1821.          set the enviroment variable MAILTONOEXIST.
  1822. d710 8
  1823. a717 8
  1824.          BSMTP is a option for smail/rmail to save transmission
  1825.          time, because your mails are compressed and batched (like
  1826.          you do with news).
  1827.  
  1828.          You can active the BSMTP protocoll directly via the -B
  1829.          option. The better way is to write down all hosts, which
  1830.          receives  mails via BSMTP, in the "uulib:mail/bsmtp_sites"
  1831.          file.  Simply one site by every line.
  1832. d719 2
  1833. a720 2
  1834.          BSMTP collects all mail in uuspool:batch/<hostname>. Before
  1835.          you call your host, you must execute smail with -D option
  1836. d723 3
  1837. a725 3
  1838.          You have to batch your mails, EVERYTIME before you call your 
  1839.          host ! If you forget to batch your mails your mails will 
  1840.          never be delivered !
  1841. d736 2
  1842. a737 2
  1843.             All mails smail/rmail sends to testhh, will be
  1844.             stored in uuspool:batch/testhh.
  1845. d743 5
  1846. a747 5
  1847.          The command for compressing your mails can be changed
  1848.          via SMCompress config option (default compress). The
  1849.          command for your host, which receives your BSMTP mails,
  1850.          can be changed via SMBsmtpCmd config option (default rcsmtp).
  1851.          Normally you should use the following pairs:
  1852. d755 4
  1853. a758 4
  1854.          If you want to receive your mails with BSMTP you must
  1855.          copy (or make a link) from smail/rmail to rcsmtp,rfsmtp
  1856.          and rsmtp. Then speak with the system operator of your
  1857.          host, from which you want to receive BSMTP mails.
  1858. d765 9
  1859. a773 9
  1860.           An attempt has been made to remain compatible with sendmail
  1861.           alias file format, though the syntax is much more format
  1862.           free than sendmail. As distributed, case differences are
  1863.           ignored when comparing names to aliases.  Only alias names
  1864.           which resolve to the local host are recognized, and are
  1865.           stored in their local form.  Lines which start with a
  1866.           white space are continuation lines. Parenthesised strings
  1867.           are taken as comments (no nesting), as is anything after a
  1868.           '#'.  Here are some examples:
  1869. d798 4
  1870. a801 4
  1871.           All aliases are recursive, so care must be taken in their
  1872.           definition.  smail aliasing attempts to prevent infinite
  1873.           loops, and to do what was intended by the user.  For
  1874.           example, the alias:
  1875. d809 2
  1876. a810 2
  1877.           even though the second occurrence of mylogin matches the
  1878.           alias name. If you want to prevent smail from alias the
  1879. d813 2
  1880. a814 26
  1881.           Both forms of file inclusion are recursive, too, so watch
  1882.           out for nesting include files.  They may lead to infinite
  1883.           loops.
  1884.  
  1885.           While the cost of parsing an alias file is usually
  1886.           negligible, it's wise to take savings anywhere savings can
  1887.           be found.  Therefore, it's worth mentioning smail's parsing
  1888.           strategy.  smail will try to get by with doing as little
  1889.           work as possible when aliasing.  If on a particular
  1890.           invocation of smail, none of the recipent addresses are
  1891.           local, (i.e., not potential aliases) then the aliases file
  1892.           won't even be read.  Similarly, when an aliases file is
  1893.           read, it does not expand any of the :include: files until
  1894.           they are referenced.  Thus, in the alias (above) for mylist,
  1895.           the file :include:uulib:mylist would not be opened and
  1896.           read (parsed) unless mail was sent to mylist. Wise use of
  1897.           :include: files can greatly increase the efficiency of the
  1898.           alias utility.  It's not clear exactly where the break-even
  1899.           point is when deciding to use an  :include: file in an
  1900.           alias, versus having all of the recipents listed on the
  1901.           line; but if a mailing list is large (whatever that means)
  1902.           it is wise to use the :include: feature to save on parsing
  1903.           costs.  Note that this discussion only applies to the first
  1904.           form of file inclusion, since reading an aliases file
  1905.           constitutes a reference to :include: files of the second
  1906.           form.
  1907. d816 22
  1908. d841 2
  1909. a842 2
  1910.           Mailing lists are easily handled by two forms of file
  1911.           inclusion.  The first form is the same as is supported by
  1912. d847 3
  1913. a849 4
  1914.           In this example, each entry in uulib:mylist would be
  1915.           added to the alias for mylist. The second form is unique to
  1916.           smail. It allows the aliases file to include other aliases
  1917.           files.
  1918. d856 4
  1919. a859 4
  1920.           This would include the file uulib:more-aliases as a
  1921.           regular alias file.  This makes it easier to maintain groups
  1922.           of aliases that change frequently, such as the list of
  1923.           netnews moderators.
  1924. d864 10
  1925. a873 10
  1926.           There is another form of aliasing which works with the alias
  1927.           capability.  This is called user forwarding. For a given
  1928.           user name, if there is no alias for the user and the file
  1929.           users-home/.forward exists then its contents will be treated 
  1930.           as an alias for the user.  The syntax is the same as that of 
  1931.           the recipient lists in the alias file described above.
  1932.           If you want to use forwarding in uumail:, put a file with the
  1933.           name of the user you want to forward in uumail: and let the 
  1934.           first line have starts with Forward:. The rest of the file 
  1935.           will be treated as an alias described above.
  1936. d878 2
  1937. a879 2
  1938.           If the alias starts with an |, smail will call the
  1939.           string after the | with the mail file as input.
  1940. d897 3
  1941. a899 3
  1942.      This smail based on SMail V2.5 from Christopher Seiwald in 1987.
  1943.      Enhancements, enhancement requests, trouble reports, etc.,
  1944.      should be sent to
  1945. d910 1
  1946. a910 1
  1947.           $Id: smail.txt,v 1.7 1993/10/23 22:48:19 Aussem Exp Aussem $
  1948. d928 1
  1949. a928 1
  1950.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1951. d935 28
  1952. @
  1953.  
  1954.  
  1955. 1.7
  1956. log
  1957. @cosmetic changes
  1958. @
  1959. text
  1960. @d3 1
  1961. a3 2
  1962.                 smail, rmail - UUCP mailer with routing
  1963.                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1964. d12 1
  1965. a12 1
  1966.           o Rerouting of UUCP address using the path file
  1967. d14 1
  1968. a14 1
  1969.           o mail forwarding for users (~/.forward)
  1970. a15 2
  1971.           o mail forwarding for users in uumail:
  1972.  
  1973. d21 2
  1974. a22 1
  1975.           o returning undeliverable mails
  1976. d24 2
  1977. a25 1
  1978.           o support of the getty and AXSh passwd files
  1979. d27 1
  1980. a27 1
  1981.           o smarthost option if you don't  want to use a path file
  1982. d33 1
  1983. a33 1
  1984.           o accepts
  1985. d39 5
  1986. a43 1
  1987.           o BSMTP (Batch Simple Mail Transport Protocol) option
  1988. d45 1
  1989. d47 5
  1990. d56 2
  1991. a57 3
  1992.           the UUCP mail transport mechanism.  They are links to the same
  1993.           executable.  rmail receives mail from UUCP, smail introduces
  1994.           mail into UUCP.
  1995. d67 1
  1996. a67 1
  1997.           path (i.e. host!address) or a local address (i.e. user), but
  1998. d73 16
  1999. a88 15
  2000.           Copy smail to sendmail, make a link to rmail and copy mail
  2001.           in your UUCP binary directory. Make a directory Mail in uulib:.
  2002.           For the configuration of smail edit the `Config options' in
  2003.           uulib:config.
  2004.  
  2005.           When you want to use `Aliases' edit uulib:mail/aliases.
  2006.           If you have already an alias files from Dillons or Wusels
  2007.           sendmail, just copy it to uulib:mail/aliases or edit the
  2008.           SMAliasfile in uulib:config.
  2009.  
  2010.           If you are using a different NAME for sendmail than sendmail
  2011.           (e.g smail) than you have to insert a Sendmail Entry in uulib:config.
  2012.           This is necessary, if smail cannot deliver a mail or smail found
  2013.           a Return-To-Receipt Header. In both case, smail calls the sendmail
  2014.           program to deliver the mails.
  2015. d90 1
  2016. d92 29
  2017. a120 2
  2018. 2.1. Normal programs
  2019. --------------------
  2020. d122 6
  2021. a127 5
  2022.           Insert all users of your site in getty:passwd. Insert in
  2023.           the comment part the realname of the user.This is only
  2024.           important for the Realname if you donnot use the local env-
  2025.           iroment variable REALNAME. Besides smail takes the home-directory
  2026.           for `Mail forwarding' from the getty's passwd.
  2027. d129 2
  2028. a130 2
  2029. 2.2. AXSh programs
  2030. ------------------
  2031. d132 2
  2032. a133 2
  2033.           These programs use the AXSh passwd to find the realname
  2034.           of the sender and the home-directory.
  2035. d135 2
  2036. a136 2
  2037. 2.3. You want to use paths-files
  2038. --------------------------------
  2039. d139 2
  2040. a140 2
  2041.           to smail format using convert and (q)sort. For the CShell
  2042.           the command is:
  2043. d144 7
  2044. a150 5
  2045.           For receivers, which are not in your maps data, setup
  2046.           SM`Smarthost' in uulib:config. This host receives all
  2047.           mails for receivers that are not in uulib:mail/paths.
  2048.           Keep in mind, that you use the following syntax for
  2049.           your maps:
  2050. d154 5
  2051. a158 2
  2052.           hosttwo.with.domain=hosttwo
  2053.           yourhost host(DAILY+FAST),hosttwo(DAILY)
  2054. d160 13
  2055. d174 2
  2056. a175 2
  2057. 2.4. You don't want to use paths-files
  2058. --------------------------------------
  2059. d177 8
  2060. a184 3
  2061.           Insert SM`Smarthost' your_smart_host in your uulib:config
  2062.           file. The smarthost is the host which should receives all
  2063.           your mails
  2064. d186 13
  2065. a205 2
  2066. 3.1. Options
  2067. ------------
  2068. d207 2
  2069. a208 2
  2070.           -A   Print the resolved addresses.  Don't collect a message
  2071.                or invoke a mailer.
  2072. d210 1
  2073. a210 1
  2074.           -d   Be verbose and don't invoke other mailers.
  2075. d212 1
  2076. a212 1
  2077.           -v   Be verbose, but still invoke other mailers.
  2078. d215 2
  2079. a216 2
  2080.                Set hostname.  You can set this via the `Config options'
  2081.                in uulib:config, too.
  2082. d219 2
  2083. a220 2
  2084.                Set hostdomain. You can set this via the `Config options'
  2085.                in uulib:config, too.
  2086. d223 1
  2087. a223 1
  2088.                Use address on the From: line in locally generated
  2089. d227 3
  2090. a229 3
  2091.                Set path database file name if not uulib:mail/paths
  2092.                You can set this via the `Config options' in uulib:config,
  2093.                too.
  2094. d232 3
  2095. a234 3
  2096.                Set alias file name if not uulib:mail/aliases
  2097.                You can set this via the `Config options' in uulib:config,
  2098.                too.
  2099. d238 1
  2100. a238 1
  2101.                full name resolution using a sorted file, namelist, of
  2102. d241 1
  2103. a241 1
  2104.                appropriately.  These aliases are by their nature very
  2105. d243 1
  2106. a243 1
  2107.                recipients for each alias.  They are also numerous,
  2108. d249 2
  2109. a250 2
  2110.                manageable.You can set this via the `Config options'
  2111.                in uulib:config, too.
  2112. d252 11
  2113. a262 7
  2114.        -q number
  2115.                Take number as the queueing threshold.  When routing
  2116.                mail ( -o, -O, or domain addressed mail ) to a given
  2117.                host, if the cost listed in the paths file is less than
  2118.                the queueing threshold, then the mail will be sent
  2119.                immediately.  This overrides the default threshold (see
  2120.                QUEUECOST in defs.h) of DEDICATED+LOW.
  2121. d265 2
  2122. a266 3
  2123.                At most number jobs will be handed to uux for immediate
  2124.                delivery by a single invocation of smail (see
  2125.                MAXNOQUEUE in defs.h).
  2126. d273 1
  2127. a273 1
  2128.           -M   If smail fails to deliver the mail, don't send this
  2129. d279 1
  2130. a279 1
  2131.                mail without rerouting it.
  2132. d284 1
  2133. a284 1
  2134.                Deactivate rerouting !
  2135. d290 1
  2136. a290 1
  2137.                Activate rerouting !
  2138. d293 3
  2139. d297 1
  2140. a297 1
  2141.           -l   Instead of routing a domain address, send it to the
  2142. d302 3
  2143. a304 1
  2144.                including UUCP paths.
  2145. d306 3
  2146. a308 3
  2147.           -B   Send the mail via BSMTP (Batch Simple Mail Transport
  2148.                Protocol) to EVERY receiver ! If you want to send only
  2149.                to some receivers via BSMTP use the uulib:mail/bsmtp_sites
  2150. d312 1
  2151. a312 1
  2152.                Use address on the Cc: line in locally generated
  2153. d316 1
  2154. a316 1
  2155.                Use address on the Bcc: line in locally generated
  2156. d320 1
  2157. a320 1
  2158.                Use address on the To: line in locally generated
  2159. d325 3
  2160. a327 2
  2161.                Attention !!!
  2162.                Your filename have to begin with t:. Else use <file .
  2163. d330 1
  2164. a330 1
  2165.                Use text on the Subject: line in locally generated
  2166. d334 11
  2167. a344 1
  2168.                Use text as Realname in locally generated mail.
  2169. a345 9
  2170.           Most of the flags are also compile time options, since uux
  2171.           does not normally invoke rmail with the desired flags.
  2172.           smail resets any preset -l or -L flags.  -l flag causes
  2173.           rmail to send all domain addresses through the local mailer,
  2174.           to process addresses for non UUCP domains.   The -L flag
  2175.           causes rmail to send even explicit UUCP paths through the
  2176.           local mailer, presumably to make use of other transport
  2177.           mechanisms.  In both cases, rmail defers any routing until
  2178.           smail gets hold it.
  2179. d347 2
  2180. a348 2
  2181. 3.2. Addresses
  2182. --------------
  2183. d350 3
  2184. a352 3
  2185.           smail/rmail understands "user@@domain" and
  2186.           "user%site%site.domain@@domain" to be a domain
  2187.           address, "host!address" and "domain!site.domain%site%user"
  2188. d357 1
  2189. a357 1
  2190.           to be a domain address, and generates "path!domain!user"
  2191. d359 4
  2192. a362 5
  2193.           domain "domain!user" from UUCP "host!address", "domain"
  2194.           contains at least one (1) period.  Unlike the old
  2195.           rmail, smail/rmail gives precedence to @@ over ! when
  2196.           parsing mixed addresses, thus a!b@@c is parsed as (a!b)@@c,
  2197.           rather than a!(b@@c).
  2198. d364 1
  2199. a364 1
  2200. 3.3. Routing
  2201. d367 1
  2202. a367 1
  2203.           Because smail/rmail is the UUCP transport mechanism, it can
  2204. d370 1
  2205. a370 1
  2206.           addresses. To resolve a domain address, smail/rmail finds a
  2207. d378 2
  2208. a379 2
  2209.                address can also fully resolve to a local address (the
  2210.                UUCP path is null).
  2211. d382 1
  2212. a382 1
  2213.                righthand part of the domain specification, so it tacks
  2214. d385 2
  2215. a386 2
  2216.                understood, UUCP gateways listed in the path database
  2217.                must install new UUCP software, either smail/rmail or
  2218. d389 4
  2219. a392 4
  2220.           It is an error if a partially resolved address routes to the
  2221.           local host (a null UUCP path), since according to the
  2222.           routing table, the local host is responsible for resolving
  2223.           the address more fully.
  2224. d394 2
  2225. a395 2
  2226. 3.3.1. Rerouting
  2227. ----------------
  2228. d397 7
  2229. a403 7
  2230.           The -o flag causes smail/rmail to attempt to route the first
  2231.           component of a UUCP path, probably so it can impress people
  2232.           with how many UUCP hosts it knows.  If this fails, it passes
  2233.           the unrouted address to uux, in case the path database is
  2234.           not complete.  The -O flag causes smail/rmail to take a UUCP
  2235.           path and route the rightmost component of the path (save the
  2236.           user name) possible.  This is mostly for hosts that have
  2237. d407 13
  2238. a419 13
  2239.           database, then one more attempt to route the mail is made by
  2240.           searching for an entry in the database for a route to a
  2241.           `Smarthost' (smail takes DefaultNode from uulib:config). If
  2242.           this entry exists, then the mail will be forwarded along that
  2243.           route to be delivered.  This allows a host to depend on another,
  2244.           presumably better informed, host for delivering its mail.
  2245.           This kind of arrangement should be worked out, in advance, 
  2246.           with the smart-host's administrator.
  2247.  
  2248.           After smail/rmail resolves an address, it reparses it to see
  2249.           if it is now a UUCP path or local address.  If the new
  2250.           address turns out to be another domain address, smail
  2251.           complains because we don't like to resolve more than once.
  2252. d423 1
  2253. a423 1
  2254.           By default, smail will not alter the explicit bang path
  2255. d425 7
  2256. a431 7
  2257.           unuseable, (i.e., the next hop host is unknown) then smail
  2258.           will apply ALWAYS routing, and attempt to deliver the mail
  2259.           to the potentially new address.  If this fails too, then
  2260.           REROUTE routing will be applied to the address, and another
  2261.           attempt to deliver is made.  Lastly, an attempt to find a
  2262.           path to a better informed hostart-host (see `Smarthost')
  2263.           will be made and the mail passed to that host. If there
  2264. d434 1
  2265. a434 1
  2266.           in uulib:l.sys.
  2267. d436 1
  2268. a436 1
  2269. 3.4. Fromming
  2270. d439 1
  2271. a439 1
  2272.           smail/rmail collapses From_ and >From_ lines to generate a
  2273. d443 2
  2274. a444 2
  2275.           !'s), and tack on the address on the last From_ line; if
  2276.           that address is in user@@domain format, rewrite it as
  2277. d447 1
  2278. a447 1
  2279.           the From_ line.  For instance:
  2280. d465 4
  2281. a468 1
  2282. 3.5. Headers
  2283. d475 2
  2284. a476 2
  2285.           the top of each message. In addition smail support Cc: and
  2286.           `Return-Receipt-To headers'.
  2287. d478 1
  2288. a478 1
  2289. 3.6. Undeliverable mail
  2290. d484 2
  2291. a485 1
  2292.           or unknown host) will be returned to the sender.
  2293. d488 1
  2294. a488 1
  2295. 3.7. Return-Receipt-To headers
  2296. d491 1
  2297. a491 1
  2298.           smail/rmail will send an mail with a copy of the header
  2299. d493 9
  2300. a501 3
  2301.           Header. You can turn this off via the SMReceipt keyword in the
  2302.           uulib:config file. See `Local Mailer' for the recognition
  2303.           whether a user does exists on your site.
  2304. d503 7
  2305. a509 1
  2306. 3.8. From and Realname
  2307. d517 2
  2308. a518 2
  2309.                 in getty:passwd and take the comment as realname.
  2310.                 If not found look for Realname in uulib:config.
  2311. d520 10
  2312. a529 10
  2313.              => look at the local variable USER and REALNAME. if no REALNAME
  2314.                 enviroment variable exists, try to find USER
  2315.                 in getty:passwd and take the comment as realname
  2316.                 If not found look for RealName in uulib:config.
  2317.                 If no USER is found look for UserName in uulib:config.
  2318.  
  2319. 3.9. Cc headers
  2320. ---------------
  2321.  
  2322.           Are supported :-)
  2323. d531 2
  2324. a532 7
  2325. 3.10. Bcc Headers
  2326. -----------------
  2327.  
  2328.           Are supported :-)
  2329.  
  2330. 3.11. Config options
  2331. --------------------
  2332. d534 1
  2333. a534 1
  2334.           You can configure the following options in uulib:config
  2335. d579 1
  2336. a579 1
  2337.          # the command on your node, which receive your BSMTP
  2338. d590 8
  2339. a597 2
  2340. 3.12. Command line parsing
  2341. --------------------------
  2342. d615 2
  2343. a616 2
  2344. 3.13. Smarthost
  2345. ---------------
  2346. d618 1
  2347. a618 1
  2348.           If smail/rmail cannot resolve a path to the receiver of a
  2349. d620 1
  2350. a620 1
  2351.           You can config the name of the smarthost in uulib:config with
  2352. d626 1
  2353. a626 1
  2354. 3.14. Logfiles
  2355. d640 1
  2356. a640 1
  2357.           If you want to disable a log file set the entry in uulib:config
  2358. d643 18
  2359. a660 1
  2360. 3.15. Paths file
  2361. d663 87
  2362. a749 17
  2363.           Donnot use the following syntax for the maps file for sites
  2364.           you call directly.
  2365.           -------------------------- snip -------------------
  2366.           yrb = yrb.incubus.sub.org
  2367.           incubus    yrb.incubus.sub.org(DAILY+FAST)
  2368.           -------------------------- snip -------------------
  2369.  
  2370.           Just replace
  2371.  
  2372.           -------------------------- snip -------------------
  2373.           yrb.incubus.sub.org = yrb
  2374.           incubus    yrb(DAILY+FAST)
  2375.           -------------------------- snip -------------------
  2376.  
  2377.           If you donnot use the second syntax uux tries to send
  2378.           the mail to your smarthost, because it does not find
  2379.           yrb.incubus.sub.org in uulib:l.sys file.
  2380. d751 4
  2381. d756 1
  2382. a756 1
  2383. 4. Aliases
  2384. d759 1
  2385. a759 1
  2386. 4.1. Alias format
  2387. d836 1
  2388. a836 1
  2389. 4.2. Mailing list
  2390. d850 1
  2391. a850 1
  2392. 4.3. Include other alias files
  2393. d860 1
  2394. a860 1
  2395. 4.4. Mail forwarding
  2396. d865 1
  2397. a865 1
  2398.           user name, if there is no alias for the user and the file  
  2399. d874 2
  2400. a875 2
  2401. 4.5. Command piping
  2402. ------------------
  2403. a879 4
  2404. 5. Local Mailer
  2405. ---------------
  2406.           If smail delivers a local mail, it calls the local mail
  2407.           program with the following Syntax:
  2408. d881 2
  2409. a882 1
  2410.           mail mail-file address
  2411. a883 1
  2412.           SMail comes with two versions of mail:
  2413. a884 2
  2414.           o mail_axsh uses the AXSh passwd file to determinate
  2415.             whether a user exists
  2416. d886 1
  2417. a886 3
  2418.           o mail uses uumail: mail folder to determinate
  2419.             whether a user exists. If no mail-folder exists
  2420.             the user does not exists.
  2421. d888 3
  2422. a890 2
  2423.          If you want to deliver a mail to a non existing user
  2424.          set the enviroment variable MAILTONOEXIST.
  2425. d892 2
  2426. a893 10
  2427. 6. BSMTP
  2428. --------
  2429.          BSMTP is a option for smail/rmail to save transmission
  2430.          time, because your mails are compressed and batched (like
  2431.          you do with news).
  2432.  
  2433.          You can active the BSMTP protocoll directly via the -B
  2434.          option. The better way is to put all sites, which receives
  2435.          mails with BSMTP, in the uulib:mail/bsmtp_sites file.
  2436.          Simply one site by line.
  2437. a894 2
  2438.          BSMTP collects all mail in uuspool:batch/<nodename>. Before
  2439.          you call your node, you must execute smail with -D option
  2440. d896 3
  2441. a898 8
  2442.          Here comes an example:
  2443.  
  2444.          Your node for BSMTP is testhh.
  2445.  
  2446.             put in uulib:mail/bsmtp_sites
  2447.             ---------------------- snip ------------------
  2448.             testhh
  2449.             ---------------------- snip ------------------
  2450. a899 4
  2451.             All mails smail/rmail sends to testhh, will be
  2452.             stored in uuspool:batch/testhh.
  2453.  
  2454.             Before you call testhh execute
  2455. a900 1
  2456.             smail -Dh testhh
  2457. d902 1
  2458. a902 5
  2459.          The command for compressing your mails can be changed
  2460.          via SMCompress config option. The command on your node,
  2461.          to deliver your mails can be changed via SMBsmtpCmd config
  2462.          option (default rcsmtp). Normally you should use the
  2463.          following pairs:
  2464. a903 5
  2465.          SMCompress                    SMBsmtpCmd
  2466.          ----------------------------------------
  2467.          compress           <->        rcsmtp
  2468.          freeze             <->        rfsmtp
  2469.          no compress        <->        rsmtp
  2470. a904 4
  2471.          If you want to receive your mails with BSMTP you must
  2472.          copy (or make a link) from smail/rmail to rcsmtp,rfsmtp
  2473.          and rsmtp. Then speak with the system operator of your
  2474.          node from which you want to receive BSMTP mails.
  2475. a905 2
  2476. 7. Thanks
  2477. ---------
  2478. a906 1
  2479.           for Betatesting...
  2480. a907 2
  2481.                 Gerhard Schneider
  2482.                 Thorsten Gau
  2483. d909 1
  2484. a909 2
  2485. 8. Version and Author
  2486. ---------------------
  2487. d911 2
  2488. d914 1
  2489. a914 3
  2490.      This smail based on SMail V2.5 from Christopher Seiwald in 1987.
  2491.      Enhancements, enhancement requests, trouble reports, etc.,
  2492.      should be sent for the Amiga version to
  2493. a915 1
  2494.                       aussem@@mavhh.hanse.de
  2495. d917 2
  2496. a918 1
  2497.           $Id: smail.txt,v 1.6 1993/10/23 22:24:54 Aussem Exp Aussem $
  2498. d920 1
  2499. a920 3
  2500. 9. Copyright
  2501. ------------
  2502.      This program is free software; you can redistribute it and/or
  2503. d932 1
  2504. a932 11
  2505.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  2506.  
  2507. 10. Index
  2508. =========
  2509.  
  2510.    Alias escape     -> `Alias format'
  2511.    AXSh             -> `AXSh programs',`Local Mailer'
  2512.    Dillons sendmail -> `Features',`Installation'
  2513.    mail             -> `Local Mailer'
  2514.    uulib:config     -> `Config options'
  2515.    uulib:path       -> `Paths file'
  2516. @
  2517.  
  2518.  
  2519. 1.6
  2520. log
  2521. @BSMTP docs insert
  2522. @
  2523. text
  2524. @d490 7
  2525. a756 1
  2526.  
  2527. d761 1
  2528. d775 1
  2529. a775 1
  2530.           $Id: smail.txt,v 1.5 1993/10/16 14:55:54 Aussem Exp Aussem $
  2531. @
  2532.  
  2533.  
  2534. 1.5
  2535. log
  2536. @-M option text included
  2537. address options included
  2538. @
  2539. text
  2540. @d34 1
  2541. a34 1
  2542.           o accepts 
  2543. d37 2
  2544. d40 1
  2545. d42 1
  2546. d226 5
  2547. d268 4
  2548. a271 3
  2549.           smail/rmail understands "user@@domain" to be a domain
  2550.           address, "host!address" to be a UUCP path, "real name <address>"
  2551.           to be "address" and anything else to be a local address.
  2552. d464 1
  2553. a464 1
  2554.           SMRerouting
  2555. d471 1
  2556. a471 1
  2557.           SMHandle
  2558. d481 10
  2559. d703 49
  2560. a751 1
  2561. 6. Thanks
  2562. d756 1
  2563. d758 1
  2564. a758 1
  2565. 7. Version and Author
  2566. d768 1
  2567. a768 1
  2568.           $Id: smail.txt,v 1.4 1993/10/11 22:14:29 Aussem Exp Aussem $
  2569. d770 1
  2570. a770 1
  2571. 8. Copyright
  2572. d786 2
  2573. a787 2
  2574. 9. Index
  2575. ========
  2576. d795 1
  2577. a795 1
  2578.    
  2579. @
  2580.  
  2581.  
  2582. 1.4
  2583. log
  2584. @forwarding with uumail:user only if the file starts
  2585. with Forward:
  2586. @
  2587. text
  2588. @d34 5
  2589. d194 3
  2590. d699 1
  2591. a699 1
  2592.           $Id: smail.txt,v 1.3 1993/10/10 20:00:36 Aussem Exp Aussem $
  2593. @
  2594.  
  2595.  
  2596. 1.3
  2597. log
  2598. @Bcc and uumail:user documented
  2599. @
  2600. text
  2601. @d642 7
  2602. a648 4
  2603.           users-home/.forward exists or uumail:user does not start 
  2604.           with From line , then its contents will be treated as an 
  2605.           alias for the user.  The syntax is the same as that of the 
  2606.           recipient lists in the alias file described above.
  2607. d691 1
  2608. a691 1
  2609.           $Id: smail.txt,v 1.2 1993/09/29 13:25:00 Aussem Exp Aussem $
  2610. @
  2611.  
  2612.  
  2613. 1.2
  2614. log
  2615. @Sendmail Config Text insert
  2616. @
  2617. text
  2618. @a9 1
  2619.             (except Bcc: headers)
  2620. d15 1
  2621. a15 1
  2622.           o mail forwarding for all users (~/.forward)
  2623. d17 2
  2624. d20 1
  2625. a20 1
  2626.             (execpt -raw and Bcc:)
  2627. d218 4
  2628. d419 1
  2629. a419 1
  2630.           Are not supported :-( at the moment)
  2631. d640 6
  2632. a645 6
  2633.           capability.  This is called per user forwarding. For a given
  2634.           user name, if there is no alias for the user then, if the
  2635.           file  user/.forward exists, then its contents will be
  2636.           treated as an alias for the user.  The syntax is the same as
  2637.           that of the recipient lists in the alias file described
  2638.           above.
  2639. d669 3
  2640. d688 1
  2641. a688 1
  2642.           $Id: smail.txt,v 1.1 1993/09/25 22:47:05 Aussem Exp Aussem $
  2643. @
  2644.  
  2645.  
  2646. 1.1
  2647. log
  2648. @Initial revision
  2649. @
  2650. text
  2651. @d65 7
  2652. d680 1
  2653. a680 1
  2654.           $Id:$
  2655. @
  2656.