Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Office365 Shared Mailbox #78

Closed
4 tasks
devinhyden opened this issue Apr 4, 2018 · 0 comments
Closed
4 tasks

Office365 Shared Mailbox #78

devinhyden opened this issue Apr 4, 2018 · 0 comments

Comments

@devinhyden
Copy link

devinhyden commented Apr 4, 2018

This is not an issue. I would have added it to the Wiki, but that is not setup. I do not know where else to place this information. Please let me know if there is a better place.

Connecting to Office365 works out of the box. Connecting to a shared mailbox required additional configuration. It took me sometime to figure out and wanted to share.

How to connect to an Office365 shared mailbox

  • Create the sharedbox in Office365 with an alias

  • Grant permission to the user account performing the IMAP with read and manage to the shared mailbox

  • Create a new profile (or however you configured your IMAP configuration)
    IMAP_HOST=outlook.office365.com
    IMAP_PORT=993
    IMAP_ENCRYPTION=SSL
    IMAP_VALIDATE_CERT=TRUE
    IMAP_USERNAME = (SMTPADDRESS of user account)/(mailboxname)
    IMAP_PASSWORD = (SMTPADDRESS of user account's password)

  • config options['open'] add 'DISABLE_AUTHENTICATOR' => 'PLAIN'

Example
User Account
SMTP - test@test.com
PASS - test1234

SharedMailbox
SMTP - reports@test.com
Alias - reports-mailbox@test.com

IMAP_USERNAME = test@test.com/reports
IMAP_PASSWORD = test1234

For the username, I've noticed using the alias does not work and have not tested connecting to a shared mailbox without an alias.

'options' => [
        'delimiter' => '/',
        'fetch' => FT_UID,
        'open' => [
            // 'DISABLE_AUTHENTICATOR' => 'GSSAPI'
            'DISABLE_AUTHENTICATOR' => 'PLAIN'
        ]
    ]

Answer taken from https://stackoverflow.com/questions/28481028/access-office356-shared-mailbox-with-php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant