Difference between revisions of "Email Forwarding"
(New Page) |
(Elaboration) |
||
Line 1: | Line 1: | ||
− | + | Suppose that you use another email account as your primary account and that you would like all your ECE email to be delivered there. | |
− | + | There are two ways to accomplish this: | |
− | + | * with directives in <tt>.forward</tt> files or | |
+ | * with directives in <tt>.procmailrc</tt> files. | ||
− | + | Please read [[How Received Email Is Processed]] to understand the difference between using <tt>.forward</tt> and <tt>.procmailrc</tt>. | |
− | + | ||
− | + | Take care not to create a mail forwarding loop. If your other account is also configured to forward mail to your ECE account, the mail servers will keep forwarding messages to each other forever! | |
− | + | ====Using <tt>.forward</tt> To Forward Email==== | |
+ | Create a plain text file in your home directory named <tt>.forward</tt> containing just the address(es) that you want to forward mail to. If there are multiple destinations, put them on separate lines. For example: | ||
+ | <pre> | ||
+ | somebody@example.com | ||
+ | </pre> | ||
− | + | To keep a copy in your ECE account while also forwarding the mail, include a line with your username preceded by a backslash: | |
<pre> | <pre> | ||
− | + | \myusername | |
+ | somebody@example.com | ||
</pre> | </pre> | ||
− | ====Using | + | ====Using <tt>.procmailrc</tt> To Forward Email==== |
+ | Include the following rule in your <tt>.procmailrc</tt> file: | ||
<pre> | <pre> | ||
− | + | :0 | |
− | + | ! somebody@example.com | |
</pre> | </pre> |
Revision as of 10:08, 26 September 2012
Suppose that you use another email account as your primary account and that you would like all your ECE email to be delivered there.
There are two ways to accomplish this:
- with directives in .forward files or
- with directives in .procmailrc files.
Please read How Received Email Is Processed to understand the difference between using .forward and .procmailrc.
Take care not to create a mail forwarding loop. If your other account is also configured to forward mail to your ECE account, the mail servers will keep forwarding messages to each other forever!
Using .forward To Forward Email
Create a plain text file in your home directory named .forward containing just the address(es) that you want to forward mail to. If there are multiple destinations, put them on separate lines. For example:
somebody@example.com
To keep a copy in your ECE account while also forwarding the mail, include a line with your username preceded by a backslash:
\myusername somebody@example.com
Using .procmailrc To Forward Email
Include the following rule in your .procmailrc file:
:0 ! somebody@example.com