{"id":8496,"date":"2015-03-17T19:16:00","date_gmt":"2015-03-17T19:16:00","guid":{"rendered":"https:\/\/wp.okra.host\/article\/authorizing-hostnames-to-handle-e-mail\/"},"modified":"2021-03-07T14:25:18","modified_gmt":"2021-03-07T13:25:18","slug":"authorizing-hostnames-to-handle-e-mail","status":"publish","type":"ht_kb","link":"https:\/\/kb.okra.host\/de\/article\/authorizing-hostnames-to-handle-e-mail\/","title":{"rendered":"Authorizing hostnames to handle e-mail"},"content":{"rendered":"<h2 id=\"overview\" >\u00dcbersicht<\/h2>\n<p>A hostname, combination of optional subdomain and mandatory domain, may be configured to act as an e-mail domain, ie. receive e-mails on that host. These hostnames are added via <strong>Mail<\/strong> &gt;\u00a0<strong>Mail Routing<\/strong>. For any domain present there, the server will act as the final destination bypassing MX lookups. This will result in problems if you use <a title=\"Mail sent to a hosted domain does not arrive if third-party MX records are present\" href=\"https:\/\/kb.okra.host\/de\/e-mail\/mail-sent-hosted-domain-not-arrive-third-party-mx-records\/\">third-party<\/a> MX records.<\/p>\n<p>The following is a brief list of composite examples:<\/p>\n<table>\n<caption><b>E-mail addresses for user <i>myuser<\/i><\/b><\/caption>\n<thead>\n<tr>\n<th>Subdomain<\/th>\n<th>Domain<\/th>\n<th>Hostname<\/th>\n<th>Valid e-mail<\/th>\n<th>Notes<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><\/td>\n<td>mydomain.com<\/td>\n<td>mydomain.com<\/td>\n<td>myuser@mydomain.com<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>foo<\/td>\n<td>mydomain.com<\/td>\n<td>foo.mydomain.com<\/td>\n<td>myuser@foo.mydomain.com<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>foo<\/td>\n<td><\/td>\n<td>&#8220;foo&#8221;<\/td>\n<td><\/td>\n<td><span style=\"color: #ff0000\"><strong>Invalid<\/strong><span style=\"color: #000000\">, non-<a href=\"http:\/\/en.wikipedia.org\/wiki\/Fully_qualified_domain_name\">FQDN<\/a><\/span><\/span><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>myotherdomain.com<\/td>\n<td>myuser@myotherdomain.com<\/td>\n<td>myotherdomain.com<\/td>\n<td>E-mail delivers to same inbox unless <a title=\"Separating mail to same user, different domain\" href=\"https:\/\/kb.okra.host\/de\/e-mail\/separating-mail-user-different-domain\/\">namespaced<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Once a hostname is authorized through Mail Routing, corresponding DNS entries are created and will be active so long as you use our <a title=\"Nameserver-Einstellungen\" href=\"https:\/\/kb.okra.host\/de\/dns\/nameserver-settings\/\">hosting nameservers<\/a>.<\/p>\n<h3 id=\"third-party-nameserver-dns\" >Third-party nameserver DNS<\/h3>\n<p>If you use third-party nameservers &#8211; nameservers <a title=\"Nameserver-Einstellungen\" href=\"https:\/\/kb.okra.host\/de\/dns\/nameserver-settings\/\">other than ours<\/a> &#8211; use the following\u00a0DNS template to properly route mail once a hostname is added in Mail Routing:<\/p>\n<pre style=\"padding-left: 30px\">&lt;hostname&gt;      IN MX 10 mail.&lt;hostname&gt;\r\nmail.&lt;hostname&gt; IN A  &lt;IP address&gt;<\/pre>","protected":false},"excerpt":{"rendered":"<p>Overview A hostname, combination of optional subdomain and mandatory domain, may be configured to act as an e-mail domain, ie. receive e-mails on that host. These hostnames are added via Mail &gt;\u00a0Mail Routing. For any domain present there, the server will act as the final destination bypassing MX lookups. This&#8230;<\/p>","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[58],"ht-kb-tag":[],"class_list":["post-8496","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-e-mail"],"_links":{"self":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/comments?post=8496"}],"version-history":[{"count":1,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8496\/revisions"}],"predecessor-version":[{"id":8497,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8496\/revisions\/8497"}],"wp:attachment":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media?parent=8496"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-category?post=8496"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=8496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}