Easy way:
Log in to https://portal.stat.ubc.ca then:
Go to My Stuff -> Email Forwarding/Vacation Message or click here to get there.
Manual Setup Forwarding Email:
Log into the StatNet server using SSH.
$ ssh your_email@login.stat.ubc.ca
Check if there is a file named ".forward" in your home directory.
$ ls -l .forward
If there is no such file, then use any text editor (e.g. vi, emacs) to create the ".forward" file in your home directory.
# If you want only forwarding, and don't want a local copy of the message
At your home directory, use any text editor to create the ".forward" file..
$ emacs .forward or vi .forward
your_other@email.address
OR simply run this command
$ echo 'your_other@email.address' > ~/.forward
# If you want forwarding, and also keep a local copy of StatNet message. NOT recommended,
$ echo '\user_name,your_other@email.address' >~/.forward
NOTE: the '\' character is important: it disables any aliasing and prevent Email loops.
If there already exists the ".forward" file in your home directory, then it means you already setup e-mail forwarding. You can use any text editor (e.g. vi, emacs) to change the destination e-mail address.
For example, if the destination address in the ".forward" file is abc@gmail.com, and you want to change
the destination address to abcyahoo@yahoo.com. Then you can use any text editor to open the ".forward" file.
Then replace
abc@gmail.com
with
abcyahoo@yahoo.com
To deactivate, remove the above file:
$ rm ~/.forward