From owner-freebsd-questions Thu Aug 20 07:51:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA23208 for freebsd-questions-outgoing; Thu, 20 Aug 1998 07:51:54 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gimli.cs.uct.ac.za (gimli.cs.uct.ac.za [137.158.128.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA23202 for ; Thu, 20 Aug 1998 07:51:49 -0700 (PDT) (envelope-from mwest@gimli.cs.uct.ac.za) Received: from mwest (helo=localhost) by gimli.cs.uct.ac.za with local-smtp (Exim 1.92 #1) id 0z9W3I-0001TN-00; Thu, 20 Aug 1998 16:51:00 +0200 Date: Thu, 20 Aug 1998 16:51:00 +0200 (SAST) From: Matthew West To: Leonard Chung cc: questions@FreeBSD.ORG Subject: Re: Procmail for e-mail forwarding? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG in ~/.forward: |/usr/local/bin/procmail in ~/.procmailrc: :0 *^(To|cc|Resent-To):.*leonard@slip.net ! leonard@new-isp.net This should do it, although I'd recommend you peruse the procmail examples manpage: man procmailex --mwest@cs.uct.ac.za http://www.cs.uct.ac.za On Tue, 18 Aug 1998, Leonard Chung wrote: > I have an e-mail account on a FreeBSD machine, which has an e-mail alias > (i.e. I can be e-mailed at either leonard@slip.net or othername@slip.net). > I am moving to another mail server, and would like to have my current > server forward e-mail to the new one. However, I only want messages sent > to the leonard@slip.net address forwarded and messages sent to othername > to remain stored on the old server as normal. > > I'm thinking that a .forward and procmail would probably be the right > solution, but I don't know a thing about procmail at all. Can anyone help > me with writing the ruleset? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message