This guide will help you set up your own mail server using our services.
A mail server receives, stores and sends messages for a domain. A single mail server can host mailboxes for many users across multiple domains. Many people use third-party mail hosting services, but with Custom DNS, you can host mail for your own domain yourself and have total control over the mailboxes, mail policies, and anti-spam tools used by your server.
Please complete the following steps to learn how to use our services for your own mail server. (This guide assumes you will be using our Custom DNS service, but you may use our Dynamic DNS service as well.)
The very first step is to install your mail server software. There are a number of proprietary solutions such as Microsoft Exchange, and a number of free, open source mail servers such as Exim and Sendmail. (Please note: DynDNS.com cannot provide support for service installation or setup. You will need to contact the software authors for more help.)
Once your server is installed and configured for your domain, and you have a few mailboxes created, you should test your mail server locally by performing a manual SMTP session over Telnet. Here is an example of a full test SMTP session with a mail server:
$ telnet mail.mydomain.com 25
Trying 1.2.3.4...
Connected to mail.mydomain.com.
Escape character is '^]'.
220 mail.mydomain.com ESMTP Exim 4.68
helo mail.sendingserver.com
250 mail.sendingserver.com Hello
mail from:<sender@sendingserver.com>
250 OK
rcpt to:<recipient@mydomain.com>
250 Accepted
data
354 Enter message, ending with "." on a line by itself
Date: Tue, 23 Jun 2009 21:17:15 -0500
From: Sender <sender@server.com>
To: Recipient <user@domain.com>
Subject: Test Message
This is a sample message.
. (single period by itself)
250 OK id=some-id
quit
221 mail.mydomain.com closing connection
Connection closed by foreign host.
Please note that the above is purely an example, and the actual session may look different depending on your server. The most important things to notice in this manual SMTP session are:
Once your server is responding properly and accepting mail for your domain, please move to the next step.
Now that your mail server is installed and running, the next step is to configure your network to allow remote access. To do this, you will need to configure your router's port forwarding settings. Please visit PortForward.com for a list of guides by router and service. By default, SMTP uses TCP on port 25. You will also need to allow this port in your firewall software, such as Windows Firewall or Norton Internet Security.
When you have configured port forwarding in your router, you will need to test your network externally (from outside). To do this, get your network's external IP address from CheckIP, then have a friend try to Telnet to the IP address or use our Open Port Tool to test your network. If your network is configured properly, your friend should be able to receive the 220 banner from your server.
Please note: It is fairly common for ISPs to block port 25 for residential IP addresses. If your server appears inaccessible but you are positive that your network is configured correctly, you should configure your server for an alternate port (such as 2525 or 10025) and try again. If you are able to receive a successful connection on the alternate port, you can use services such as our MailHop Relay and MailHop Outbound to receive and send mail on alternate ports, respectively.
You will now need to configure your domain's DNS to receive mail. The best practice is to create a separate hostname for your mail server, such as mail.mydomain.com, then create MX (Mail eXchanger) records that tell sending servers to deliver mail to this host. You can learn more about MX records, mail exchangers and DNS here.
There are two ways to add the necessary host and MX record in Custom DNS:
The 10 in your MX record's data field indicates its Preference: the lower the number, the higher the priority. If you want to add a secondary server later, such as our MailHop Backup MX service, you would add it with a lower Preference such as 20.
Once your new record has a change to propagate (which should only take a few minutes if you have no MX records at all), you should be able to receive mail at your domain.
The last step is to configure an update client, which will keep your new Dynamic DNS host up-to-date with your network's external IP address. If you do not have a hardware update client, you can install a software update client on a computer anywhere in the network (typically your server computer). We recommend using a software client whenever possible, since they are easier to troubleshoot and configure than hardware update clients.
This problem is usually related to port forwarding. Ensure that your router is properly configured to forward the necessary ports for your software. You can learn more about port forwarding here. If you are still having trouble, please see our detailed Why Can't I Connect to My Server? troubleshooting guide for more help.
As noted above, many ISPs block port 25 on residential connections. Please set your mail server to an alternate port such as 2525 or 10025, then try again; if the alternate port works, your ISP is blocking SMTP and you will need to use MailHop Relay to receive mail and MailHop Outbound to send outgoing mail around the blocking.
Some mail hosting providers such as AOL and Hotmail block messages from dynamic IP addresses. They base their blocking criteria on two things:
If both of these criteria are not met, the mail is rejected. To prevent these rejections, you can either upgrade your connection to a costly static IP address, or use our MailHop Outbound service. Outbound is an outgoing SMTP relay through which your server can deliver its mail unimpeded, as the reverse DNS checks are performed on the most recent sender (in this case, our servers, which have static IPs and reverse DNS) instead of the origin.
Please see our Reverse DNS in Custom DNS article for more information.
Per RFC 2181, MX records may never use a CNAME or a direct IP address, only a host record. Directly from section 10.3 itself:
The domain name used as the value of a NS resource record, or part of the value of a MX resource record must not be an alias. ... This domain name must have as its value one or more address records. Currently those will be A records, ... It can also have other RRs, but never a CNAME RR.
If a mail hosting provider specifies a CNAME, simply perform a DNS query for the record and use the host record to which it resolves instead.
Technically, no. If a sending server tries to deliver mail to a domain that has no MX records, the sending server generates a temporary MX record assigned to the domain itself, and tries to deliver it there (e.g. senders for user@example.com would connect to example.com on port 25 to deliver the messages).
However, not all mail servers follow SMTP specifications correctly, including older versions of Exchange. To ensure you do not lose any mail, it is always recommended to create an MX record for your domain.
© 1998-2009
Dynamic Network Services Inc. -
Legal Notices -
Privacy Policy -
Contacts