procmail
[Top] [All Lists]

Re: redirecting while keeping a copy

2003-09-12 12:06:39
Nancy McGough wrote:

<> On 12 Sep 2003 René Mølsted (molsted(_at_)mgraphics(_dot_)dk) wrote:
<> > I need to redirect all mail for a specific mail address to a remote
<> > mailserver but keeping a local copy.
<> > It is very important the header is intact on both servers.
<> > I would prefer to fix it within procmailrc.
<> 
<> First, in order to do this you need to get the envelope recipient
<> from the MTA. I talk about this and headers that are sometimes
<> used to record this info here:

{code elided}

Hmmm ... not clear that Mr. Mølsted needs anything that complicated ...
Your recipe makes sense if the forward is happening in /etc/procmailrc
rather than ~user/.procmailrc.

René, if you want to do this in procmail (I encourage you to consider
doing it in the MTA as I previously posted):

  :0 c
  * ! ^X-Loop: user(_at_)thisdomain
  | formail -A "X-Loop: name at account1.com" | $SENDMAIL 
user(_at_)thatdomain(_dot_)com

This was discussed only a few days ago under the subject "changing
headers upon forwarding" ...

  http://mailman.rwth-aachen.de/pipermail/procmail/2003-September/thread.html

RL
-- 
Reto Lichtensteiger                             rali(_at_)tifosi(_dot_)com

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


<Prev in Thread] Current Thread [Next in Thread>