{"id":2524,"date":"2021-06-29T13:01:51","date_gmt":"2021-06-29T13:01:51","guid":{"rendered":"https:\/\/www.onsightapp.com\/user-guide\/?p=2524"},"modified":"2023-06-08T10:29:31","modified_gmt":"2023-06-08T10:29:31","slug":"why-do-i-need-to-validate-my-domain-for-email-sending","status":"publish","type":"post","link":"https:\/\/www.onsightapp.com\/user-guide\/why-do-i-need-to-validate-my-domain-for-email-sending\/","title":{"rendered":"Why do I need to validate my domain for email sending?"},"content":{"rendered":"<p>One of the key services that we provide is to send out emails containing your orders and quotes, both to your back-office but also to your customers. These emails go through a myriad of different networks and email servers before they reach their recipients. One of our goals is to improve the deliverability of these emails. This means preventing the emails from being flagged as spam and ensuring that the emails reach the recipient\u2019s Inbox. In furtherance of this goal, we have implemented DomainKeys Identified Mail (DKIM) and Domain-based Message Authentication, Reporting and Conformance (DMARC) for all our outgoing emails. Here is a link to some technical information about the topic: <a target=\"_new\" href=\"https:\/\/docs.sendgrid.com\/ui\/sending-email\/dmarc\" rel=\"noopener\">About DKIM and DMARC<\/a>.<\/p>\n<p>What does this mean for you? It means that your From: email address (called &#8216;Sender Email Address&#8217; in Onsight) will have to be a validated domain.<\/p>\n<p>If you do not validate your domain then your From: address for all your outgoing emails will be: &#8216;Company Name&#8217; &lt;no-reply@onsightapp.com&gt; since the Onsight domain is validated and has DKIM and DMARC set up.<\/p>\n<p>If you would like to replace no-reply@onsightapp.com with an email address on your own domain (youremail@yourdomain.com), please contact <a href=\"mailto:support@onsightapp.com\">support@onsightapp.com<\/a> and we will send you the process for how to validate your domain. <\/p>\n<h2>How do I validate my domain?<\/h2>\n<p>You will be required to create some DNS records on your domain. <\/p>\n<p>Please email <a href=\"mailto:support@onsightapp.com\">support@onsightapp.com<\/a> and we will start the process and send you full instructions. <\/p>\n<p><!--\n\n\n\n<h2>Additional information<\/h2>\n\n\n\n\n\n<h3>Is there really an underscore in the subdomain name? It seems strange.<\/h3>\n\n \n\nYes, there is an underscore in the subdomain name. \n\nMore details:\n\n<a target=\"_new\" href=\"http:\/\/domainkeys.sourceforge.net\/underscore.html\" rel=\"noopener\">Underscores are allowed in DNS entries for subdomains<\/a>\n\n<a target=\"_new\" href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc6376#section-3.6.2.1\" rel=\"noopener\">DKIM requires a subdomain named _domainkey<\/a>\n\n\n\n\n\n<h3>Can I just copy and paste the required DNS records?<\/h3>\n\n\n\nSome DNS hosts provide easy-to-use web interfaces for managing DNS records. For these copying-and-pasting is sufficient. \n\nOther DNS hosts have complicated interfaces with specific configuration requirements. In that case you will need to follow the specific configuration requirements to ensure that the DNS records are created correctly. \n\n\n\n\n<h3>I copied and pasted the DNS records into BIND but the records do not work<\/h3>\n\n\n\nBIND has specific requirements for how you specify DNS records. \n\nLet's say you want to create a CNAME record:\n\n<code>s1._domainkey.domain.com <\/code>\n\nthat points to \n\n<code>s1._domainkey.u2134534840.wl0345391.sendgrid.net<\/code>\n\n\nIf you created this record in BIND, it would be incorrect: \n\n<code>s1._domainkey.domain.com\t \tIN\tCNAME\ts1._domainkey.u2134534840.wl0345391.sendgrid.net<\/code>\n\n\nThere are 2 mistakes here. \n\nThe part on the left should be\n\n<code>s1._domainkey.domain.com.<\/code>\n(note the full stop)\n\nor it can be:\n\n<code>s1._domainkey<\/code>\n(note the absence of a full stop)\n\nEither of those will work.\n\nThe second mistake is on the right hand side. \n\n<code>s1._domainkey.u2134534840.wl0345391.sendgrid.net<\/code>\n\nis missing a full stop at the end. \n\nThe correct record would be: \n\n<code>s1._domainkey\t \tIN\tCNAME\ts1._domainkey.u2134534840.wl0345391.sendgrid.net.<\/code>\n\n\nThese full stops and convoluted requirements are specific to BIND.\n\n\n\n\n<h3>How do I test that the DNS records exist?<\/h3>\n\n\n\nYou can use the NSLOOKUP command to check that the DNS records have been created correctly. \n\nThis is what it will look like when the record has NOT been set up correctly:\n\n<code>\n~ $ nslookup em9836.domain.com\nServer:         192.168.1.1\nAddress:        192.168.1.1#53\n\n** server can't find em9836.domain.com: NXDOMAIN\n<\/code>\n\n\nThis is what it will look like when the record has been set up correctly:\n\n<code>\n~ $ nslookup em1966.domain.co.za\nServer:         192.168.1.1\nAddress:        192.168.1.1#53\n\nNon-authoritative answer:\nem1966.domain.co.za        canonical name = u2143543540.w34534.sendgrid.net.\n<\/code>\n\n--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the key services that we provide is to send out emails containing your orders and quotes, both to your back-office but also to your customers. These emails go through a myriad of different networks and email servers before<span class=\"ellipsis\">&hellip;<\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.onsightapp.com\/user-guide\/wp-json\/wp\/v2\/posts\/2524"}],"collection":[{"href":"https:\/\/www.onsightapp.com\/user-guide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onsightapp.com\/user-guide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onsightapp.com\/user-guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onsightapp.com\/user-guide\/wp-json\/wp\/v2\/comments?post=2524"}],"version-history":[{"count":23,"href":"https:\/\/www.onsightapp.com\/user-guide\/wp-json\/wp\/v2\/posts\/2524\/revisions"}],"predecessor-version":[{"id":3320,"href":"https:\/\/www.onsightapp.com\/user-guide\/wp-json\/wp\/v2\/posts\/2524\/revisions\/3320"}],"wp:attachment":[{"href":"https:\/\/www.onsightapp.com\/user-guide\/wp-json\/wp\/v2\/media?parent=2524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onsightapp.com\/user-guide\/wp-json\/wp\/v2\/categories?post=2524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onsightapp.com\/user-guide\/wp-json\/wp\/v2\/tags?post=2524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}