Skip to content

Commit 3759443

Browse files
authored
Fixes #740 - Reworked M365 IMAP channel
1 parent fafdf53 commit 3759443

27 files changed

+351
-484
lines changed

channels/email/accounts/archive-mode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.. figure:: /images/channels/email/account-setup-archive-import.png
33
:alt: Archive Mode dialog during email account setup
44
:align: center
5-
:scale: 100%
5+
:scale: 80%
66

77
How should old emails be imported?
88

channels/microsoft365-graph/accounts.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,20 @@ Now your channel is ready and can be used! If something doesn't work, have
146146
a look at the :doc:`common errors section <common-errors>`, where you can
147147
find common errors related to the M365 configuration.
148148

149+
.. note:: 🤔 **How do I use my Microsoft 365 account for outgoing system notifications?**
150+
151+
On **subscription/cloud-hosted instances**, you can't.
152+
Notifications will always come from
153+
“Notification Master <noreply\@your.zammad.domain>”.
154+
155+
On **self-hosted instances**, we still don't recommend it.
156+
Using a Microsoft account for automated, outgoing messages is risky:
157+
users who exceed Microsoft's
158+
`email sending limits <https://docs.microsoft.com/en-us/office365/servicedescriptions/exchange-online-service-description/exchange-online-limits#receiving-and-sending-limits>`_
159+
can have their accounts suspended.
160+
161+
Set up a generic :doc:`email channel </channels/email/index>` instead,
162+
then use the :ref:`Email Notification <email-notification>` setting.
149163

150164
Re-Authenticate
151165
^^^^^^^^^^^^^^^

channels/microsoft365/accounts.rst

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,53 +10,32 @@ Accounts
1010
accounts/secondary-addresses
1111
accounts/managing-accounts
1212

13+
Use the links below to step through the process of adding an M365 IMAP channel
14+
to Zammad.
15+
1316
:doc:`accounts/register-app`
1417
Use the **Connect Microsoft 365 App** dialog to register Zammad as an
1518
OAuth app on Microsoft.
1619

17-
(This step is **required**; read on to learn why.)
18-
19-
.. figure:: /images/channels/microsoft365/accounts/register-app/04-add-oauth-credentials.gif
20-
:alt: Registering Zammad as a Microsoft OAuth app
21-
:scale: 60%
22-
:align: center
20+
This step is **required** before adding an account to Zammad.
2321

2422
:doc:`accounts/account-setup`
2523
Use the **Add Account** dialog to connect your account.
2624

27-
You're migrating existing email channels? Look below!
28-
29-
.. figure:: /images/channels/microsoft365/accounts/account-setup/add-microsoft365-account-to-zammad.gif
30-
:alt: Adding your gmail account to Zammad
31-
:scale: 60%
32-
:align: center
25+
If you want to migrate an existing email channel, see next section.
3326

3427
:doc:`accounts/migrate-from-email-channel`
35-
Use the *Migrate now!* button within your email channels to quickly move
36-
your mailboxes to Microsoft 365. You can roll back if things hit the fan!
37-
38-
.. figure:: /images/channels/microsoft365/accounts/migrate-email-channel-to-microsoft365.gif
39-
:alt: Migrate an existing email channel to Microsoft 365
40-
:scale: 60%
41-
:align: center
28+
Migrate your existing email channels from standard IMAP to the dedicated
29+
M365 IMAP channel in Zammad to quickly move your mailboxes. You can roll
30+
back if something goes wrong!
4231

4332
:doc:`accounts/secondary-addresses`
4433
Send and receive email at **additional email addresses**,
4534
all through the same mailbox/account.
4635

47-
.. figure:: /images/channels/microsoft365/accounts/add-microsoft365-alias.gif
48-
:alt: Adding new aliases to your Microsoft account in Zammad
49-
:scale: 60%
50-
:align: center
51-
5236
:doc:`accounts/managing-accounts`
5337
Edit the configuration of existing accounts in the **Accounts Panel**.
5438

55-
.. figure:: /images/channels/microsoft365/panel.png
56-
:alt: Existing accounts can be edited from the Accounts panel.
57-
:scale: 60%
58-
:align: center
59-
6039
.. note:: 🤔 **How do I use my Microsoft 365 account for outgoing system notifications?**
6140

6241
On **subscription/cloud-hosted instances**, you can't.

channels/microsoft365/accounts/account-setup.rst

Lines changed: 23 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ Account Setup
22
=============
33

44
After you've :doc:`registered Zammad as an OAuth app <register-app>`
5-
in your Azure Portal, you can begin connecting Microsoft accounts to Zammad.
5+
in your Entra admin center, you can begin connecting Microsoft accounts to
6+
Zammad.
67

78
☠️ **But first, a word of warning!**
89
The import process does things you might not expect:
@@ -12,9 +13,9 @@ The import process does things you might not expect:
1213
import process. Use the *Keep Messages on Server* setting to
1314
:ref:`disable this behavior <microsoft365-keep-messages-on-server>`.
1415
* Zammad will **send an auto-reply message to every email it imports**
15-
(including the old ones!). Make sure to :doc:`disable this behavior </manage/trigger>`
16-
prior adding an email account, and to turn it back on once all your
17-
messages have been imported.
16+
(including the old ones!). Make sure to
17+
:doc:`disable this behavior </manage/trigger>` prior adding an email
18+
account, and to turn it back on once all your messages have been imported.
1819

1920
.. tip:: 🤓 **Shared mailboxes are possible...**
2021

@@ -47,64 +48,33 @@ Requesting the consent
4748
If your admin already provided consent, you'll be automatically
4849
authenticated, if this happens, continue with `Add a New Account`_.
4950

50-
After authenticating against Microsoft and providing a reason for your request,
51-
you'll be redirect to the Zammad app. Zammad will then tell you to wait for
52-
your administrators consent. The consent grant or denial will be sent by mail.
53-
54-
.. figure:: /images/channels/microsoft365/accounts/account-setup/request-admin-consent-if-not-granted.gif
55-
:alt: Click on Request Admin Consent if your administrator did not yet grant
56-
the Zammad app for your tenant.
57-
:scale: 50%
58-
:align: center
51+
After authenticating against Microsoft and providing a reason for your
52+
request, you'll be redirect to the Zammad app. Zammad will then tell you to
53+
wait for your administrators consent. The consent grant or denial will be
54+
sent by mail.
5955

6056
Granting the consent (admin users)
61-
Within **Enterprise applications** go to **Admin consent requests**.
62-
You'll find all your user grant requests here.
57+
Within **Enterprise applications** in the Entra admin center, go to
58+
**Admin consent requests**. You'll find all your user grant requests here.
6359

6460
Clicking on a request allows you to review which user requested the consent
6561
for what app. Click on **Review permissions and consent** to start the
6662
grant process. You'll be asked for credentials - these credentials are the
6763
administrator credentials *not* the ones of the mailbox user to add.
6864

69-
After you've granted the request, continue with `Add a New Account`_.
70-
(As mentioned in
71-
:ref:`Step 3.1 of the App registration <register_ms_app_stepbystep>`)
72-
73-
.. figure:: /images/channels/microsoft365/accounts/account-setup/granting-consent-request-of-user.gif
74-
:alt: Within Enterprise applications grant requests within admin consent
75-
requests
76-
:scale: 50%
77-
:align: center
65+
After you've granted the request, continue with "Add a New Account" below.
7866

7967
Add a New Account
8068
-----------------
8169

82-
.. note::
83-
84-
.. container:: cfloat-left
85-
86-
Below shown screencast shows the authentication process with enabled admin
87-
consent and already tenant wide granted permission.
88-
89-
If you're not using admin consent in your organization or you're
90-
authenticating a personal microsoft account, you'll see an additional
91-
permission dialogue you'll have to approve.
92-
93-
.. container:: cfloat-right
94-
95-
.. figure:: /images/channels/microsoft365/accounts/account-setup/app-permission-dialogue.png
96-
:alt: Authentication dialogue for non admin consented users
97-
:scale: 40%
98-
:align: center
99-
100-
.. figure:: /images/channels/microsoft365/accounts/account-setup/add-microsoft365-account-to-zammad.gif
101-
:alt: Click on Add Account to add your Microsoft account to Zammad
70+
.. figure:: /images/channels/microsoft365/accounts/account-setup/add-account.png
71+
:alt: Click on Add Account to add your Microsoft 365 account to Zammad
10272
:scale: 60%
10373
:align: center
10474

105-
Click **Add Account** to connect your Microsoft 365 / Outlook accounts to Zammad.
106-
You will be redirected to a Microsoft sign-in and confirmation page.
107-
75+
Click **Add Account** to connect your Microsoft 365 accounts to Zammad.
76+
You will be redirected to a Microsoft sign-in and confirmation page. Enter
77+
your credentials and confirm it by clicking the **Accept** button.
10878

10979
.. note:: 🕵️ **Aliases are not imported automatically.**
11080

@@ -114,7 +84,7 @@ Channel
11484
^^^^^^^
11585

11686
.. figure:: /images/channels/microsoft365/accounts/account-setup/microsoft365-account-settings.png
117-
:alt: Click on Add Account to add your Microsoft 365 account to Zammad
87+
:alt: Screenshot showing channel configuration during adding account for M365
11888
:scale: 50%
11989
:align: center
12090

@@ -156,7 +126,8 @@ Archive Mode
156126

157127
After adding the account
158128
After successfully adding the Microsoft 365 mail account, you can adjust
159-
the default group Zammad is going to assign incoming new tickets to.
129+
the default group Zammad is going to assign incoming new tickets to by
130+
clicking the group name under "Destination Group":
160131

161132
.. figure:: /images/channels/microsoft365/accounts/account-setup/change-destination-group.png
162133
:alt: Location of "Destination Group" setting for existing accounts
@@ -185,3 +156,6 @@ My mailbox was working fine but suddenly it fails with ``EXPUNGE FAILED``
185156

186157
As soon as the issue has been fixed, the Zammad channel will recover
187158
automatically.
159+
160+
Have a look at the :doc:`common errors section <../common-errors>` if you still
161+
face issues with your M365 account.

channels/microsoft365/accounts/migrate-from-email-channel.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Migrate From Email Channel to Microsoft 365 Channel
22
===================================================
33

4+
Migrate
5+
-------
6+
47
Zammad provides a migration logic that allows you to migrate existing Microsoft
58
365 accounts from the Email channel to the Microsoft 365 channel.
69

@@ -19,14 +22,9 @@ banner of the email channel in question. Zammad will redirect you to
1922
Microsoft and request you to authenticate and consent to said account.
2023

2124
After you pressed next you'll be redirect to Zammad's Microsoft 365 channel
22-
overview. Your channel, if successful, is now migrated to an Microsoft 365
25+
overview. Your channel, if successful, is now migrated to a Microsoft 365 IMAP
2326
channel.
2427

25-
.. figure:: /images/channels/microsoft365/accounts/migrate-email-channel-to-microsoft365.gif
26-
:alt: Migrate an existing email channel to Microsoft 365
27-
:scale: 90%
28-
:align: center
29-
3028
Rolling Back the Migration
3129
--------------------------
3230

0 commit comments

Comments
 (0)