On Wed, Dec 08, 1999 at 03:55:46PM +0800, 'Michael Boman' wrote:
> On Wed, Dec 08, 1999 at 08:47:53AM +0100, H�ffelin Holger wrote:
> > Hi Michael!
> >
> > > I am still a bit new qmail user and I am wondering how this
> > > with virtual
> > > domains are working. The this is that the comapany has 2 domain names
> > > (foo.com and foo.bar.com for an example). Can I use the virtual domain
> > > stuff to redirect all mail from foo.bar.com to foo.com ? How is it
> > > done?
> > You put in your virtualdomains:
> > foo.bar.com:virtualuser
> > foo.com:virtualuser
> >
> > where virtualuser is a shell user. All the mail for both domains are
> > delivered into virtualuser's homedir. There you can go on with .qmail-files
> > to distribute mail.
> >
>
> That is not something I want to do as I have right now 10k users to
> take care of.. (only 70 of them are affected of this, but I like to keep
> things simple and put everything in the mySQL databse.
>
> What I want to do is to tell qmail that if the domain is foo.bar.com
> change it to foo.com and THEN deliver the mail.
Put the following in virtualdomains:
foo.bar.com:alias-foo
then, in ~alias/.qmail-foo, put:
|forward "$[EMAIL PROTECTED]"
--Adam