EN 
30.11.2025 Ondřej WELCOME IN MY WORLD

This website is originally written in the Czech language. Most content is machine (AI) translated into English. The translation may not be exact and may contain errors.

Tento článek si můžete zobrazit v originální české verzi. You can view this article in the original Czech version.
Sdílené poštovní schránky na Exchange serveru

Shared mailboxes on an Exchange server

| Petr Bouška - Samuraj |
A Shared Mailbox is a mailbox used by multiple users to read and send messages. Public Folders or, with slightly different behavior, Distribution Groups serve a similar purpose.
displayed: 27 415x (26 258 CZ, 1 157 EN) | Comments [5]

On the Exchange server, we can use the standard mailboxes for users, referred to as User Mailbox, which are assigned to the user account in Active Directory, and this is used to access the mailbox. From Exchange server version 2007, we also have several special types, where the mailbox is again assigned to an account in AD, but it is disabled, so it cannot be used for login. These are the room (Room Mailbox) and equipment (Equipment Mailbox) mailboxes, which are collectively referred to as resource mailboxes (Resource Mailbox), or the shared mailbox (Shared Mailbox).

Room and equipment mailboxes are intended for scheduling, the shared mailbox for use by multiple users (e.g., for a hotline or a company's public address). The main advantage over using a regular user mailbox (which can of course be done) is that the assigned domain account is disabled, so it cannot be misused (which is a plus for security). For a shared mailbox, we need to set permissions for the users who are to use it.

All the mentioned mailboxes have the RecipientType attribute with the value UserMailbox and differ in the RecipientTypeDetails attribute, the user mailbox has the value UserMailbox, the shared mailbox SharedMailbox, the room RoomMailbox and the equipment EquipmentMailbox.

Creating a Shared Mailbox

If we want to create or convert a shared mailbox on the Exchange Server 2010, we cannot use the Exchange Management Console (EMC), but we must use the Exchange Management Shell (EMS), i.e. PowerShell cmdlets. On Exchange Server 2013, we can already use the Exchange Admin Center (EAC). To create it, we use the standard New-Mailbox command, just add the -Shared parameter, there is no need to enter a password because the disabled account doesn't need it. For example:

New-Mailbox -Shared -Name 'Marketing' -Alias 'marketing' -OrganizationalUnit 'company.local/Shared' -UserPrincipalName 'marketing@company.local' -SamAccountName 'marketing' -Database "Mailbox Database"

Changing the Mailbox Type

The second option is to create a standard user mailbox and then convert it to a shared one. This simplifies the creation, as we can use the GUI (but we have to set a password for the user), but the actual conversion can only be done using a cmdlet in the EMS. We convert the user mailbox to a shared one using:

Set-Mailbox marketing -Type Shared

We can also do the conversion the other way around (or to another mailbox type):

Set-Mailbox marketing -Type Regular

It may be useful to list the mailboxes and their types:

Get-Mailbox | FT Name, RecipientTypeDetails

Setting Permissions for a Shared Mailbox

We have a shared mailbox so that several different users can use it. We need to set permissions for them first. The commonly used one is full access to the mailbox (Full Access Permission), which allows the user to act as the owner of the mailbox. They can do almost anything, but they cannot send mail from that address. For that, we also need to set the Send As or Send on Behalf permission.

Setting Full Mailbox Access

We can set the full access to the mailbox permission graphically in the EMC or using a cmdlet in the EMS. In the EMC, we just right-click on the mailbox in the Recipient Configuration - Mailbox and choose Manage Full Access Permission, then add the user. In the shell, we use the cmdlet

Add-MailboxPermission marketing -User bouska -AccessRights FullAccess

The set permission takes effect immediately. If we have Exchange Server 2010 SP1, Outlook 2007 and Outlook 2010 clients will use the automatic mailbox mapping feature, and the user will see their own and the shared mailbox right after restarting the client. They don't have to add it manually in Outlook settings. This behavior can be disabled (starting from Exchange 2010 SP2) when setting permissions:

Add-MailboxPermission marketing -User bouska -AccessRights FullAccess -InheritanceType All -Automapping $false

Setting Send As Permission

We described the setting of the send mail on behalf of the mailbox permission in the article Exchange Send As - sending emails from another address (where we also mentioned how to send mail on behalf of another mailbox). It's a permission on the Active Directory user, so we can set it using ADUC, PowerShell with the AD module, or EMC, where again in Recipient Configuration - Mailbox we right-click on the mailbox and choose Manage Send As Permission.

This permission does not take effect immediately, but typically within two hours, when the replication is done. It is also important that the mailbox from which we want to send the mail must be in the directory (must not be hidden), otherwise it is evaluated as foreign and we don't have permission to it.

Saving Sent Mail in Outlook

If we have not only our own mailbox, but also another - shared one in Outlook, all the sent mail is saved to the Sent Items folder of the user who sent the mail. When using shared mailboxes, we would rather want the mail sent on behalf of the shared mailbox to be saved in that mailbox. For Outlook 2010, this can be resolved, we need to have the KB 2459115 hotfix installed and set an item in the registry. Microsoft describes this in the article Messages sent from a shared mailbox aren't saved to the Sent Items folder of the shared mailbox in Outlook 2010.

In the registry, in the path HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Preferences, we create a DWORD value DelegateSentItemsStyle and set it to 1.

Author:

Related articles:

Microsoft Exchange

Almost since the beginning of my practice, I have been involved in the administration of the Microsoft mail server, i.e. Exchange Server. I started with the 2003 version and worked my way up to Exchange Online. The articles cover many areas of management. Most since the migration to Exchange Server 2016 and its complete configuration. But also Exchange Hybrid and e-mail security.

If you want write something about this article use comments.

Comments
  1. [1] Jan Černocký

    Ad chování odeslané pošty...

    V SP3 Exchange 2010 je možné toto chování použít na straně Exchange příkazem Set-MailboxSentItemsConfiguration s parametrem SendAsItemsCopiedTo <Sender | From | SenderAndFrom>

    Tuesday, 30.09.2014 21:33 | answer
  2. [2] Samuraj

    respond to [1]Jan Černocký: Díky za dobrou radu, konečně jsem to otestoval a krásně funguje. Když na sdílené schránce (prostě tam kde máme právo Send As) nastavíme

    Set-MailboxSentItemsConfiguration testsend -SendAsItemsCopiedTo SenderAndFrom

    Tak se odeslaná pošta ukládá do schránky uživatele, který poštu odesílá, i do sdílené schránky.

    Tuesday, 21.10.2014 17:58 | answer
  3. [3] l.p.m

    Také mě tento PS příkaz potěšil (kdo má pořád někde upravovat registry :-)).

    Zarazila mě ale jedna věc, je úplně jedno, jestli nastavím From nebo SenderAndFrom. V obou případech se zpráva uloží do složky Odeslaná pošta ve schránce odesílatele i ve schránce za koho odesílám.

    Nevíte, prosím, jak lze toto napravit?

    Friday, 13.02.2015 08:58 | answer
  4. [4] Michal Švehla

    Bohužel jsem zjistil, že na sdíleném mailboxu nefunguje ActiveSync pro mobilní zařízení - neznáte někdo jiné řešení než přepnutí na klasický mailbox?

    Wednesday, 29.06.2016 09:21 | answer
  5. [5] Tonic

    Zdravím,

    jak přesunout odeslanou poštu z jednoho mailboxu (puvodniho) do nového mailboxu v rámci Exchange2010

    Monday, 21.11.2016 11:27 | answer
Add comment

Insert tag: strong em link

Help:
  • maximum length of comment is 2000 characters
  • HTML tags are not allowed (they will be removed), you can use only the special tags listed above the input field
  • new line (ENTER) ends paragraph and start new one
  • when you respond to a comment, put the original comment number in squar brackets at the beginning of the paragraph (line)