Reactivate a broken IMAP service on Microsoft Exchange 2013/2016

And one day, suddenly, IMAP service stopped working properly on my Exchange 2013 mail server.

Usually by telneting to imap port, exchange server returns a banner.

0

When the IMAP service is broken, the telnet screen is blank and the connection aborts. The initial idea to restart the IMAP services on the exchange does not fix the problem. (In this case all the exchange roles reside on the same server)

4

Run the following command on a powershell window

Get-HealthReport <servername>  | where { $_.state -eq “Offline”}

It will return an offline IMAP.Proxy healthstate.

1

Usually this is a Microsoft bug, since it appears after installing a Cumulative Update on the Exchange Server. By setting online the IMAPProxy, the IMAP service comes into life. Run the following command:

Set-ServerComponentState -Identity <servername> -Component IMAPProxy -State Active -Requester HealthAPI

2

more at Microsoft

Advertisements

Convert a Linked Mailbox to a Shared Mailbox in Microsoft Exchange 2010

Sometimes, you may need to convert a linked mailbox to a shared one. A linked mailbox is a mailbox that is accessed by a user in a separate, trusted forest. You cannot convert it directly to a shared mailbox. First convert it to a usual user mailbox and then to a shared one. You cannot convert it via Exchange Management Console (EMC) gui, so open up an Exchange Management Shell (EMS) and type in:

Set-User -Identity <e-mail address> -LinkedMasterAccount $null

and then

Set-Mailbox <Mailbox Name> -Type shared

and finally give the appropriate permissions to the user

Add-MailboxPermission <Mailbox Name> -User "<domain\username>" -AccessRights FullAccess

Add-ADPermission Research -User "<domain\username>" -ExtendedRights Send-As

Create a Shared Mailbox in Microsoft Exchange 2010

A shared mailbox is a common mailbox that a group of users can open to read and send e-mail messages. It allows users to share a common calendar or a shared contact list. But how to create shared mailboxes in Microsoft Exchange 2010, since the Exchange Management Console (EMC) gui does not give you such an option? If you try to create a new mailbox, the only options are: User Mailbox, Room Mailbox, Equipment Mailbox and Linked Mailbox.

New Mailbox Wizard

New Mailbox Wizard

First execute the Exchange Management Shell (EMS) from the Microsoft Exchange Server 2010 menu.

Microsoft Exchange Server 2010 Menu

Microsoft Exchange Server 2010 Menu

The shell environment opens up

Exchange Management Shellvvv

Exchange Management Shell

A. Create a new Shared Mailbox

Type in the following cmdlet:

New-Mailbox -Name <Maibox Name> -Alias <Alias> -OrganizationalUnit "<OU path>" -Database "<Database>" -UserPrincipalName <E-mail Address> -Shared

And give the appropriate permissions to the user

Add-MailboxPermission <Mailbox Name> -User "<domain\username>" -AccessRights FullAccess

Add-ADPermission <Mailbox Name> -User "<domain\username>" -ExtendedRights Send-As

For example, I will create a new mailbox called Info and setup user Secretary to have access.

New-Mailbox -Name Info -Alias info -OrganizationalUnit "mydomain.local/myCompany/myDepartment" -Database "DB1" -UserPrincipalName info@mycompany.gr -Shared
Add-MailboxPermission Info -User "mydomain\secretary" -AccessRights FullAccess
Add-ADPermission Info -User "mydomain\secretary" -ExtendedRights Send-As

Full detailed syntax and parameters are in this Microsoft link.

B. Convert a User Mailbox to a Shared one

Type in the following cmdlet:

Set-Mailbox "<Maibox Name>" -Type shared

And give the appropriate permissions to the user as well

Add-MailboxPermission <Mailbox Name> -User "<domain\username>" -AccessRights FullAccess

Add-ADPermission <Mailbox Name> -User "<domain\username>" -ExtendedRights Send-As

For example, let’s suppose that we have created a user mailbox called Helpdesk and we need to convert it to a shared mailbox and give access right to user Operator.

Set-Mailbox "Helpdesk" -Type shared
Add-MailboxPermission Helpdesk -User "mydomain\operator" -AccessRights FullAccess
Add-ADPermission Helpdesk -User "mydomain\operator" -ExtendedRights Send-As

Full detailed syntax and parameters are in this Microsoft link.

The last two commands about access and send-as permissions can be configured from EMC gui, by selecting the mailbox and clicking on “Manage Send As Permission..” or “Manage Full Access Permission…” at the right pane of the window.

Access and Send-As Permissions

Access and Send-As Permissions