I have a virtualminserver, named server01.example.com. On this i have some virtual hosts sharing one IP. One of the domains is example2.com. The Server IP has a reverse dns entry.
Now i created via letsencrypt the certs and used the server01.example.com certs also for Postfix and Dovecot. Before the cert creation the mailserver domain was mail.example2.com, because i wasn’t sure, whether i would have to move that domain to a different server, and i didn’t want to have all the users to re-enter mailserver address in case i would have to move it.
After copying the certs to Postfix and Dovecot, i wanted to use the subdomain server01.example.com as mailserver, so i would be able to use it for other domains as well. I entered the server01.example.com as mailserver for the domain example2.com.
Although i have a A record for the subdomain, the emails are bouncing back, telling me this:
Host or domain name not found. Name service error for name=server01.example.com type=A: Host not found
I am really confused and i am wondering, what to do now. Should i use the IP address as mailserver instead of server01.example.com
thank you,l I should have had added, that i try to send the email from an external server; the server01.example.com has a fqdn; so i am wondering what’s happening here.
Btw, could i change the fqdn for the server without running into problems or should i consider a reinstall to do this?
If not, you may also want to create a DNS ‘A’ record for that. In fact, you may want to do that anyways, having a DNS ‘A’ record of your hostname is generally a good idea.
i added it to the hosts file and created an A Record for that domain. Now it looks like some mails are being processed, and others are not. The error message varies:
said: 550-Requested action not taken: mailbox unavailable 550 invalid DNS
MX or A/AAAA resource record (in reply to MAIL FROM command)
or:
Host or domain name not found. Name service error for name=server01.example.com type=A: Host not found
Some hosts can’t send email to my server (with those errors), others are able to. While one of my emailadresses brought up the second error, googlemail didn’t show up an error at all but it looks like it hasn’t been delivered at all.
Perhaps it is the problem, that i did those SSL things after i installed virtualmin and created virtual hosts? Should i have set up this before adding virtual hosts.
What is the best practice for SSL for Mailservers (including PFS) ?