For two days I’ve been trying to figure out the connection between the MX, HELO, PTR, and proxying. It seems to me that the more I study it the less I understand it. Here it is once more:
If you want to exploit the benefits of Cloudflare, A records need to be proxied. But in order to use the same server for sending mail you need to have one A record for a subdomain that is not proxied:
A site.com => 1.2.3.4

A mail.site.com => 1.2.3.4

MX site.com => mail.site.com
PTR:
main.com 1.2.3.4
(One PTR is allowed per IP but many domains can be hosted under one IP.)
HELO:
site.com => main.com
(My cPanel server by default is using PTR’s hostname for HELO for all domains. cPanel even notifies me of this:)
The system uses an alternate HELO of main.com
when sending mail from the site.com
domain.
Is this the problem you were referring to? So an alternate HELO is the problem, should I change it to mail.site.com
? As far as I’ve read it is not forbidden but recommended for HELO hostname and domain sending the mail (MX) to match.
ADDITIONAL QUESTION:
I also host main.com
on Cloudflare. The following things are located on this domain:
main.com
(used in PTR record)
server.main.com
(server hostname)
ns1.main.com
(nameserver)
ns2.main.com
(nameserver)
As far as I understand, you can’t have server hostname and nameservers proxied and that is OK since those are subdomains. Since PTR is main.com
my server complained that PTR couldn’t resolve so I changed it to
and now it works. But now, my main.com is not proxied and it can’t use Cloudflare services. Should I create another subdomain, for example:ptr.main.com
and set it like this:
main.com

ptr.main.com
(used in PTR record)
This way I keep using Cloudflare services and still have a PTR which is unproxied, right?