Tips, Tricks, News & Offers
If you would like to be kept up to date with Internet technology changes, Idaq technical tips & How To's plus discounts and special offers, subscribe to our Tips, Tricks and offers Newsletter:

Email:
First Name:
Last Name:
Knowledgebase: Linux
Can I use a standard vServer as a backup MX relay?
Posted by John Imison on 11 May 2007 10:26 AM
If you host your own email in the office using a system such as exchange and the office has an ADSL line you may wish to have a backup mail exchange for your domains.  The following steps will assist you in setting up a backup mail exchange for domains hosted on a local server.

Assumptions:
  • You have a static IP address dedicated to the mail server.
  • You already have mail for the domain name pointing to the mail server in the office and have appropriate MX records setup
  • You have knowledge of SSH and linux command line

The below steps were tested using our vServer 2 product. 

1/ Ensure that the mail boxes are configured and working properly on the office exchange server

2/ Login to the VPS and edit /etc/mail/relay-domains adding the following lines:

domain.name   smtp:[mailserver.address.in.office]

This informs sendmail that it should direct mail for "domain.name" to server "mailserver.address.in.office".  "mailserver.address.in.office" can be a domain name or IP address.

3/ Within the /etc/mail directory run: make all

4/ Add a MX record to the domain with a number greater than your office exchange server so that mail is only delivered to your VPS if the exchange server is unreachable.


5/ Monitor the /var/log/maillog file perhaps with "tail -f /var/log/maillog"

6/ Test sending an email manually and watch the logs.

(34 votes)
This article was helpful
This article was not helpful

Comments (0)
Post a new comment 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Hosted by Idaq