From owner-freebsd-isp Sat Aug 18 13:44:26 2001 Delivered-To: freebsd-isp@freebsd.org Received: from java2.dpcsys.com (java2.dpcsys.com [206.16.184.5]) by hub.freebsd.org (Postfix) with ESMTP id A816037B407 for ; Sat, 18 Aug 2001 13:44:23 -0700 (PDT) (envelope-from dan@dpcsys.com) Received: from localhost (localhost [127.0.0.1]) by java2.dpcsys.com (8.11.1/8.11.1) with ESMTP id f7IL2SQ91777; Sat, 18 Aug 2001 14:02:28 -0700 (PDT) Date: Sat, 18 Aug 2001 14:02:28 -0700 (PDT) From: Dan Busarow To: Andrew Matheson Cc: Nick Rogness , freebsd-isp@FreeBSD.ORG Subject: Re: virtusertable In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Aug 18, Andrew Matheson wrote: > > In .procmailrc, add rules to inspect the TO: part of the message > > and send it to the appropriate real account. See procmail help > > for more info. > > Is this sufficient to redirect email that's to a mailing list, such as this one? The only place I see my address appear in freebsd-isp email is up in the top-most "Received:" header. The "^TO" regular expression variations in procmail (man procmailrc) don't look sophisticated enough to extract that address, but I'm not very familiar with procmail. In your virtusertable entry use the form @example.com user_id+%1 Then in the .procmailrc for user_id DOMAIN=example.com ENV_TO=$1 :0f * ENV_TO ?? . | formail -i "X-Envelope-To: "$ENV_TO@$DOMAIN Then filter based on the X-Envelope-To: header Dan -- Dan Busarow 949 443 4172 Dana Point Communications, Inc. dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message