GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Configuring Your Virtual Private Servers for Mail-On-Demand

bullet Configuring Your Virtual Server For Mail-On-Demand
If you wish to implement Microsoft Exchange Mail-On-Demand you must first Configure Your Exchange Server for Mail-On-Demand and then follow the steps below.

NOTE: You should carefully consider the following.
  • All e-mail (incoming and outgoing) will be held in the queue until it is flushed out, either by an ETRN command or the flush command in your crontab. This means that if your crontab is set to flush every 4 hours, an outgoing e-mail could wait 4 hours before it is sent from your VPS.

  • Mail dequeuing will affect all domains hosted on your VPS. So, only one domain should be hosted on your VPS unless all domains on the server are using the mail dequeuing feature

  1. Setup the MX records for the domain name with the 10 level pointing to your Exchange Server and the 20 level pointing back to your VPS.

  2. Setup your VPS to queue up e-mail until the ETRN command is received by your Exchange Server.

    1. Add the following line to the Options section of the ~/etc/sendmail.cf file on your VPS:

      Odqueueonly     # defer mail on the server
      
    2. Comment out the following two lines in Ruleset 0:

      R<@60w>       >90     Remove local addresses
      R<@60w>0     >90     Remove local routes/UUCP
      

      These two lines let the server know what domains are local to your Virtual Server. For mail dequeuing, no domain should resolve locally.

    3. Add the following line to your VPS Crontab file:

      00 0-23/4 * * * /usr/local/bin/virtual sendmail -q
      

      This will flush out your VPS mail queue every four hours. You may need to modify this according to how long your Exchange Server may be off line. Every time an attempt is made to flush the queue, a hop is added to the headers for each message queued up. This means that if you set your crontab to flush the queue every 15 minutes then an additional hop would be added every 15 minutes. This would mean that after 6 hours in the mail queue, a message would have 24 hops (where the maximum is 26). Therefore, any e-mail older than 6 1/2 hours would be bounced with "too many hops".


Toll Free 1-866-GSP-4400 • 1-301-464-9363 • service@gsp.com
Copyright © 1994-2016 GSP Services, Inc.