How can I connect bounce handling to an Office365 server?

I always get error messages. Is Oauth still not available in Acymailing Bounce?

Fehler beim Verbinden zu {outlook.office365.com:993/ssl/novalidate-cert/service=imap}
Retrying PLAIN authentication after AUTHENTICATE failed.
Retrying PLAIN authentication after AUTHENTICATE failed.
Can not authenticate to IMAP server: AUTHENTICATE failed.

Thanks for help
Corinne

I'm also having the same issue as Corinne, and it seems that using an App Password is no longer an option since Microsoft has disabled Basic Authentication in Exchange Online: https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online It would be helpful if anyone else in the forum has found a solution or workaround for this problem, as it seems that OAuth 2.0 is recommended by Microsoft as the modern authentication method.

25 days later

We have the same issue aswell. Anyone found a workaround? We need a way to deal with our bounced emails.

a month later

I too am waiting for OAuth2 authentication using IMAP for Microsoft 365 inside of AcyMailing as we are moving away from using non Microsoft 365 email servers. In the meantime, in my opinion, it seems that the AcyMailing settings allow me to use any IMAP mailbox. So I am just going to set up a subdomain for my main domain and then host that email on one of my dev servers until AcyMailing rolls out the OAuth 2.0 support, which I am guessing they will do. Does anyone see an issue with doing it this way? I have not yet tested it.

To do this I will change the bounce email address which is set under Mail Settings, then configure the Bounce Handling section to add my temporary IMAP account which I created for that subdomain. I will use something like bounce.mydomain.com. There is no reason that this could not be a long term work around but knowing how AcyMailing operates I am certain that they will have OAuth 2.0 working for to allow us to configure Microsoft 365 email connections sometime soon.

I am sorry to say, but as long as PHP doesn’t develop OAuth for IMAP functions it won’t be possible in AcyMailing to use OAuth with bounce handling

https://www.php.net/manual/en/function.imap-open.php#127159

We need to change the IMAP library for php-imap, but it means changing a lot of code

I am sorry, but as you can see, for now, this is not possible in a reasonable timeframe

@webuniverse @lakewood @addlink @jimhill10

I wanted to suggest a workaround for the issue you are experiencing. You can create a mail-flow rule in Exchange to forward all the mail from your bounce mailbox to a non-O365 mailbox. After that, you can configure Acymailing to handle bounces from the non-O365 mailbox. This will allow you to use your O365 bounce address as well as Acymailimng's automatic bounce handling.

JVSTATUM's way would surely work. For now this is what I did as I am moving most of my email accounts away from IMAP. I created a hosting account on one of my dev servers which hosts email for the domain bounce.domain.com. I then created an email "bounce@bounce.domain.com" with the IMAP account and then entered the credentials into AcyMailing bounce configuration mailbox. Because I use Amazon SES I then there and confirmed the new domain and email address so that it can send on behalf of them. Finally, I changed my bounce email address in AcyMailing and it all is working fine. I still have to live with this one IMAP account, but the main email is now going through Microsoft 365.

    jimhill10

    I wanted to confirm my understanding of the situation. It appears that the bounce address has been changed to a different domain than the one emails are being sent from. In order to maintain DMARC compliance, it's important for the FROM, REPLY-TO, and BOUNCE addresses to have the same domain.

    To ensure compliance, I suggest keeping the bounce address that matches your domain, setting up a forwarder to send the bounces to a non-O365 address, and configuring the bounce handling to use this non-O365 mailbox.

    17 days later
    a year later
    10 days later

    Hi!

    I was happy to see this new feature and managed to get as far as a successful authentication when logging in to the M365 bounce account. But test connection failed and mailbox action - run bounce manage gives this:
    Error connecting to {outlook.office365.com:993/imap/ssl/novalidate-cert/service=imap}

      mrandras

      Hi,

      In order to best assist you with your query, I kindly request that you submit a support ticket through our website at https://www.acymailing.com/support/. This will enable our team to efficiently and effectively provide you with the assistance you need.