Allow possibility to not use a hostPrefix
Created by: phdoerfler
Testing mailing with mail-tester.com I get the following warning:
Your reverse DNS does not match with your sending domain. Reverse DNS lookup or reverse DNS resolution (rDNS) is the determination of a domain name that is associated with a given IP address. Some companies such as AOL will reject any message sent from a server without rDNS, so you must ensure that you have one. You cannot associate more than one domain name with a single IP address.
This is because my reverse DNS resolves to example.com, but the mail was sent from mail.example.com. Apparently some services like AOL take offence to that and treat mail as spam or bounce it.
Whilst it is neat to have a mail.example.com, it would require having multiple IP addresses to work correctly with mail providers, one for the TLD and one for each subdomain. At least according to mail-tester.com. Please
However, simply using hostPrefix = "";
results in a bunch of errors relating to .example.com
not being a valid domain.
The most feasible thing might be to use a lib.optional to make the hostPrefix optional for those who are worried about their reverse DNS.
Thoughts?