UITS

In Unix, how do I forward my mail to more than one address?

To forward your mail to more than one address, on most Unix systems, follow the steps below:

  1. Check to see whether you already have forwarding set in your account. To do so, at the Unix prompt, enter:
      more ~/.forward
    If you see a message similar to "No such file or directory", then you don't have forwarding set yet. If you see an email address, then you have already set the forwarding on this account, and you should proceed to step 3.
  2. If you do not have forwarding set, at the Unix prompt, enter the following:
      echo username1@host1, username2@host2 > .forward
    Replace username1@host1 with the first email address to which you want to forward your mail, and username2@host2 with the other email address. You can have your mail forwarded to more than two addresses by adding more addresses, separated by a comma and a space.

    For example, if you are user dvader and you want to forward your mail to vader@empire.gov, anakin@darkside.com, and darth@sithlord.org, you would enter:

      echo vader@empire.gov, anakin@darkside.com, darth@sithlord.org > .forward

  3. If you already have forwarding set, edit your .forward file with a Unix editor (e.g., Pico or Emacs) so that it looks like the following:
      username1@host1, username2@host2
    Replace username1@host1 with the first email address to which you want to forward your mail, and username2@host2 with the other email address. You can have your mail forwarded to more than two addresses by adding more addresses, separated by a comma and a space. Using the example above, dvader's .forward file would look like this:
      vader@empire.gov, anakin@darkside.com, darth@sithlord.org

At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?

This is document ablm in the Knowledge Base.
Last modified on 2009-05-13.

  • Fill out this form to submit your issue to the UITS Support Center.
  • Please note that you must be affiliated with Indiana University to receive support.
  • All fields are required.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

  • Fill out this form to submit your comment to the IU Knowledge Base.
  • If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.