Forwarding e-mail

If you want to forward your e-mail from machine A to machine B, create a file in your home directory on machine A called ".forward". (No quotes, but it must start with a period.) This file should contain one line, such as:

joeblow@machineB.jhu.edu

The .forward file should be made readable to everyone by typing "chmod a+r .forward". Be sure that the addresses are valid; if not, the bounced message may be forwarded also, creating another bounced message, and so on, and so on.

Other examples:

joeblow@machineB.jhu.edu, jblow@hotmail.com

The above forwards to two other addresses.

\joeblow, joeblow@machineB.jhu.edu

The above forwards e-mail to machine B, but also saves a copy on machine A. The backslash prevents the .forward file from being read again, which would lead to an infinite recursion.

Another warning: before forwarding mail from machine A to machine B, turn off forwarding in the other direction (if it exists) by removing any .forward file on machine B.

A couple more technicalities: If your .forward file or your home directory are writable by group or other, then your .forward file won't be used. (This is a security precaution.) Also, if you have a file called .forward.chow, it will be used instead of your .forward file.


Page last updated 8/28/2005.
Feedback: jkong@math.jhu.edu.
Back to main help page.