On Sat, Feb 26, 2000 at 02:20:58PM -0800, Doug Peterson wrote:
> I recently got Qmail installed, and functional for the basic tests,
> however, I ran into a problem while trying to setup virtual domains. It
> appears the only way to setup qmail with virtual hosts is to have all the
> mail to a domain go to a single user, then filter it out from there, using
> lots of .qmail files in that users home directory... This seems like a
> giant pain.. so hopefully i'm not understanding something. I want to have
> a central location for virtual domain addresses similar to sendmail's
> virtusers file.. its often times called different names, but it looks
> like:
>
>
> [EMAIL PROTECTED] [EMAIL PROTECTED]
> [EMAIL PROTECTED] sally
>
> @anotherdomainhostedhere.com [EMAIL PROTECTED]
Use the fastforward package, available from http://cr.yp.to. Make the alias
user handle all of your virtual domains, and have ~alias/.qmail-default send
everything to fastforward.
Like this:
control/virtualdomains:
example.com:alias
example2.com:alias
~alias/.qmail-default:
|fastforward -d aliases.cdb
~alias/aliases:
[EMAIL PROTECTED]: &[EMAIL PROTECTED];
[EMAIL PROTECTED]: &[EMAIL PROTECTED];
Build the aliases.cdb file from aliases:
# cd ~alias
# /var/qmail/bin/setforward aliases.cdb aliases.tmp < aliases
That should pretty much do it.
Chris