<?xml version="1.0" encoding="ISO-8859-1"?><html xmlns="http://www.w3.org/1999/xhtml" xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:axle="http://www.cs.odu.edu/~zeil/axle" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ns0="http://www.cs.odu.edu/~zeil/axle" mode="ignore" id="forwarding" ns0:xlinkuri="open/forwarding.dbk" ns0:xpath="//*[@id='forwarding']" ns0:page="forwarding"><head><title>Forwarding Addresses</title><link type="text/css" href="_axle/docbookstyle.css" rel="stylesheet"/><link type="text/css" href="_axle/cppformat.css" rel="stylesheet"/><link type="text/css" href="_axle/overrides.css" rel="stylesheet"/><script src="_axle/docbook.js"/><script>function gotoNext() {}
function gotoPrev() {}
function gotoUp() {}
</script><xhtml:link xmlns:xhtml="http://www.w3.org/1999/xhtml" rel="stylesheet" href="_axle/navigation.css" type="text/css"/><xhtml:script xmlns:xhtml="http://www.w3.org/1999/xhtml" src="_axle/navigation.js"/></head><body><table width="100%" class="navigationBar"><tr class="navigationBar"><td class="navigationBar"/><td width="5%" class="navigationBar"><a class="navigationBar" title="CS252 Home" href="http://cocoon.cs.odu.edu:80/cocoon/~cs252/directory/announcements.html"><img class="navigationBar" src="_axle/home.gif" alt="CS252 Home"/></a></td><td width="5%" class="navigationBar"><a class="navigationBar" title="discuss this page" href="http://cocoon.cs.odu.edu:80/cocoon/~cs252/forum/getXPath/open/forwarding/forwarding.html"><img class="navigationBar" src="_axle/forum.gif" alt="discuss this page"/></a></td></tr></table><br/><div class="info_article"><div class="title_article">Forwarding Addresses</div><div class="author_article"><span class="firstname">Steven</span> <span class="othername" role="mi">J</span> <span class="surname">Zeil</span></div><div class="affiliation">
        <span class="orgname">Old Dominion University</span>
        <span class="orgdiv">Dept. of Computer Science</span>
      </div><table width="100%"><tr><td align="left"><span class="copyright">©<span class="year">2000-2006</span> <span class="holder">Steven J. Zeil, Old Dominion University</span></span></td><td/><td align="right"><span class="date">Jul. 16, 2005</span></td></tr></table></div>
  
  <div class="epigraph">
    <p class="para" align="center">
              (A printable version of this document is available 
              <a url="allPages.html" href="allPages.html">here</a>.)
            </p>
  </div>
  <p class="para">If you prefer to read your e-mail on a different system, you can
easily tell the Unix mailing system to forward all mail sent to your
Unix e-mail address to a different address.</p>
  <p class="para">You will want to create, in your home directory (i.e., <span class="code">cd
~</span>) a file named <span class="quote">
      &#8220;<span class="code">.forward</span>&#8221;
    </span>. The contents of this file
should be a single line of text containing your preferred e-mail
address.</p>
  <p class="para">You can create this file using your favorite text editor, or you can
simply use the Unix <span class="code">echo</span> command to write the desired text into
the file. For example, if you wanted all your e-mail to be sent to
<span class="code">bogus@megacorp.com</span>, you would do the following
<div class="programlisting">
  cd ~
  echo "bogus@megacorp.com" &gt; .forward
  cat .forward
</div></p>
  <p class="para">The final <span class="code">cat</span> command should show the contents of the <span class="code">.forward</span>
file to be your desired address. (Note: Unix files that start with a <span class="quote">
      &#8220;.&#8221;
    </span>
are invisible to the normal <span class="code">ls</span> command. To see them
in a directory listing, you have to add the <span class="code">-a</span> option: <span class="code">ls -a</span>.)</p>
  <p class="para"><span class="emphasis-bold" role="bold">Now, test it out!</span> If you have a bad e-mail
address in your <span class="code">.forward</span> file, you could lose messages. So send
yourself mail (to your ODU CS account). It should appear, in due course,
at your preferred e-mail address. How long it actually takes depends on
many factors. It may take only a few minutes. If after a few hours, you
have not received the e-mail, delete your <span class="code">.forward</span> file. Try again,
if you wish. Or you might try on another day just in case the CS Dept.
mail server, or the one at your preferred site, was temporarily out of
commission. If you have repeated problems getting mail forwarded quickly,
you might want to rethink your desire to use this feature. For most people,
this procedure works without much trouble.</p>
  <p class="para">You can actually have more than one forwarding address.  The
<span class="code">.forward</span> file can contain a comma-separated list of
forwarding addresses. For example, you might use
<div class="programlisting">
  bogus@megacorp.com, bogus@home.net
</div>
Some people like to keep a backup copy of their
mail on the CS Dept system, but to get their "normal" mail somewhere
else (e.g., because their mail server at work is crash-prone). This is
possible, by making your e-mail address on the CS Dept. system one of
the forwarding addresses, so that you forward a copy right back to
yourself:
<div class="programlisting">
  \yourLoginName, bogus@megacorp.com
</div>
The backslash is required: it helps prevent the mailer from consulting your
<span class="code">.forward</span> file a second time (which would lead to an infinite
cycle of mail forwarding).</p>
<br/><table width="100%" class="navigationBar"><tr class="navigationBar"><td class="navigationBar"/><td width="5%" class="navigationBar"><a class="navigationBar" title="CS252 Home" href="http://cocoon.cs.odu.edu:80/cocoon/~cs252/directory/announcements.html"><img class="navigationBar" src="_axle/home.gif" alt="CS252 Home"/></a></td><td width="5%" class="navigationBar"><a class="navigationBar" title="discuss this page" href="http://cocoon.cs.odu.edu:80/cocoon/~cs252/forum/getXPath/open/forwarding/forwarding.html"><img class="navigationBar" src="_axle/forum.gif" alt="discuss this page"/></a></td></tr></table></body></html>