This page describes how to forward your Duke Statistics email to another email account.
We do *not* recommend the old practice or using a .forward file in your home directory. This causes problems when spam is forwarded from the Stats mail server to your other account, often resulting in our server being banned. Instead, we recommend you use the following instructions to add a section to your .procmailrc file to forward your email.
Relevant files
The following files are used to set up forwarding:
.procmailrc This file controls the filtering and delivery of your inbound mail
Accessing the files
From a linux computer
Linux users will find or create the needed files in their home directory after logging in.
From a Windows computers
Windows users within the department have two options:
Log into a DSS linux computer via SSH using puTTY, F-Secure SSH or another SSH program.
Access \\pdc\USERNAME where USERNAME is your DSS login name. To open a windows onto your home directory:
Click Start
Select Run...
Enter \\pdc\USERNAME
- Click OK You may have to turn on viewing hidden files to see the two files we need to update.
To Turn ON email forwarding
Open the .procmailrc file with your favorite editor.
emacs ~/.procmailrc
At the end of the file look for a stanza that looks like:
### ### Email Forwarding ### #:0 #! USER@OTHER.ACCOUNT
Anything following a hash mark, '#', is a comment. If you don't have this section in your .procmailrc then add it, changing USER@OTHER.ACCOUNT to be the account you want your mail forwarded to.
Remove the hash sign, '#', character from the beginning of the last two lines
:0 ! USER@OTHER.ACCOUNT
to activate the forwarding.Save the .procmailrc file.
To Turn OFF email forwrding
Open your .procmailrc file in your favorite editor.
emacs ~/.procmailrc
- Locate the Email Forwarding stanza at the end of the file.
Add a hash mark, '#', at the beginning of the last two lines of that stanza:
#:0 #! USER@OTHER.ACCOUNT
Save the .procmailrc file.