Add Virtual Host

# Adding a Virtual Host

If you want your server to receive mail for a second e-mail domain that has its own set of users, you need to set up a virtual host for the second domain. For example, if your mail server provides mail service for the e-mail domain, domain1.com, and you also want it to provide mail service for another e-mail domain, domain2.com, you need to create a virtual host for domain2.com. There are two types of virtual hosts: Virtual hosts with IP Addresses and Virtual hosts without IP addresses

See Chapter 2, Configuration, in the IMail Server Users Guide for information about the two types of virtual hosts, including their limitations and DNS setup for virtual hosts.

To add a virtual host:

1. In the Acount Options... drop-down menu, under ADMIN OPTIONSselect Manage Virtual hosts.

2. On the Virtual hosts page, click Add. The Add Virtual Domain page opens. The list box shows all IP addresses set up in the Windows NT TCP/IP properties as well as any virtual IP addresses assigned by the web server.

3. Do one of the following:

   - To use a real IP address for the virtual domain, select it in the list box, then select Real IP (to the right of the list box).

   - To use the next available virtual address, select Virtual (to the right of the list box). The address is shown to the right of Virtual Address.

4. In the Official Host Name text box, enter the name of the mail host. The name you enter here will be used to address mail to the users on the virtual host. For example, if you enter mail.domain2.com as the mail host name, any users you add to the virtual domain will receive mail at user@mail.domain2.com.

5. In the Aliases text box, specify alternate host names for which you want the computer to accept mail. For example, if your mail host name is mail.domain2.com, you can set an alias of domain2.com so that the web server accepts mail addressed to jeff@mail.domain2.com and also jeff@domain2.com. Multiple aliases are separated by a space.

6. In the Top Directory Name text box, enter the name of the directory where the directories for users, lists, and web files for this virtual domain will be stored. In most cases, you will want to use a different directory for each virtual domain that you create. It is possible for virtual hosts to share a single directory but then users that have the same names will actually share the same mailbox. Enter the parameters for mailboxes and messages. These parameters apply to all users on the virtual host.

7. Max Mailbox Size. The default maximum size (in bytes) for the total of all mailboxes in a user mail account. If the total size exceeds the maximum, any new mail for the user is returned to the sender. Enter zero for an unlimited size.

8. Max Messages. The default maximum number of messages (the total for all mailboxes created in the user mail account). If the maximum is exceeded, any new mail for the user is returned to the sender. Enter zero for an unlimited number.

9. Single Message Max Size. The default maximum size (in bytes) for a single message sent to the server. If a message exceeds the maximum, it is returned to the sender. Enter zero for an unlimited size.

10. Maximum User Count. The maximum number of users that can be registered for the domain. Enter zero for an unlimited number of users. (Note that this does not apply to virtual hosts that are based on the Windows NT user database or an external database. The displayed counts for those hosts may not be correct).

11. Maximum Number of logon Attempts. The maximum number of retries allowed for logons before the account is suspended.

12. Maximum Number of Times Suspended. The maximum number of times user can be suspended before barring him

13. Maximum Suspended Duration. Maximum number of seconds an account will be suspended if users has exhausted retries.

14. Select the options to enable for the virtual host. Note that the following options will apply for the entire domain.

    - Enable Spell Checking. Enable the spell check when composing messages.

    - Enable Web Calendaring. Allows the host the ability to access calendar features by clicking on the Calendar icon on the toolbar.

    - Enable SSL. Allows the option of using Secure Socket Layers for security.

    - Force SSL. Forces the virtual host to use Secure Socket Layers for security.

15. Click Save to save the new virtual host configuration.

Note: After you've created the virtual host, you need to add user mail accounts.

## Related Topics

Modifying Virtual hosts