DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Managing mail with MMDF

Forwarding mail from one account to another

To forward mail sent to one account to a second account, create a file called .maildelivery in the first user's home directory. The file must be owned by the user or by root. Use this command to set the file's permissions:

   chmod 600 .maildelivery
Suppose you want to forward mail addressed to peter to user wendy. Create .maildelivery in peter's home directory. Place this line in the file:
   addr  peter  |  A  /usr/lib/mail/execmail  wendy
Mail sent to peter will now be sent to wendy.

You can create a system-wide forwarding file (with the same format as .maildelivery files) in /usr/lib/mail/maildelivery. Any entries in a user's personal .maildelivery file take precedence over those in the system-wide file.

This same task can be accomplished using the Alias Administration Manager. See ``Managing mail aliases and lists''.


NOTE: Mail forwarding can also be defined by placing the forwarding address in a .forward file in the user's home directory. The .forward file must be readable by user mmdf. However, this definition is overridden if there is any system-wide alias defined for the user.

See also:


Next topic: Changing the system name
Previous topic: Specifying the MMDF ``signature''

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003