Computing Topics --> Electronic Mail (E-Mail) --> University E-Mail Systems --> Glue E-Mail --> Forwarding Mail on Glue -->

Forwarding Mail on Glue

To have all of your incoming mail to your Glue account forwarded to another account do the following:

  1. Log in to your account using a terminal program. Enter your account name and password when prompted.
  2. Get into the right directory by typing:

    cd /mail/user-id for Glue (where user-id is your Glue account name).

  3. Set up the .forward file by using the pico editor or your text editor of choice. For pico type

    pico .forward

    You'll get a screen similar to Pine's mail composing screen, except without the ready-made mail header at the top. The cursor is where it needs to be for you to type your new e-mail address:

    1. Type the new e-mail address to which you want mail to be forwarded. If forwarding mail to Mail@UMD, be sure to use the address: user-id@mail.umd.edu where user-id is your directory ID.
    2. Press Control-X (the Ctrl and X keys on your keyboard) to exit from pico (the same as in Pine)
    3. Type y to confirm that you want to save the "buffers"
    4. Confirm that you want .forward as the name by pressing Return or Enter

IMPORTANT!!! BE CAREFUL:

  1. Make sure you type the forwarding address correctly. If you type a bad address, people who send you mail will get a bounced mail item back and will have no way to get in touch with you to tell you about it unless they have your phone number.
  2. Don't accidentally set up a forwarding loop, where mail from one account is forwarded to another account that forwards it back. (You'd be amazed how often people do this!) Mail sent into such a situation will also be bounced back to the sender, usually with the reason "Too many hops."

TEST IT!

Before you log out from this Unix session, send mail to yourself here at the system you're currently logged onto (you can use whatever e-mail program you normally use to send the mail).

Wait a minute, then check the destination account and make sure the message arrives there. If it does, you know you've done all this correctly.

Turning Forwarding Off and On

You can toggle this forwarding off and on by simply renaming the .forward file ( mv is the Unix "rename" command, issued at the Unix prompt). Probably the simplest way is just to remove or replace the initial "." in the filename. Just as before:

  1. Get into the right directory (see Step 1, above)
  2. Type the following
    To turn forwarding off:   mv  .forward  forward
    To turn forwarding on:   mv  forward  .forward

  3. Get back to your home directory:   cd

Keeping a copy on this system, or doing multiple forwards

You can forward the mail to several addresses -- just list them on the same line, separated by commas. If one of those addresses is

\xxxxxxxx

(where xxxxxxx is your user-id), a copy of each mail item will not only be forwarded to the other address(es), but will also be kept on your own account. So to forward a copy of each message to two different accounts AND keep a copy on this system, you'd use something like:

myacct@highprice.net,screenname@aol.com,\xxxxxxxx

Of course, there's no point in piling up duplicate mail unless you have a special reason for doing so....

How are we doing? Comments on this page?
Office of Information Technology
Office of Information Technology Help Desk Web Site University of Maryland Web Site Office of Information Technology Web Site