Search Engine: Elastic

Article ID: 4420, created on Mar 24, 2008, last review on May 2, 2014

  • Applies to:
  • Sphera


Configuring Name based VDSs that have an external MX record.


Before you configure your Name based VDS with an external MX record,check that you are using an external MX using the following command:
Dig [Domain] MX

If the output displays a different IP for the MX, this domain uses an external MX records and you can proceed with the procedure, otherwise this procedure is not necessary.

The following procedurewill work for perl script as well as php scripts:

1. su - VDS_name

2. backup /etc/mail/

3. vi /etc/mail/

4. append the following line: define(`MAIL_HUB', `')

**Please note that "" is the value returned by VDS's hostname (i.e. the A record of the VDS that has also a different MX record). (DO NOT FORGET THE TRAILING '.' in the

5. compile

/bin/m4 / /usr/share/sendmail/ /etc/mail/ > /etc/mail/

***Please backup files before modifiying them***

5f478287f7e74fe9b07217d8131cd741 3ef1f5f998c0dc182718a7fe4376f875

Email subscription for changes to this article
Save as PDF