|
|
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 .maildeliverySuppose 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 wendyMail 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''.
See also: