Setting up your unix account to forward mail to another destination

In the following example the unix account is smith and the other destination is the same username at another machine (otherplace.faraway.es)

In your unix account type the following

% cd ~
% echo smith@otherplace.faraway.es > .forward
Now check the file contents
% cat .forward
smith@otherplace.faraway.es 
To disable the forwarding delete the file .forward in your home directory using the rm command
% cd ~
% rm .forward
Check the file no longer exists in your home directory
% cd ~
% ls -l .forward
When setting a destination to which your mail will be forwarded please first check that the destination does not itself also have a forward destination established or your mail could bounce around from one machine to another. Gary Mitchell 19-Nov-1996

References to related topics