Office 365 Email Sending Issue

Hello
Looking for a little help with an issue with a 365 email account. I am sure I am doing something wrong.

I have the account setup and working on a channel for 365 and when someone emails this address the ticket system creates a ticket in the system. So for incoming this is working.

Problem is Zammad wont send emails using this account when an Agent responds to a ticket. Nothing takes place even as the image I uploaded shows the Outgoing is green.

If I got to Email these are the options I have and I have Outgoing set as the same email address.

Hope someone can guide me into the right direction as this is a major piece of my puzzle to get this working.

Thanks in advance.

Was this working before or is this a new setup?

My first guess would be to check the Group and make sure it has an email associated with it.

I checked and its there >

This is a new setup and the 365 outgoing emailing has never worked.

Is SMTP required here for outgoing emails to work?

In the email image above, should Office365 also show up next to Local MTA and SMTP in the drop down list?

Are there options in the Sendmail that I am missing that I never configured?

Ahh yes, you need to configure your outbound settings.

Where do I configure the outbound settings for the Office365 email account?

I believe you want to do that under the “Email” channel. There is an outbound option there.

Take a look at my original post, I think its the 2nd pic… Or is that not the correct screen area?

Perhaps the documentation is best. If you are going to use MS 365, you need to configure it. It doesn’t look like you have it configured.

https://admin-docs.zammad.org/en/6.3/channels/email/accounts/email-notification.html

I don’t see an option for 365 in the email section. Only sendmail and SMTP… How do I get the 365 option to show up?

Thanks for all your help Sal.

The notification channel does (as stated in the documentation) not support Microsoft 365 and Google channels.

So I would have to use sendmail or SMTP for email reply to end users when tickets are created \ updated?

Trying my best to avoid having to enable SMTP on the 365 Tenant default security policy.

I was able to get the SMTP Settings to work using Office365 Direct Send.

Thanks for your help and getting me on the right path.

I found that in order for Zammd to actually use the configured outbound email address I have to instruct it separately. I clicked on “Edit” next to “Inbound” (below the “Microsoft 365 Accounts” caption - visible in the first screenshot you posted here) and then selected “Switch to ”. Then it was working for me.

Good morning! Could you share how you did it? I’m facing the same scenario. Here in our newly configured environment, the entire company runs on Windows 365, and everything works except for the email notifications generated by Zammad.

I was using Microsoft Direct send, where it allows for sending emails directly to mailboxes only within the organization without needing authentication.

Unfortunately attackers started using it for phishing attacks a few months later > https://www.proofpoint.com/us/blog/email-and-cloud-threats/attackers-abuse-m365-for-internal-phishing

So I had to disable direct send. I am going to look at other options or see how to lock down direct send, but it would be nice if Zammad would allow this M365 account to work out of the box.

Another option would be to enable SMTP on the tenant but only allow SMTP connections from the public Zammad IP.

Hello Wesley,

I’m using the ITB SMTP Relay on one of our Windows Servers to get Zammad Notifications. You can send Mails via SMTP to it and it relays the Mail over to O365 via Graph API.

You can find it here: https://www.itatbusiness.de/produkt/itb-smtp-via-graphapi/

It’s for free and easy to configure. Maybe it works for your scenario also.