Setting up forwarding with .forward
Mail forwarding is handled by the file .forward in your home directory. To start forwarding your mail, create this file, using any text editor and insert entries according to the following examples.
Assume your username at the IAS is ezeno, then to forward to your account email@example.com and keep a local copy, you would use:
The backslash(\) is used to "escape" the name that follows. This tells the mail program to deliver the message locally.
To forward your mail to the local account plato and still keep a copy for ezeno, you would use:
To forward only to firstname.lastname@example.org you would use:
Setting up forwarding with Horde Webmail
To set up forwarding with Horde Webmail:
- Login to http://mail.math.ias.edu
- In the left-hand column, under Mail, click on Filters
- Then click on Forward
- Type in the forwarding address next to the box "Address(es) to forward to:"
- If you want to keep a copy in your IAS mailbox, check off "Keep a copy of messages in this account?"
Setting up forwarding with procmail
To set up forwarding with procmail:
- Edit your .procmailrc file located in the root of your home directory
- Add the following lines: If you want to forward all mail without keeping a copy here:
:0 ! email@example.com
If you want to forward all mail and keep a copy here:
:0c ! firstname.lastname@example.org
The advantage of using .procmailrc over .forward is that mail is filtered first before forwarding takes place, eliminating forwarding of unwanted mail.
A .forward file may also be used to send your mail an application for further processing.
This is the case with the vacation program that notifies senders when you are away from your email.
procmailalso works in a similar way, forwarding your mail to the procmail program for processing.
Procmail may be used to file and filter your mail according to several search criteria.