home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
internet
/
nbase054n
/
!Newsbase
/
Support
/
taylor
/
Doc
/
lmail
next >
Wrap
Text File
|
1994-09-19
|
3KB
|
92 lines
Using lmail
-----------
lmail is a very simple minded local mail delivery program with a
mail forwarding forward capability. It is intended to be used with
Taylor Uucp and Thomas Aeby's sendmail. To set it up, you need to have
a reasonably well installed Taylor Uucp and an environment variable
Uucp$MailDest, which tells lmail where to put the mail. If
Uucp$MailDest is unset, incoming mail will be lost! lmails command
line syntax is:
lmail user < mail
User may not contain @ or !, i.e. it may not be a full internet- or
uucp adress, lmail is for local delivery only!
Installation
------------
To use lmail you add lines like the following to your sendmail
configuration file (supposing 'mysite' is your site):
--- START ---
# mail to my local host goes through a local mail delivery program.
mysite!* lmail %0 < %f
*@mysite lmail %0 < %f
*@mysite.* lmail %0 < %f
... other lines
# all the mail that arrives here must be local
* lmail %0 < %f
--- END ---
!forward files
--------------
Every user may have a !forward file. Such a file consists of multiple
recipients, one line for each recipient! A recipient may also be a pro-
gram, in which case you have to prefix it by either '|'. Every command
may contain the following macros:
%f will be replaced by the name of the file containing the mail
%r will be replaced by the username of the local recipient
%o will be replaced by the adress of the originator of the mail.
This takes into account that Reply-To: takes precedence over From:.
A !forward file may also contain comments, which have to have '#' as
the first char in a line, or blank lines. A recipient may not be
followed by a comment! If you have a !forward file, mail will be
forwarded to everyone or -thing that is in there instead of you! If
you want to receive the mail in spite of the !forward file, put your
name in it on a line of its own. The following is a sample !forward
file for the user user.
--- START ---
# User "user"s forward file.
# I forward my mail to my account at hell.com:
user@hell.com
# and, because I'm on vacation, I start the program "vacation" with the
# adress of the originator of the mail.
|vacation %o
# I want to keep a copy of my mail...
user
--- END ---
CAUTION: Always put your own name on a line of its own! rmail gets called
for every line that is not a program and contains names other than
your own, so it will enter an infinite loop!
Be also careful to have every revipient on a line of its own, and not
to put spaces around your own name. The !forward file reader of lmail
is very primitive.
You could use this to set up a mailing list as follows:
--- START ---
# Mailing list grisum@fasel.robin.de
# grisum interests
# the following command archives the mail.
|archive %f
# these are the recipients of the list.
bla@blum.somewhere.de
user@site.domain
nosuchuser@no.such.domain
--- END ---