Mail forwarding
From OCFwiki
Our mail delivery system looks for a file named .forward in your account home directory to determine where it delivers your mail. If this file does not exist, mail is delivered to your OCF account.
Contents |
Enabling mail forwarding
To enable mail forwarding, login via SSH and execute the following command:echo "login@remotehost" >> ~/.forwardwhere login@remotehost is the desired recipient address, such as foo@yahoo.com. Alternatively, you may edit ~/.forward and add a recipient address to the file.
Multiple recipient addresses
You can forward mail to more than one address by executing the command to add a forwarding address multiple times, each time with a different recipient address. Again, you may directly edit ~/.forward, placing each recipient address on its own line.
Saving a copy on the OCF
You can retain a copy of all forwarded messages in your OCF account by adding the following line to ~/.forward:\usernamewhere username is your OCF username.
Selective mail forwarding
You can create files named in the format of ~/.forward+foo (where foo is an arbitrary word) to selectively forward your mail. Mail sent to username+foo@ocf.berkeley.edu will be forwarded to the addresses listed in .forward+foo.
Disabling mail forwarding
To disable mail forwarding, delete or rename the .forward files in your home directory.
See also
You can learn more about mail forwarding by logging in via SSH and typingabout forwardingor by reading the manpage for forward.
