From owner-freebsd-isp Fri Oct 10 10:48:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA26579 for isp-outgoing; Fri, 10 Oct 1997 10:48:26 -0700 (PDT) (envelope-from owner-freebsd-isp) Received: from wopr.inetu.net (wopr.inetu.net [207.18.13.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA26566 for ; Fri, 10 Oct 1997 10:48:20 -0700 (PDT) (envelope-from dev@wopr.inetu.net) Received: from localhost (dev@localhost) by wopr.inetu.net (8.8.5/8.8.5) with SMTP id NAA27224 for ; Fri, 10 Oct 1997 13:57:02 -0400 (EDT) Date: Fri, 10 Oct 1997 13:57:02 -0400 (EDT) From: Dev Chanchani To: freebsd-isp@freebsd.org Subject: E-mail forwarding Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk We have virtual web hosting. So far, as clients need e-mail forwarding, we simply enter their forwarding rules into /etc/virtusertable. However, as we have more sites to manage now, this becomes a bit cumbersome. Here is what I am looking to do: Have each virtual web site associated with a user. So say, joe has www.schmoe.com. Then all e-mail to schmoe.com will be directed to joe via virtusertable. Now, I want to create a file in ~joe (joe's home dir) and have it called .redirect. I want joe to be able to edit the file and have it look similar to virtusertable, but have him be able to forward his own e-mail right out of this file like this. All e-mail to anyone@schmoe.com first goes to joe. Now, joe has this in his redirect file default@schmoe.com joeschmoe@awl.com mike@schmoe.com mike@somehost.com joe@schmoe.com joe I am looking to allow everyone to manage their own aliases. Now, the two ways I figured I could do this were: 1) Have a daemon that checks .redirect files and when they are modified, it recreates /etc/virtusertable and re-makes the database. I would rather not go this route as I like pre-emptive options more. 2) Have procmail or something like that be able to read the forwards out of the .redirect files, then have joe's .forward file forward to a program which would act upon the .redirect file. I am looking for anyone who could help me accomplish this would coding (I like sollutions using pre-existing tools). Thanks in advance for any help that can be offered. Dev