Curtis Maurand [curtis(_at_)maurand(_dot_)com] wrote:
[Top-posting fixed here]
Dallman Ross wrote:
On Mon, Mar 21, 2005 at 03:14:18PM -0800, Leslie Simpson wrote:
What would the procmail filter be to forward mail to
another server without changing the To address?
Probably just what it says in the man pages:
:0
* conditions
! forward(_at_)somewhere(_dot_)else
Did you try it?
I think this person wants to do it on a domain wide basis.
Usually you use the domaintable (sendmail) or tranports
(postfix) to accomplish the task. That solution however,
bypasses procmail altogether.
Okay, well, why not use /etc/procmailrc? With an X-Loop,
of course, per man pages.
:0 fw
* conditions
| formail -A "X-Loop" $LOGNAME(_at_)somewhere
:0 A
! $LOGNAME(_at_)somewhere(_dot_)else
(Or use the "a"-flag instead of "A" if the X-Loop write
is crucial here.)
Dallman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail