{"id":4465,"date":"2014-04-04T15:12:58","date_gmt":"2014-04-04T13:12:58","guid":{"rendered":"http:\/\/www.limilabs.com\/blog\/?p=4465"},"modified":"2021-02-04T18:10:17","modified_gmt":"2021-02-04T16:10:17","slug":"access-shared-delegate-mailbox-exchange-server","status":"publish","type":"post","link":"https:\/\/www.limilabs.com\/blog\/access-shared-delegate-mailbox-exchange-server","title":{"rendered":"Access shared\/delegate mailbox of Exchange Server"},"content":{"rendered":"<h2>1. Enable IMAP and POP3 protocols<\/h2>\n<p>Make sure you have enabled IMAP and POP3. Following articles can help you with that:<\/p>\n<ul>\n<li><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/bb124934.aspx\">How to enable POP3 in Exchange<\/a><\/li>\n<li><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/bb124489.aspx\">How to enable IMAP in Exchange<\/a><\/li>\n<\/ul>\n<h2>2. Turn on basic authentication<\/h2>\n<h3>Using Exchange Management Console<\/h3>\n<ul>\n<li>Open EMC, expand to Server Configuration-&gt;Client Access.<\/li>\n<li>In the middle panel, click your exchange CAS server, click POP3 and IMAP4 tab, right click IMAP4 and choose properties.<\/li>\n<li>In Authentication tab, select &#8220;Plain text logon (Basic authentication)&#8221;, then click OK.<\/li>\n<li>Open services.msc, <strong>restart <\/strong> Microsoft Exchange Transport services.<\/li>\n<\/ul>\n<h3>Using Power Shell<\/h3>\n<p><code>Set-IMAPSettings -Server  -LoginType PlainTextLogin<\/code><br><code>Set-POPSettings -Server  -LoginType PlainTextLogin<\/code><\/p>\n<p>Open services.msc, <strong>restart <\/strong> Microsoft Exchange Transport services.<\/p>\n<h2>3. Add permissions to the shared mailbox<\/h2>\n<p>Give one user full access permission to the shared mailbox:<\/p>\n<p><code>Add-MailboxPermission Shared.Mailbox1 -user John.Doe -AccessRights FullAccess<\/code><\/p>\n<p>This also can be configured from EMC (Exchange Management Console) gui, by selecting the mailbox and clicking on &#8220;Manage Full Access Permission&#8230;&#8221; at the right pane of the window.<\/p>\n<p>Note: You can not add permissions for user without mailbox, Powershell is the only option in such case.<\/p>\n<h2>4. Access the shared mailbox<\/h2>\n<h3>Exchange 2003<\/h3>\n<p>Use the following user format <strong>DomainName\\Username\\SharedMailboxAlias<\/strong> (note the use of <strong>SharedMailboxAlias<\/strong> it&#8217;s often same as the name but it may be different)<br>(e.g. DOMAIN\\John.Doe\\Shared.Mailbox1) to log into the shared mailbox.<\/p>\n<h3>Exchange 2007<\/h3>\n<p>Install this patch: <a href=\"http:\/\/support.microsoft.com\/?kbid=949926\">http:\/\/support.microsoft.com\/?kbid=949926<\/a><\/p>\n<p>Use the following user format <strong>DomainName\\Username\\SharedMailboxAlias<\/strong> (note the use of <strong>SharedMailboxAlias<\/strong> it&#8217;s often same as the name but it may be different)<br>(e.g. DOMAIN\\John.Doe\\Shared.Mailbox1) to log into the shared mailbox.<\/p>\n<h3>Exchange 2010, Exchange 2013, Exchange 2016, Exchange 2019<\/h3>\n<p>Use the following user format <strong>DomainName\\Username\\SharedMailboxAlias<\/strong> (note the use of <strong>SharedMailboxAlias<\/strong> it&#8217;s often same as the name but it may be different)<br>(e.g. DOMAIN\\John.Doe\\Shared.Mailbox1) to log into the shared mailbox.<\/p>\n\n\n<h3 class=\"wp-block-heading\"> Office 365\/Exchange Online <\/h3>\n\n\n\n<p>You can find more details here: <a href=\"https:\/\/www.limilabs.com\/blog\/shared-mailbox-office365\">https:\/\/www.limilabs.com\/blog\/shared-mailbox-office365<\/a> <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\n\nUse the following user format <strong>Username@DomainName\\Shared@DomainName<\/strong><\/p>\n\n\n\n<p>\n\nYou must use Login method:\n\n<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\nclient.Login(@\"Username@DomainName\\Shared@DomainName\", \"UserPassword\"); \n<\/pre><\/div>\n\n\n<p>\n\n-or- LoginPlain method:\n\n<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\nclient.LoginPlain(\"Shared@DomainName\", \"User@DomainName\", UserPassword\");\n<\/pre><\/div>\n\n\n<p>Don&#8217;t use <em>UseBestLogin<\/em> for Office365 shared mailboxes. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"> Using LoginPLAIN to login as a different user <\/h2>\n\n\n\n<p>\n\nYou can try 3rd parameter of <em>LoginPLAIN<\/em> to log in as a different user:\n\n<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\nusing (Imap imap = new Imap) \n{ \n    imap.ConnectSSL(\"outlook.office365.com\"); \n    imap.LoginPLAIN(\"SharedMailboxAlias\", \"Username@DomainName\", \"UserPassword\"); \n    \/\/... \n    imap.Close(); \n}\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>1. Enable IMAP and POP3 protocols Make sure you have enabled IMAP and POP3. Following articles can help you with that: How to enable POP3 in Exchange How to enable IMAP in Exchange 2. Turn on basic authentication Using Exchange Management Console Open EMC, expand to Server Configuration-&gt;Client Access. In the middle panel, click your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[21,28,91,42,124],"class_list":["post-4465","post","type-post","status-publish","format-standard","hentry","category-mail-dll","tag-exchange","tag-imap","tag-outlook365","tag-pop3","tag-shared"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/4465"}],"collection":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/comments?post=4465"}],"version-history":[{"count":29,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/4465\/revisions"}],"predecessor-version":[{"id":5817,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/4465\/revisions\/5817"}],"wp:attachment":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/media?parent=4465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/categories?post=4465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/tags?post=4465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}