*Droplet A host name should be: www
*Droplet B host name should be: mail
in your Registrar DNS under MX you need to add the hostname.domainname.tld of your webserver.
DNS should be corrected on the Mail host (Droplet Server itself) under /etc/resolv.conf
Here you need to add the DNS of your Provider.. but also easy to use Public Name servers as google. It should look like this:
Generated by NetworkManager
*Also your Host name doesn't need to be specific to what that host will provide as I have a droplet running both Mail and WWW services... But the Host names must be correct in the hosts file.
It looks like all is working...
Here is an example of some of my main.cf:
myhostname = mail.DOMAIN.TDL
aliasmaps = hash:/etc/aliases
aliasdatabase = hash:/etc/aliases
myorigin = DOMAIN.TDL <---------------------------------//// ?? I think this is problem ??
mydestination = mail.DOMAIN.TDL
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailboxsizelimit = 0
recipientdelimiter = +
inetinterfaces = all
inet_protocols = ipv4
You should comment out the first myorgin = /etc/mailname
Debian specific: Specifying a file name will cause the first
line of that file to be used as the name. The Debian default
I comment out my mailname because my
myorigin = /etc/mailname
My emails sent out as email@example.com