logo

Contact Us  |  Log In  |  Sign Up  |  Blog

 
MailSite Knowledge Base
Find answers and solutions to MailSite questions and problems
How to modify EHLO name used by SMTPDA
Document #:10367

Applies To:
  • MailSite 7.x
  • MailSite 8.x
  • MailSite 9.x

Synopsis:

This version of MailSite has a new feature that allows you to customize the EHLO name used by MailSite when talking to remote mail servers for each domain that MailSite is administering.

More Information:

Previous versions of MailSite used the local TCP/IP machine name when sending messages to remote servers. It is now possible to specify the TCP/IP hostname to be used for each MailSite domain, allowing hosted environments to appear to the outside world as distinct domains.

Below is a diagram of how we obtain the hostname for the hosted domain within MailSite.

Hostname Resolution Process

There are a number of ways to change the value returned;

  1. Windows Hosts file
  2. DNS record
  3. HostName values held within MailSite
Details on how to change the values for each method can be found below.

Windows Hosts File

To change the name via the hostname file

  1. Open Windows Explorer and navigate to this folder 'C:\Windows\System32\Drivers\Etc' or 'C:\Winnt\System32\Drivers\Etc'
  2. Open the file called 'HOSTS'
  3. At the bottom of the file add entry like XXX.XXX.XXX.XXX mail.domain.com where XXX.XXX.XXX.XXX is the IP bound to the domain and mail.domain.com is the value you want SMTPDA to report.

DNS Record

Add A and PTR records mapping the domain name you want to display with the IP address that you have bound to the domain.

HostName Values Held Within MailSite

The procedure for changing this varies depending on whether you have a Registry or SQL configuration. It is not possible to specify the hostname for the default domain so this first must be moved to a virtual domain, details are below:

Registry Configuration
WARNING!!
Incorrectly editing the Registry can damage the server, please proceed with care.
  1. Click on the Start button.
  2. Select Run, and enter Regedit
  3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\ROCKLIFFE\MAILSITE\Domains\Name_of_domain_to_alter
  4. Create a new String Value and name it HostName
  5. Hit Enter and then specify the desired name, e.g. mail.domain.com press OK.
  6. Create a new String Value and name it IPAddress
  7. Hit Enter and then specify the the 192.x.x.x IP that is bound to the NIC card on the server
  8. OK and Exit out of Regedit
  9. Restart all the MailSite services. A telnet to that IP should now respond with mail.domain.com. This same hostname will be used for all connections coming into that IP for all virtual domains on your server.
SQL Connector Configuration
  1. Open the SQL Manager to the MailSite Database.
  2. Open the 'DomainNames' Table and locate the DomainId for the intended domain, then close the table.
  3. Open the 'DomainProperties' table and locate the row with the corresponding DomainId.
  4. Within the field called HostName enter the domain name that you want to be assigned.
  5. Within the MailSite Console click on the Domain > Domain Properties. In the field called 'IP Address' enter the IP that you want to be bound to that domain.
  6. Restart all the MailSite services. A telnet to that IP should now respond with mail.domain.com. This same hostname will be used for all connections coming into that IP for all virtual domains on your server.
Moving the Default Domain to a Virtual Domain
This only needs to be done if you wish to specify the hostname of the default domain with the registry or SQL database.
  • Rename your default domain in MailSite to domain.old. Right click on the domain and choose rename. This effectively becomes a dummy domain that is not used.
  • Create a new virtual domain called example.com or whatever your default domain used to be.
  • View your Mailboxes under the default.old domain and highlight all of these. Right click and choose Move. Select the new example.com domain.
  • Within your BOX folder on the hard drive you will also need to move the mailboxes to the new correct BOX path as specified within the example.com Domain Properties BOX path.

Related:
See these other knowledge base documents:
Last revised 2011-10-18

Products  |  Features  |  Support  |  Resources  |  Partners  |  Site Map  |  FAQ  |  Privacy  |  Contact Us