EMAIL Forwarding

CLASSE Unix e-mail account

  1. Log into any Linux computer (e.g. LNX201) using ssh. Windows users can click here for instructions on connecting to LNX201 from their desktop.
  2. At the command line, type in the following command:
    cd /nfs/mail/{initial}/{username}/
    Make sure you replace {initial} with the first letter of your LEPP username, and {username} with the complete username. If your LEPP username was leppuser, you would type:
    cd /nfs/mail/l/leppuser/
  3. Press [Enter]
  4. Then, type the following command:
    ls -la .forward
    ("l" is a lower case L [ell], not a capital I [eye])
  5. Press [Enter]. One of two things will happen.
    1. If you get
      ls: .forward: No such file or directory
      then
      1. Create a new .forward file by typing the following command:
        pico .forward
      2. Then, in the new file, type in your CIT E-mail address. For example, if your NetID is lu44, type the line
        lu44@cornell.edu
      3. Then save the file. Press Ctrl-O [Enter]
        That is, hold down the Ctrl key and type an O, then release the Ctrl key and type the Enter key.
      4. Exit pico by typing a Ctrl-X
        That is, hold down the Ctrl key and type an X.
      5. Then log out of the Linux system by typing:
        logout
        and pressing [Enter]
    2. If you get something like
      -rw-r--r-- 1 leppuser bin 141 Mar 27 11:26 .forward
      then
      1. Open your current .forward file with pico:
        pico .forward
      2. Edit the file to only forward to CIT Mail by deleting your old e-mail address(es) and typing on the first line your CIT E-mail address. There should only be one e-mail address in the file, on the first line. It should be your NetID@cornell.edu. For example, if your NetID is lu44, it should contain only
        lu44@cornell.edu
      3. Save the file by typing Ctrl-O [Enter]. It will ask if it is ok to overwrite, type yes
      4. Exit pico by typing Ctrl-X
      5. Then log out of the Linux system by typing:
        logout
        and pressing [Enter]
    3. Verify that the contents of your .forward are correct. Type the command
      cat .forward

  • Notes:
    1. The directory /nfs/mail is actually on the LEPP Unix mail server itself. Any .forward file in your default login directory is ignored.
    2. Do not use a softlink. The .forward file must be on the mail server's local disk, not on a networked file server.
    3. Verify that your .forward file is writable only by you. The .forward file will be ignored and mail will not be forwarded if anyone else can write to your .forward file. Type the command
      ls -la .forward
      ("l" is a lower case L [ell], not a capital I [eye])
      The file's protection should be
      -rw-r--r--
      or
      -rw-------
      It should not be
      -rw-rw-r--
      or
      -rw-rw-rw-

CLASSE VMS e-mail account

  1. Log into LNS62 using ssh. You should use the same procedure as for logging in to LNX201 (described up above), but type in LNS62 instead of LNX201.
  2. VMS passwords are handled separately from Linux. Your VMS password will not be the same as your Unix/Linux password unless you took care to set them to be the same. Submit a service request or contact a member of the CLASSE IT group if you have forgotten your VMS password.
  3. Once you have logged in on LNS62, type the command:
    EMAIL
  4. You will get a prompt:
    EMAIL>
  5. To see your current email forwarding, type the command
    SHOW FORWARD</br/> and then press
    [Enter]
  6. To change your VMS email forwarding, type the command
    SET FORWARD {CIT E-mail address}
    and then press
    [Enter]
    For example, if your CIT NetID is lu44, the entire command would be:
    SET FORWARD lu44@cornell.edu
  7. Exit the e-mail prompt by typing:
    EXIT
    and pressing
    [Enter]
  8. Disconnect by typing:
    LOGOUT
    and pressing
    [Enter]

This topic: Computing > EmailForwarding
Topic revision: 24 Sep 2015, SeldenBallJr
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CLASSE Wiki? Send feedback