home *** CD-ROM | disk | FTP | other *** search
- @(#) README 1.6 11/19/89 14:00:51
-
- This is an extension to the pc-mail package (uucp mail for pc's) that
- appeared in comp.sources.misc, april 1988. It is intended for an
- environment where pc-mail users mount their personal mail directories
- from a file server. The programs in the present package run on the file
- server. They directly access the per-user pc-mail directories and thus
- replace the UUCP file transfer functions of the pc-mail software. The
- programs were tested with SunOS 4.0.3 and Microport System-V/AT 2.3.
- This software is in the public domain.
-
- Please report any problems etc. to the author (Wietse Venema) via one
- of the following e-mail addresses:
-
- wswietse@lso.win.tue.nl
- wswietse@heitue5.bitnet
-
- The remainder of this document describes the operation of the software,
- how to install the software, how to add new users, and how to migrate
- users from pc-mail over UUCP to pc-mail over PC-NFS.
-
- Operation
- =========
-
- The UUCP file transfer functions of the pc-mail "cico.exe" program are
- taken over by the following two programs that run on the file server:
-
- pc-mail: deliver mail to a user's mail directory (the receiving
- function of the "cico.exe" program). This program is
- intended to be called by sendmail.
-
- pc-maild: scan user mail directories for unsent mail, and pipe it
- through the UNIX rmail command (the sending function of
- the "cico.exe" program).
-
- Installation on the server
- ==========================
-
- Build the pc-mail and pc-maild programs. In the Makefile, you can
- define the location of the executable programs and the pc-mail spool
- area, and how often the daemon program will scan user directories for
- unsent mail. You will probably have to do `make depend' before you
- can compile the programs.
-
- Execute the following command to create a pc-mail spool area, and
- install the pc-mail and pc-maild programs. You must be root.
-
- % make install
-
- The output from the "make" command will depend on how you specified the
- path names in the Makefile:
-
- mkdir /var/spool/pc-mail
- chmod 755 /var/spool/pc-mail
- cp pc-mail pc-maild /usr/local/lib
- chown root /usr/local/lib/pc-mail
- chmod u+s /usr/local/lib/pc-mail
-
- Execute the following command to install the manual pages, if you want
- to.
-
- % make installman
-
- Again, output from make will depend on what you specified in the
- Makefile:
-
- cp pc-mail.8 pc-maild.8 /usr/local/man/man8
-
- Add a line with the command
-
- /usr/local/lib/pc-maild
-
- to the file /etc/rc.local (the exact name of the rc script depends on
- your version of unix, and the exact path name of the pc-maild program
- depends on where you installed it).
-
- For now, you will have to start the pc-maild program by hand (unless
- you wish to reboot the machine).
-
- Add to the sendmail.cf file a line that looks like:
-
- Mpc, P=/usr/local/lib/pc-mail, F=lsDFMn, S=xxx, R=yyy, A=pc-mail $u
-
- Where xxx and yyy may be the same rewriting rules as used for the local
- mailer (usually defined with the "Mlocal" line).
-
- In sendmail.cf, at the end of ruleset S0, just before the local mailer
- will be invoked (something like "R$* $#local $:$1"), add a line with
-
- R $=X $#pc $:$1
-
- Use a different letter if X is already in use. A later section
- describes how to convince sendmail that X is a list of login names of
- pc-mail users.
-
- Adding users (server side)
- ==========================
-
- Add the user to the password data base. In the spool area on the
- server, create a subdirectory for the pc-mail user. The directory must
- be owned by that user; for reasons of privacy, mode 0700 is recommended.
- In the following example, replace username by the actual login name of
- the user.
-
- % mkdir /var/spool/pc-mail/username
- % chown username /var/spool/pc-mail/username
- % chmod 700 /var/spool/pc-mail/username
-
- Adding users (pc side)
- ======================
-
- On the pc, adjust the AUTOEXEC.BAT, NETWORK.BAT or DRIVES.BAT files so
- that they contain the following commands (replacing server by the name
- of the NFS server host, and replacing username by the login name of the
- actual user):
-
- net name username *
- net use m: \\server\var\spool\pc-mail\username
- set MAILDIR=m:\
-
- The trailing \ is needed on the last command, or the mail program will
- complain that it "cannot access some essential data files".
-
- If the user had a UUCP-based pc-mail link, you can now remove the -p
- option from any CMAIL commands that may appear in batch files.
-
- Reboot the pc.
-
- If the user had a UUCP-based pc-mail link, copy the contents of the
- user's LOCAL mail directory to the REMOTE mail directory on the file
- server. From now on the local mail directory will no longer be needed.
-
- Test if the mail program works by creating a small mail message. Since
- the message will automatically be picked up by the pc-maild program the
- files may disappear before you had a chance to type a DIR command!
-
- Adding users (server side again)
- ================================
-
- Add the user to the list of NFS pc-mail users. There are two ways to
- accomplish the same result. The list of users can be hardcoded in the
- sendmail.cf file, e.g.:
-
- CXjohn marsha
-
- Multiple usernames on a line, and multiple CX lines are allowed. A
- better way is to have sendmail read the list from an external file,
- by putting the following line into the sendmail.cf file:
-
- FX/etc/pc-mail-users %s
-
- The /etc/pc-mail-users file should contain only a single login name per
- line.
-
- Kill the sendmail daemon and restart it.
-
- If the user had a UUCP-based pc-mail connection, you can now get rid of
- aliases that were needed for UUCP support.
-
- Note that the sendmail ON THE NFS SERVER will not read the user's
- .forward file. The file will still be useful, however, if the user's
- home directory is exported to OTHER hosts running sendmail. In that
- case you will want to create a .forward file in the user's home
- directory containing
-
- username@fully-qualified-hostname
-
- Adding users (pc side again)
- ============================
-
- This step can be skipped if the user had no UUCP-based pc-mail connection.
-
- If the user used to have a UUCP connection, pick up any mail that still
- resides in the UUCP spool area on the file server (the mail will now be
- stored in the user's private remote mail directory through the miracles
- of NFS).
-
- At this point the cico.exe program has become obsolete. You may consider
- to replace it by a small C program that does nothing.
-
- Adding users (server side again)
- ================================
-
- This step can be skipped if the user had no UUCP-based pc-mail connection.
-
- The user's uucp login can be removed from the password file.
-