On Mon, Oct 25, 1999 at 10:17:47AM -0400, Peter Green wrote:
> On Mon, Oct 25, 1999 at 03:38:20PM +0200, Magnus Bodin wrote:
> > On Sat, Oct 23, 1999 at 06:13:19PM -0400, Peter Green wrote:
> > > We would like to set up a subdomain on our system, say, 'fwd.example.com'.
> > > When mail gets sent to [EMAIL PROTECTED], it gets rewritten to
> > > [EMAIL PROTECTED] (along with some other headers) and resent.
> >
> > The forward-all-to-another-domain-alternative
> > =============================================
> > This is when you want to forward <anything>@nowhere.mil to
> > <anything>@elsewhere.co.za, i.e. when every forward goes to
> > the same "otherhost".
>
> But I don't want this. I want the "otherhost" to be encoded in my host. So
> if you wanted to sign up for my service, people could write to you at:
>
> [EMAIL PROTECTED]
>
> and it would get forwarded to you. (Please note: I'm not asking if this is a
> *good* idea, just if it is possible. :)
>
Everything is possible(tm):
Put ".fwd.example.com:alias-fwd" into virtualdomains.
Then put this line into ~alias/.qmail-fwd-default
|forward ${LOCAL}@`perl -e 'print $1 if $ENV{HOST} =~ /(.+?).fwd.example.com$/'`
--
magnus
-- MOST useless 1998 * http://x42.com/