On Wed, May 02, 2001 at 02:39:52PM -0700, montgomery f. tidwell wrote:
> i've got qmail setup as the mail server for my abc.com domain, and life
> is good. is it possible to have it also serve xyz.com? i only have one
> DSL line, so both abc.com and xyz.com would have to point to the same
> (static) ip#. is this possible? if so, can someone point me to some
> howto docs?
The DNS MX record for xyz.com needs to point to your machine (not an IP
address but a machine name - if abc.com works, then you have already set
this up correctly once).
1. Add "xyz.com:someuser" to /var/qmail/control/virtualdomains (no quotes).
This means you want all mail for that virtual domain to go to
"someuser", who is a local user on your system. Let's say it's bob.
When someone sends mail to [EMAIL PROTECTED], qmail will deliver it to the
user bob. Bob should have a ~bob/.qmail-default to catch all mail for
that domain or, if he wants to separate it, he could have a
~bob/.qmail-info file to catch the [EMAIL PROTECTED] address.
2. Send a HUP signal to qmail-send (kill -HUP process-id-for-qmail-send)
3. Add "xyz.com" to /var/qmail/control/rcpthosts to indicate that you
will accept mail for that domain.
That's it. This is just a slight expansion on the following entry in the
qmail FAQ: http://cr.yp.to/qmail/faq/incominghost.html#virtual
man dot-qmail for information about how extension addresses
(~/.qmail-info) work.
If you want to have mail for xyz.com delivered to multiple users on
your system, look into either vpopmail or vmailmgr. You can find
references to them at http://www.qmail.org/ . They each have their own
mailing lists for support.
Tim
--
* * * | 1) It's SLOW! --> "man tcpserver" - especially -R,-H,-l
qmail | 2) Roaming users --> http://www.lifewithqmail.org/lwq.html#relaying
FAQS | 3) Secondary MX --> list in rcpthosts, NOT in locals/virtualdomains
* * * | 4) Discard mail --> "#" line ONLY, in appropriate .qmail file