home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / nbase054n / !Newsbase / Support / taylor / Doc / lmail next >
Text File  |  1994-09-19  |  3KB  |  92 lines

  1. Using lmail
  2. -----------
  3.  
  4. lmail is a very simple minded local mail delivery program with a
  5. mail forwarding forward capability. It is intended to be used with
  6. Taylor Uucp and Thomas Aeby's sendmail. To set it up, you need to have
  7. a reasonably well installed Taylor Uucp and an environment variable
  8. Uucp$MailDest, which tells lmail where to put the mail. If
  9. Uucp$MailDest is unset, incoming mail will be lost! lmails command
  10. line syntax is:
  11.  
  12. lmail user < mail
  13.  
  14. User may not contain @ or !, i.e. it may not be a full internet- or
  15. uucp adress, lmail is for local delivery only!
  16.  
  17. Installation
  18. ------------
  19.  
  20. To use lmail you add lines like the following to your sendmail
  21. configuration file (supposing 'mysite' is your site):
  22.  
  23. --- START ---
  24. # mail to my local host goes through a local mail delivery program.
  25. mysite!* lmail %0 < %f
  26. *@mysite lmail %0 < %f
  27. *@mysite.* lmail %0 < %f
  28.  
  29. ... other lines
  30.  
  31. # all the mail that arrives here must be local
  32. * lmail %0 < %f
  33. --- END ---
  34.  
  35. !forward files
  36. --------------
  37.  
  38. Every user may have a !forward file. Such a file consists of multiple
  39. recipients, one line for each recipient! A recipient may also be a pro-
  40. gram, in which case you have to prefix it by either '|'. Every command
  41. may contain the following macros:
  42.  
  43. %f will be replaced by the name of the file containing the mail
  44. %r will be replaced by the username of the local recipient
  45. %o will be replaced by the adress of the originator of the mail.
  46.    This takes into account that Reply-To: takes precedence over From:.
  47.  
  48. A !forward file may also contain comments, which have to have '#' as
  49. the first char in a line, or blank lines. A recipient may not be
  50. followed by a comment! If you have a !forward file, mail will be
  51. forwarded to everyone or -thing that is in there instead of you! If
  52. you want to receive the mail in spite of the !forward file, put your
  53. name in it on a line of its own. The following is a sample !forward
  54. file for the user user.
  55.  
  56. --- START ---
  57. # User "user"s forward file.
  58. # I forward my mail to my account at hell.com:
  59.  
  60. user@hell.com
  61.  
  62. # and, because I'm on vacation, I start the program "vacation" with the
  63. # adress of the originator of the mail.
  64.  
  65. |vacation %o
  66.  
  67. # I want to keep a copy of my mail...
  68.  
  69. user
  70. --- END ---
  71.  
  72. CAUTION: Always put your own name on a line of its own! rmail gets called
  73. for every line that is not a program and contains names other than
  74. your own, so it will enter an infinite loop!
  75. Be also careful to have every revipient on a line of its own, and not
  76. to put spaces around your own name. The !forward file reader of lmail
  77. is very primitive.
  78.  
  79. You could use this to set up a mailing list as follows:
  80. --- START ---
  81. # Mailing list grisum@fasel.robin.de
  82. # grisum interests
  83.  
  84. # the following command archives the mail.
  85. |archive %f
  86.  
  87. # these are the recipients of the list.
  88. bla@blum.somewhere.de
  89. user@site.domain
  90. nosuchuser@no.such.domain
  91. --- END ---
  92.