jongrieve.net
 Home > FAQs, Tips & Tricks > Configuring Microsoft Exchange Server for Demon Internet

Configuring Microsoft Exchange Server for Demon Internet
 
While I have continued to publish the document below, I'd like to point out that I no longer use Demon Internet as my ISP either at work or home.  This is due to the ever-increasing level of incompetence they demonstrated, the insane amounts of 'red tape' they imposed on their commercial customers and their pathetic support.  Personally, I could no longer recommend them.
 
REDNET logoI recently moved all our business connectivity over to a U.K. ISP called REDNET By clicking this link, you will leave the jongrieve.net site

REDNET offer an excellent all-round package and well-informed, helpful & friendly sales and support staff.  Their connectivity is reliable, fast & affordable.  Contact sales@red.net.




NOTE: This FAQ assumes you are using Exchange Server v5.5.  Exchange 5.0 is basically the same, although some of the prompts and tab names are slightly different.
 

 
Before you begin
 
Before configuring Exchange, check the following:
  • You should have a RAS/Dial-Up Networking connection already configured for your Demon account.
     
    NOTE: When naming this connection, you should not have any spaces in the name (i.e. call it "Demon" rather than "Demon Internet")
     
    You should have dialed this connection at least once so that NT will have promoted for (and saved) your login & password information.
     
  • Ensure the modem(s) used to dial the Demon account are switched off so you can ensure everything is configured correctly before allowing the first connection.

 
Adding and configuring an Internet Mail Service (IMS)
 
The first thing you need to do is add an IMS in the Exchange Administrator.  If you already have any listed in the Connections node (Ctrl-Shift-N), delete them.
 
Add a new connector using File | New Other | Internet Mail Service.  This will ask the most obvious questions, and create you a 'boiler-plate' connection.  Once this is done, go into the Properties for the IMS and check the following in each of the tabs:
 
General
  • Nothing special, unless you want a message size limit.

Premissions
  • Nothing special, unless you want a change who can access/configure IMS.

Connected Sites
  • Nothing (unless you have multiple Exchange servers, in which case you're on your own :)

Address Space
  • You should see a single entry with these settings:
     
    Type: SMTP
    Address: *
    Cost: 1
    Scope: Organization
     
    If you don't, add one using New | Internet

Delivery Restrictions
  • Nothing

Diagnostic Logging
  • Nothing

Internet Mail
  • Administrator's Mailbox: Specify which user will receive Non-delivery notifications (probably You).
  • Message Content: Specify MIME | Plain Text
  • Character Sets: Western Europe (ISO-8859-1)

Dial-Up Connections
  • Tick the 'Demon' account.
  • Set the timeout (although the RAS timeout takes precedence, I think)
  • Mail Retrieval: Do not send...
  • Logon Information: {enter your Demon hostname and password}. Domain is blank.
  • Schedule: Set preferences. (Personally, I have Mon-Fri, every 1 hour, between 9:00 and 18:00)

Connections
  • Transfer Mode: Inbound & Outbound
  • Accept Connections: From any host
  • Message Delivery: Forward (to post.demon.co.uk), Dial (using 'Demon' [see above])

Queues
  • Nothing (this tab is for information only)

Routing
  • Reroute incoming...
     
    • Add your domain (i.e. hostname.demon.co.uk) as <inbound>
       
      If you also have Demon's mail forwarding service, add your 'real' domain as <inbound> also.  For example, we have a tenner-a-month dial-up account called 'sthdown' and mail forwarding to 'southdown.co.uk', so I add 'sthdown.demon.co.uk' and 'southdown.co.uk'.  See Users below.
       
  • Routing Restrictions...
     
    • Check only the third option: "Hosts and clients connecting to these internal addresses"

    • Add... your internal IP address, which should be 10.0.0.2

     
    The Routing Restrictions options are very important, as they stop your mail server being used as an 'open gateway' for spammers and similar scum.  As a responsible Postmaster, you should not allow or encourage this kind of activity...

Security
  • Nothing


 
Understanding how mail is transfered between Demon and your Exchange Server

 
NOTE: This section assumes the NT/Exchange server have a modem/ISDN TA attached that will dial Demon.  See the Router section below if this is not the case.
 
Demon have historically always used Simple Mail Transfer Protocol (SMTP) to deliver mail to their customers.  Most other ISPs use POP3.  With POP3, you configure your mail software to 'go and retrieve' your mail from a server at your ISP.  What SMTP does is effectivelly 'deliver' the mail to you when you connect.
 
What happens is this: Whan people send you mail (to '{any_user_name@nodename.demon.co.uk}') the mail is stored on the Demon post (aka punt) machines.  At the time of writing, there are two punt machines.  When you dial your Demon account, your modem will connect to one of the many modems at Demon and your machine will log in to the Demon network (using the nodename and password).  At this point, your modem/RAS/Dial-Up Networking connection will 'aquire' the IP address allocated to you by Demon when you set up the account.  This is another 'quirk' of the Demon account that you often don't see with other ISPs; 'fixed IP addresses'.  You always get the same IP address when you connect.  Most other ISPs will 'dynamically' allocate you an IP each time you connect.
 
So, when you connect and login, the Demon punt machines will attempt to connect (using SMTP) to your IP address.  If the connection is successful, the punt machines will 'send' the mail to you.  This is where Exchange Server comes in; the IMS part of Exchange opens an SMTP port and waits for incoming connections.
 
When an SMTP connection is established from Demon to IMS, all mail is streamed down that connection to Exchange.  Exchange then examines each mail item for the recipient, finds the appropriate Exchange user for that recipient (see Users below) and places the mail item in their Inbox.  If no Exchange user can be found with the appropriate email address, the mail item is 'bounced' back to the sender and a 'Non-delivery notification' is posted to the Administrator user as specified in the Internet Mail tab of the IMS (see above).
 
In the opposite direction (i.e. delivering outgoing messages), Exchange will hold on to any mail sent from the users until a connection to Demon is established, then send all outgoing mail (again, using SMTP) to the Demon post machine, which then routes it on to the final desination.
 
In IMS, we tell it to dial Demon every hour so that the punt machines see a connection and deliver any waiting mail.  Of course, there might not be any.  The timeout settings for IMC (and, I think, more importantly, the Demon RAS connection) determine how long the connection waits before disconnecting.  Generally, the punt machines will deliver your mail to you almost immediatelly.  Once they've stopped, the line should become idle, timeout and hang up.  Obviously, it's worth monitoring that this happens otherwise you'll end up with a vast phone bill...
 

 
Creating and configuring Users
When a user is created in Exchange, that user can have multiple e-mail addresses.  Each user must have at least an X400 address, because this is the internal Exchange protocol used to uniquely identify a user to Exchange.  The user can also have SMTP, CCMAIL and Microsoft Mail addresses.  For Demon, SMTP is important.
 
Exchange will automatically generate e-mail addresses for users as they're created.  To specify which type of addresses should be created and what format they should take, check the "Site Addressing" settings withing the Configuration node for your server in Exchange Administrator.  Exchange will generate addresses using the SMTP preferences specified here and the naming preferences in Tools | Options | Auto Naming.
 
The SMTP default should be your Demon nodename, i.e. '@nodename.demon.co.uk' or your mail forwarding account (ours is '@southdown.co.uk').  If you've already created users and this was set to something incorrect, you'll need to amend each existing user manually.
 
Each time you create a user, a default SMTP e-mail address will be created using the above 'rules'.  For example, I have configured our Exchange Server to do the first letter of first name + surname @ southdown.co.uk.  When I created myself (Jon Grieve), it automatically generated a user with the e-mail address jgrieve@southdown.co.uk.  This can save a lot of time.
 

 
How can I test that Exchange is working correctly before I make my first dial?
To test that Exchange is configured and ready to roll, try the following: (WARNING: This is not pretty!)
  • From a Win9x or NT Workstation (or even the server itself) run Telnet (do Start | Run, TELNET.EXE, Ok)
  • Ensure 'Local Echo' and 'Send CRLF' options are enabled in Preferences
  • Connect to 10.0.0.2, port 25
  • You should be presented with a screen showing something like
       220 {servername} ESMTP Server (Exchange Server...) ready
  • Type the following lines.  Responses expected back from the server are denoted with [...].
     
       Notes/Example
    HELO matey
    [250 OK]
    MAIL FROM:<{your e-mail address}>MAIL FROM:<jgrieve@southdown.co.uk>
    [250 OK - mail from {...}]
    RCPT TO:<{your e-mail address}>'RCPT TO:<jgrieve@southdown.co.uk>
    [250 OK - Recipient {...}]
    DATA
    [354 Send data.  End with CRLF.CRLF]
    From: <{your e-mail address}>
    To: <{your e-mail address}>
    Subject: TEST MESSAGE
     (Blank line)
    This is a test message
     (Blank line)
    .(Single dot)
    [250 OK]
    QUIT

  • Once you have done this, a message should arrive in the Inbox of the user who's e-mail address you used.

 

 
How can I see what Demon/Exchange are doing when connected?
Apart from some flashing on your modem (assuming it's external) there aren't many clues as to whether Demon and Exchange are doing anything.  Of course, the magical moment when a mail message arrives in your Inbox proves something is happening.
 
To see what is happening, load Performance Monitor (Start | Programs | Administrative Tools) and add the following counters from the "MSExchangeIMC" object:
  • Connections Inbound
  • Connections Outbound
  • Queued Outbound
  • This will show you three stats, which are easier to view is you change to Histogram mode.  You'll be able to see how many messages are waiting in the outbound queue and, when you dial Demon, you'll be able to how many connections are inbound from the Demon punt machines (as above, there are only two machines currently, and therefore only ever a maximum of two incoming connections) and outbound connections (probably only one, because we've told IMC to route all outgoing mail to the 'post.demon.co.uk' machine).
     

     
    What if I use a Dial-on-demand Router attached to my LAN?
    In this type of configuration (I believe Demon call this package something like Network Dial?), generally the router will be the device that aquires the IP address allocated to you by Demon.  So, when it connects, the Post/Punt machines at Demon will attempt to connect to the router on the SMTP port (25) to deliver the mail.  Of course, the router is not a mail server and has not opened this port ready to receive the mail so the delivery from Demon fails (and their servers continue to simply 'sit on' the messages) and re-deliver it each time you connect.
     
    What you need to do it tell the router to 'pipe' any incoming SMTP/Port 25 connections over to the Exchange server 'behind' it on your LAN.  The actual configuration for doing this will differ between makes and models of routers, so it's not possible to provide a step-by-step guide in this FAQ.
     
    For details on configuring the router, consult it's documentation.  Another likely way of configuring the router is by Telnet-ing into it.  Load TELNET.EXE on your Windows workstation and attempt to connect to the IP address of the router.  Alternatively, try connecting to the IP address of the router using your Web browser; it may have a mini Web server built in for configuring it...
     
    If anyone has instructions for specific makes & models, mail them to me (please clearly identify the router you're providing instructions for) and I'll try and list as many as possible on this page.




    Copyright © Jon Grieve
    Visitor Number 903,854
    Home   Contact   Top
    This site is optimised for Internet Explorer, Netscape Navigator and Mozilla on Windows, Macintosh & Linux.



     
     
    If your browser does not fully support HTML Style Sheets, these pages may not appear correctly formatted.