{"id":1041,"date":"2017-01-28T20:56:21","date_gmt":"2017-01-29T01:56:21","guid":{"rendered":"http:\/\/easy-admin.ca\/?p=1041"},"modified":"2017-01-28T21:18:40","modified_gmt":"2017-01-29T02:18:40","slug":"enabling-dkim-in-virtualmin","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2017\/01\/28\/enabling-dkim-in-virtualmin\/","title":{"rendered":"Enabling DKIM milter in Virtualmin"},"content":{"rendered":"<p>To enable DKIM signing of outgoing email messages, follow these steps :<\/p>\n<ol>\n<li>Login to Virutalmin as <code>root<\/code> and go to <strong>Email Messages<\/strong> -&gt; <strong>DomainKeys Identified Mail<\/strong><\/li>\n<li>Change <strong>Signing of outgoing mail enabled?<\/strong> to <strong>Yes<\/strong>.<\/li>\n<li>In the <strong>Selector for DKIM record name<\/strong> field enter a short name that you will use to identify the signing key. This is typically just the current year, like <code>2010<\/code>. Do <strong>NOT<\/strong> enter <code>default<\/code>, as this can trigger a bug in the current Virtualmin release which deletes the <code>\/etc\/default<\/code> directory!<\/li>\n<li>Click the <strong>Save<\/strong> button.<\/li>\n<\/ol>\n<p>Assuming all goes well, Virtualmin will report the steps taken to configure and enable DKIM.<\/p>\n<p>Only virtual servers that have both the DNS and email features enabled will have DKIM activated, as the mail server needs to be setup to use a private signing key whose corresponding public key is added to DNS.<\/p>\n<p>By default, Virtualmin will also configure the DKIM milter to verify incoming email that has the proper signatures. DKIM-signed messages where the signature is incorrect or cannot be checked with a DNS lookup will be bounced or delayed. If you want to disable verification, set the <strong>Verify DKIM signatures on incoming email?<\/strong> option to <strong>No<\/strong>.<\/p>\n<p>To turn off DKIM signing completely, just do the following :<\/p>\n<ol>\n<li>Login to Virutalmin as <code>root<\/code> and go to <strong>Email Messages<\/strong> -&gt; <strong>DomainKeys Identified Mail<\/strong><\/li>\n<li>Change <strong>Signing of outgoing mail enabled?<\/strong> to <strong>No<\/strong>.<\/li>\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ol>\n<p>This will remove the public key from all domains, and stop your mail server from signing messages with the DKIM milter.<\/p>\n<p><strong>NOTES:<\/strong><br \/>\nCommon problems:<\/p>\n<ol>\n<li>Check if you have SPF, DKIM and DMARC records and if they are properly set<\/li>\n<li>Check if you have rDNS<strong><br \/>\n<\/strong><\/li>\n<li>Check if your domain or IP is blacklisted<\/li>\n<li>From 1 to 3 plus several other settings can be checked with:<br \/>\n<a href=\"http:\/\/mxtoolbox.com\/SuperTool.aspx\" rel=\"nofollow\">http:\/\/mxtoolbox.com\/SuperTool.aspx<\/a><\/li>\n<li>Check what services are active and their ports especially dovecot: <a href=\"http:\/\/www.cyberciti.biz\/faq\/how-do-i-find-out-what-ports-are-listeningopen-on-my-linuxfreebsd-server\/\" rel=\"nofollow\">http:\/\/www.cyberciti.biz\/faq\/how-do-i-find-out-what-ports-are-listeningo&#8230;<\/a><\/li>\n<\/ol>\n<p><strong>NOTES:<br \/>\n<\/strong>For rDNS should be easy to sort. Best and easiest solution would be to use the hostname (either way it should be FQDN), so if your hostname is &#8220;myserver.domain.tld&#8221; then check if you have in your DNS records &#8220;myserver.domain.tld. IN A your.server.IP.address&#8221;. If you are missing this record be sure to add it before you proceed to set rDNS. Once done go to your host control panel and set rDNS to &#8220;myserver.domain.tld&#8221;.<\/p>\n<div class=\"field field-name-comment-body field-type-text-long field-label-hidden\">\n<div class=\"field-items\">\n<div class=\"field-item even\">\n<p>Tools like mxtoolbox.com should give you some info if there is a problem, another option is intodns.com but it will check only DNS (there are other solutions just use google). To test email only you can use <a href=\"https:\/\/www.unlocktheinbox.com\/mail-tester\" rel=\"nofollow\">https:\/\/www.unlocktheinbox.com\/mail-tester<\/a> . One thing you must know, every single thing what is not properly set or defined, it will increase spam score of your emails and more problems you have it will be easier for emails to end in spam or be rejected by receiver.<\/p>\n<p><strong>NOTES:<\/strong><br \/>\nYou can enable dmarc if you go virtualmin &#8211; domain &#8211; server configuration and click dns options. There you scroll down and click enabled on DMARC record enabled? also you can change policy there. You may perhaps wait 24 hours to apply this as its dns which could take time a bit.<\/p>\n<p><strong>NOTES:<br \/>\n<\/strong><code>I do see your point but I am hosting sites with emails without rDNS - that does not need to be concerned at all<\/code><\/p>\n<div class=\"field field-name-comment-body field-type-text-long field-label-hidden\">\n<div class=\"field-items\">\n<div class=\"field-item even\">\n<p><strong>Well based on RFC1912 we have:<\/strong><\/p>\n<p><code>2.1 Inconsistent, Missing, or Bad Data<\/code><\/p>\n<p>Every Internet-reachable host should have a name.\u00a0 The consequences<br \/>\nof this are becoming more and more obvious.\u00a0 Many services available<br \/>\non the Internet will not talk to you if you aren&#8217;t correctly<br \/>\nregistered in the DNS.<\/p>\n<p>Make sure your PTR and A records match.\u00a0 For every IP address, there<br \/>\nshould be a matching PTR record in the in-addr.arpa domain.\u00a0 If a<br \/>\nhost is multi-homed, (more than one IP address) make sure that all IP<br \/>\naddresses have a corresponding PTR record (not just the first one).<br \/>\nFailure to have matching PTR and A records can cause loss of Internet<br \/>\nservices similar to not being registered in the DNS at all.\u00a0 Also,<br \/>\nPTR records must point back to a valid A record, not a alias defined<br \/>\nby a CNAME.<\/p>\n<p>It is highly recommended that you use some software<br \/>\nwhich automates this checking, or generate your DNS data from a<br \/>\ndatabase which automatically creates consistent data&#8230;So please read it you will find a lot of information there about rDNS.<\/p>\n<p>For the rest there is difference between helping and hand holding and i will not do the later. If someone dont want to spend few minutes on google then he or she dont deserve any attention and if you want to do differently please be my guest, i&#8217;m sure no one will stop you.<\/p>\n<p><em><strong>P.S. Stop telling people wrong information, there are rules you must follow so instead of teaching people wrong things lets educate them to properly follow the rules.<\/strong><\/em><\/p>\n<p><em><span class=\"username\" xml:lang=\"\">Diabolico<br \/>\n<a href=\"https:\/\/www.virtualmin.com\/node\/41321\">https:\/\/www.virtualmin.com\/node\/41321<\/a><br \/>\n<\/span><\/em><\/p>\n<p><em>&#8211; I often come to the conclusion that my brain has too many tabs open. &#8211;<br \/>\n<strong>Failing at desktop publishing &amp; graphic design since 1994.<\/strong><\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>To enable DKIM signing of outgoing email messages, follow these steps : Login to Virutalmin as root and go to Email Messages -&gt; DomainKeys Identified Mail Change Signing of outgoing mail enabled? to Yes. In the Selector for DKIM record name field enter a short name that you will use to identify the signing key. &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2017\/01\/28\/enabling-dkim-in-virtualmin\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Enabling DKIM milter in Virtualmin<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1041","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/1041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1041"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/1041\/revisions"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}