PTR records for a droplet running Vesta - Multiple domains on one droplet

September 4, 2015 2.3k views
DNS Email Ubuntu

I've searched the archive and couldn't find a clear answer to this question. If you can only have one PTR record per droplet (based on it's hostname). How can you host multiple domains on a droplet, that are expected to send emails?

2 Answers

A bit of explenation:

What Is A Reverse PTR Record?
PTR record or more appropriately a reverse PTR record is a process of resolving an IP address to its associated hostname. This is the exact opposite of the process of resolving a hostname to an IP address. Example, when you ping a name it will get resolved to the ip address using the DNS to something like Reverse PTR record does the opposite; it looks up the hostname for the given IP address. In the example above the PTR record for IP address will get resolved to

Why Do You Need A Reverse PTR Record?
The most common use for looking up a PTR record is done by spam filters. Concept behind this idea is that fly by night spammers who send e-mails out using fake domains generally will not have the appropriate reverse PTR setup at the ISP DNS zone. This criterion is used spam filters to detect spam. If your domain does not have an appropriate reverse PTR record setup then chances are most e-mail spam filtering software will block e-mails from your mail server.

How can you host multiple domains on a droplet, that are expected to send emails?
Once you got a mailserver running, you could setup a PTR record for that mailserver since its sending/receiving all the mails. All the other domains you would like to use for mail, will have to connect to your main mailserver and use that to send and receive mails from. To do this you can find alot of tutorials online, or you could use some sort of CP wich has integrated mail.

Amazing answer

  • No problem, when you have any more problems you can ask back here.

    • Old answer, however I could not find anything better, so here is my question: this answer in the end does not explain how to set multiple PTR records for a single droplet: the PTR record is set automatically by naming the droplet a fully qualified domain name. That is the only way I've found to set a PTR at all. How to set multiple PTRs then?

      The reason why this is necessary is that PTR record must not only be set for the mailserver's domain name, but also for each of the domains using that mailserver to send e-mails on behalf of the domains. It is a way to tell the spam filters that the domain is using a legitimate mailserver to send e-mails.

Have another answer? Share your knowledge.