We-Host.com Main Web Site
Web Development
Support

Configuring a server for Virtual Hosting
virtmaps

Location: <your root directory> /etc

ALWAYS TRANSFER IN ASCII FORMAT!
Mail sent to your server is handled either by the aliases or virtmaps file. Our virtmaps file is well "commented" on the server and you should therefore be able to figure out how to edit the file after viewing the content.

The below has been extracted from the virtmaps file. The domain chosen for this example is abcxyz.com

After you have edited the below file, it is necessary for you to run the vnewvirtmaps command from the % prompt in order to cause the server to re-read the file. Thus, any changes to the file will not take place until you run the "vnewvirtmaps" command.

NOTE: ALL ITEMS WITH # IN FRONT ARE COMMENTS AND NOT READ BY THE SERVER

# Simply add the virtual email address and the real email address
# it should be mapped to. The virtual email address can be a full
# email address or a hostname. If it is a hostname then mail to
# that hostname will be sent to the real email address if none of
# the full email addresses don't match. This keeps mail for a virtual
# sub-hosted domain from bouncing.
#
# Here are some examples:
#
# (lines beginning with "#" are comments; I love comments)
# Virtual Email Address Real Email Address
# ---------------------- ------------------
# webmaster@virtual1.com user@isp.com
# user@virtual1.com localuser1
# virtual1.com user@isp.com
# Note: "Unknown User" mail to virtual1.com goes to user@isp.com
#
# webmaster@virtual2.com localuser2
# user@virtual2.com someuser@aol.com
# virtual2.com localuser2

EXAMPLE DOMAIN

# ABCXYZ.COM
abcxyz.com             myname@myisp.com

IN THE ABOVE EXAMPLE, ALL MAIL SENT TO THE DOMAIN WOULD BE BE SENT TO THE PERSONS ISP ACCOUNT, SUCH AS AOL, CompuServe, ETC.


Neat little trick...
# ABCXYZ.COM
abcxyz.com                      myname@myisp.com

junkmail@abcxyz.com             /dev/null

Would cause any mail sent specifically to the email address of junkmail (it can be called anything) to be sent into never-never land. The server would just toss it away.

 

 

Contents Copyright 1997, 1998 We-Host Web Hosting. See our copyright page for additional copyright information.
Last Updated: 11 June, 2000  · Email support web site errors to webmaster@we-host.com

We-Host Web Hosting