Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Oct 1997 13:57:02 -0400 (EDT)
From:      Dev Chanchani <dev@wopr.inetu.net>
To:        freebsd-isp@freebsd.org
Subject:   E-mail forwarding
Message-ID:  <Pine.BSF.3.95q.971010135156.26157A-100000@wopr.inetu.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.971010135156.26157A-100000>