Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to COPY (not forward) incoming mail?

Status
Not open for further replies.

rokahn

Technical User
Feb 27, 2000
1
GB
I wish to copy incoming mail to another system using something like .forward but leave the mail on the primary server. Is there a straightforward way to do this (without needing administrator privileges)?<br>
<br>
Thanks for any help.<br>
Rocky
 
Setup a &quot;.forward&quot; looking something like:<br>
<br>
<FONT FACE=monospace>¦ tee -a /path/to/my/mail/archive ¦ mailx &quot;FWD from mybox&quot; <A HREF="mailto:my.other.user@somewhere.else">my.other.user@somewhere.else</A></font><br>
<br>
This appends incoming mail to <FONT FACE=monospace>/path/to/my/mail/archive</font>, and forwards it to <FONT FACE=monospace><A HREF="mailto:my.other.user@somewhere.else">my.other.user@somewhere.else</A></font>.<br>
<br>
If you want to get more complex with this (ie, rewriting subject lines, etc.) take a look at procmail. Although, you'll need your admin to install this for you...<br>
<br>
HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top