lyfsy

what is the significance of "mail" in dns mail.domain.com?

Jan 22nd, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.33 KB | None | 0 0
  1. what is the significance of "mail" in dns mail.domain.com?
  2. I am trying to understand this and find it a little confusing. take the following server situation...
  3. ++++++++++++++
  4. list of top cheapest host http://Listfreetop.pw
  5.  
  6. Top 200 best traffic exchange sites http://Listfreetop.pw
  7.  
  8. free link exchange sites list http://Listfreetop.pw
  9. list of top ptc sites
  10. list of top ptp sites
  11. Listfreetop.pw
  12. Listfreetop.pw
  13. +++++++++++++++
  14.  
  15.  
  16. a shared webhosting/mail debian 9 server running apache and postfix+dovecot
  17.  
  18. the server hostname = server1
  19. hostname fqdn = server1.hostdomain.com
  20. External Public Static IP address = 12.34.56.78
  21.  
  22. client = clientdomain.com
  23.  
  24. All dns is controlled externally.
  25. 1. server1.hostdomain.com is resolved via A record at its registrar (using free dns offered by registrar)
  26. 2. client websites are pointed at the server via A record at their registrar
  27.  
  28.  
  29. Questions
  30. 1. What is the significance of "mail" in mail.domain.com often seen in dns records/tutorials? Is this supposed to be the hostname or is it a dns default for email? What if the mail server hostname is "server1" (as in my example)
  31. OR
  32. is mail.domain.com simply used by email clients as a default in order to setup accounts? so a dns record mail.domain.com is always required for email clients to use? (if so, should mail.domain.com point to an IP address or the mail server hostname.fqdn? (ie server1.hostdomain.com)
  33.  
  34. 2. Using my example above, exactly what dns records should be shown for email to work for clients on this system?
  35. just to update these are the email dns records i am using at present for clientdomain.com...(I havent included TTLS)
  36. A record 12.34.56.78
  37. MX record server1.hostdomain.com 10
  38. TXT record v=spf mx a 12.34.56.78 a : server1.hostdomain.com ~all
  39.  
  40. does that all seem good?
  41.  
  42. hawkhost.com
  43. v-hosting norge
  44. q es un hosting en internet
  45. hosting house congreso
  46. t hostel rama 4
  47. wonderproxy.com
  48. domain jewelry
  49.  
  50. One thing that has caused me to raise this issue is I cannot get my Samsung Galaxy Note 9 Microsoft Outlook App to connect to any email accounts for this domain. What does the Outlook app need in dns to achieve this?
  51.  
  52. I am able to setup email accounts on gmail android app, although i get an SSL cert warning... its a shared server with just 1 ip address. Are there any workarounds for this warning?
  53. You can use any domain or subdomain for your mailserver. It just is a de facto standard to use mail.domain, imap.domain, smtp.domain, etc. as it's easier and I do believe some (older) software defaults to it. As far as pointing it to the mailserver, either a cname to the fqdn or a record to the ip is just fine. Outlook auto connects tend to look for some special information when automatically setting up a mail address but manually setting it to the right server should work. As for the certificate warning, that has nothing to do with the IP. Just get an SSL certificate (for example from Let's Encrypt) and make sure the mailserver is using it. If you are on a shared hosting account that might be more difficult, but in that case your host should be able to provide you with a hostname that is in the actual certificate.
  54. Think of it as kind of an unofficial naming convention. You can use whatever you want to use for your mail domain but many just stick with mail.domain.tld. I suspect this could help with logging if need be, it would get logged as mail.domain instead of your regular domain which could cause confusion.
  55. As Atlantia Cloud said, you can use any subdomain you like for your servername as long as you can get an SSL certificate for it. In practice, that means you need to own that subdomain. You also need to set the "PTR" DNS record (sometimes called "reverse lookup") for the server IP address to point to that subdomain, otherwise outgoing mail may be rejected by spam filters. That PTR record is usually set by the hosting provider in their control panel.
  56.  
  57. On the subject of Outlook autoconfiguration: Outlook has changed over the years and the way autoconfiguration works is different for Exchange servers and ordinary IMAP accounts. The current versions of Outlook 365 just use your email address to guess the server settings. If you're using a personal domain like [email protected] then Outlook will first try to connect to an IMAP server called "imap.mydomain.com" and an SMTP server called "smtp.mydomain.com". If your server name is different from your personal domain and the SSL certificate is not signed by both those subdomains, the automatic configuration will fail and users will have to enter the server name manually.
  58.  
  59. That's fine if your personal domain is the only domain on the server (as it would often be for a business) or if your email addresses use a generic domain like gmail.com rather than a personal domain. But if you're using a personal domain on a shared host this means that the host has to either sign the server certificate with every domain it hosts, or else it has to present different certificates depending on which server name is being asked for. (Dovecot can do the latter, Postfix has to do the former.)
  60.  
  61. Other mail clients work in different ways, it would take too long to explain them all here. There's no autoconfiguration setup that works with all clients for personal domains that I'm aware of, which is a shame in this day and age.
  62. Phil McKerracher
  63. www.beeches.it
  64. Not a hosting company, but I fix hosting problems
Advertisement
Add Comment
Please, Sign In to add comment