We-Host.com Main Web Site
Web Development
Support

Communication
MS Exchange

Implementing Microsoft ExchangeTM Mail on Demand

We-Host.com
http://www.We-Host.com/

  1. Introduction
  2. Microsoft Exchange is an e-mail server that can be used to handle local (Intranet) e-mail. It can also be configured to send and receive outgoing (Internet) mail on demand (dial on demand). For more information on the Exchange Server, please see:

    http://www.microsoft.com/products/prodref/49_newf.htm

    Not only can Microsoft Exchange be used as a local mail server to handle your intranet mail, but it can also be configured to send and receive mail to and from the Internet. Typically, a dedicated Internet connection, including the purchase of a high speed line (T1), a router, a CSU-DSU, a firewall, DNS Servers, etc, would be required in order for your Local Area Network (LAN) to send and receive Internet mail. The capital required to make such a commitment, in most cases, is far too high and prohibits small to medium sized businesses from integrating the Internet into their LAN or Intranet.

    However, with the Microsoft Exchange server, you can have the server dial-up to your local ISP on demand, then connect to the mail service on your We-Host Virtual Server and download any stored mail. This allows you the ability to have continuous e-mail support on your local intranet where traffic is heavier, in addition to being able to send and receive e-mail to and from the Internet on a more periodic basis. You should be aware that We-Host does not currently have a solution for MS Exchange for Virtual Hosts (http://www.We-Host.com/plans). We-Host may have this solution in the future (technically the We-Host will handle this just fine), but until then, if you desire to use this solution for Virtual Hosts you will be responsible for the send mail configuration changes.

    Because your We-Host Virtual Server is always connected to the Internet, it is always available for incoming mail messages and can store (or queue) these messages for you until you are ready to retrieve them. The ability of the Microsoft Exchange server to perform dial-on-demand e-mail retrieval allows you to take advantage of the lower prices of a dial-up connection, providing more affordable Internet mail solution for your company. The information provided here should be easily adaptable for any other Mail Server, such as Novell’s Workgroup Server.

    The diagram at the top of the following page illustrates the theory behind the process. You and your fellow employees are located on you LAN or Intranet at Your Office. You use a dial-up connection through Your ISP to surf the web, read news, download files, and remotely administrate Your Virtual Server. You may have previously had both an internal LAN mailbox and a POP or IMAP mailbox on your Virtual Server. Using the Microsoft Exchange server (or equivalent software) you can now queue your Internet mail on your Virtual Server and instruct Microsoft Exchange to periodically connect to the Internet, download the mail from your Virtual Server, and then distribute it to your local area network mailboxes.

  3. Configuration

2.1Client Side

On the client side, you will need to configure the Exchange Server to dial-up to the local ISP on demand. How to do this should be documented in your Exchange Server manuals. A great additional resource is provided by Simpler Web Inc. (http://www.swinc.com/. In essence you need to:

    1. Configure your RAS/DUN.
    1. You will need an entry in the phonebook that makes an automatic connection to your local ISP at the intervals you specify.
    2. You need a TCPIP hostname and domain configured in Control Panel/Networks/TCPIP
    1. Configure the Exchange SMTP service. For Exchange 5.0 this will be the Internet Mail Service. This should be pointed to the SMTP server for your We-Host Virtual Server (smtp.yourdomainname.com).
    2. If necessary, configure the SMTP Addresses for your users. You can globally configure this using the Site Addressing configuration page, or you can use Directory Import to configure individual addresses. This would only be necessary in the event you had multiple users in your "Intranet" that had a different We-Host Virtual Server.
    3. Now, you need to configure the server to tell the mail server to dequeue mail. You will need to configure your Exchange Server to run the "etrn" command. This command tells the We-Host to attempt to resend your queued mail. A script written by Simpler Web Inc. will help set up your Exchange server to do this:

http://www.swinc.com/files/dequeue.exe

In essence, you’re connecting to your smtp port and telling the mail server you want to dequeue your mail. For those people not using MS Exchange, you could write your own script. Here is an example UNIX shell script that would do the same (substitute your domain name for my-domain.com)

# !/bin/sh

# I got this from:

# http://www.swinc.com/resouce/exch_smtp.htm

# Send ETRN command to sendmail 8.8.x

# written by Andy Rabagliati <andyr@wizzy.com>

#

telnet mail.my-domain.com smtp <<SMTP_EOF

ETRN my-domain.com

Quit

SMTP_EOF

#

# End of Shell script

#

Or alternately

# !/bin/sh

OURSITE=exchange.isp.com

MAILSERVER=mial.sfpsi.com

TELNET=?usr/bin/telnet

PORT=25

Echo "etrn $OURSITE" |$TELNET $MAILSERVER $PORT

Exit 0

2.2 ISP configurations

You must have a dedicated IP address for the MS Exchange Dial-up solution to work. There is no other alternative to this (currently). This will require that you:

    1. Purchase a dedicated modem at your ISP’s modem bank that only you can connect to and that is assigned your dedicated IP address
    2. OR

    3. Your ISP has the ability to detect when you dial in and can assign that dial-in your dedicated IP number.

The second thing your ISP must do for you is map a domain Namco to that dedicated IP address. For example, if your local Internet Service Provider has a domain name "my=isp.com) and they were going to give you an IP address of 222.222.222.222, you want then to map 222.222.222.222 to a unique instance of my-isp.com. As an example:

exchange.myisp.com mapped to 222.222.222.222

Here is an example dns entry for this:

@ IN SOA ns1.my-isp.com hostmaster.my-isp.com (

1997072802 ; Serial Number

864000 ; Refresh

    1. ; Retry

2592000 ; Expire

172800 ) ; Minimum TTL

NS NS1.MY-ISP.COM

NS NS2.MY-ISP.COM

A 222.222.222.1

MX 10 my-isp.com

Exchange A 222.222.222.222

Another alternative would be to use your We-Host domain name in the zone file above instead of the name "exchange". For example if I had a We-Host Virtual Server and my domain was for the Virtual Server was iwmi.com I might have my ISP set up their dns zone file to point to

Iwmi A 222.222.222.222

Now all mail sent to internetservers.my-isp.com would resolve to the dedicated IP address 222.222.222.222.

This is important, you must have a dedicated IP address (one that is uniquely assigned to your Exchange Server), and you must have a domain name pointing to that IP address for the MS Exchange solution to work.

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