{"id":1465,"date":"2012-12-11T11:04:33","date_gmt":"2012-12-11T11:04:33","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=1465"},"modified":"2012-12-11T11:15:29","modified_gmt":"2012-12-11T11:15:29","slug":"stop-apples-dovecot-allowinf-all-users-on-a-virtual-domain","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=1465","title":{"rendered":"Stop Apples Dovecot allowinf all users on a Virtual Domain"},"content":{"rendered":"<p>Dragging up an old post, but for those that stumble upon this I found a solution for allowing users to login with their email address. The issue is that Apple configures Dovecot to strip the &#8216;@&#8217; and anything after it from the username before looking up the account.<\/p>\n<p>&nbsp;<\/p>\n<p>The solution is to override this configuration by creating the following file: &#8216;\/ect\/dovecot\/local.conf&#8217; with the following content.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\"># Username formatting before it's looked up from databases. You can use<br \/>\n# the standard variables here, eg. %Lu would lowercase the username, %n would<br \/>\n# drop away the domain if it was given, or &quot;%n-AT-%d&quot; would change the '@' into<br \/>\n# &quot;-AT-&quot;. This translation is done after auth_username_translation changes.<br \/>\nauth_username_format = ''<\/div><\/div>\n<p>Apple has this config set to %n by default.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dragging up an old post, but for those that stumble upon this I found a solution for allowing users to login with [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1465","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1465"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1465\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}