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 ".forward" looking something like:<br>
<br>
<FONT FACE=monospace>¦ tee -a /path/to/my/mail/archive ¦ mailx "FWD from mybox" <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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.