Mail notifications not working

  • Used Zammad version: 7.0.0-1772726494.13e12b47.noble
  • Used Zammad installation type: (source, package, docker-compose, …)
  • Operating system: Ubuntu 24.04.4
  • Browser + version: Edge 147.0.3912.60

Expected behavior: Notifications to customer when ticket is updated.

Actual behavior: Nothing happens.

Steps to reproduce the behavior:

  • Microsoft 365 Graph Email has been configured, this has a signature applied.

  • There is a group “IT Tickets” which All tickets are routed to when they are created using a trigger. This has the sending email address set.

  • There is then a trigger for auto reply when a ticket is created
    Conditions are

  • (Ticket) Action = Created

  • State = new

  • Type = email, note, phone & web

  • Sender = Customer
    Changes on Objects are

  • Email

  • Visibility = public

  • Recipient = Sender of last article (also tried customer)

I did see another questions where a user also had to configure SMTP as well as graph but I can’t find any documentation around this to support it?

See Email Notification — Zammad Admin Documentation documentation

Trigger based emails != Email notifications.

OP explicitely asks for trigger based notifications towards their customers.
The production.log should hold clues on why a trigger didn’t fire if applicable.

Thanks but this is not what I was after, the system notifications were fine it was the Customer notifications that didn’t work. I found the fix and will post above.

I’ve tracked this down and believe I’ve found the root cause.

From what I can see, trigger‑generated emails are not sent via the Microsoft Graph mailbox integration. Instead, these messages still require SMTP or sendmail to be configured.

In my environment, when testing notification delivery, mail is sent via the Linux sendmail interface backed by Postfix, which then relays to Microsoft 365 using an Exchange Online inbound connector authenticated by public IP.

If this understanding is incorrect and Microsoft Graph alone should be capable of sending system notifications and trigger emails, could someone please confirm the correct configuration to make that work?

trigger based mails use the groups channel mailcox. system notifications use the notification channel.

you’re mixing too topics, not just in terms of wording, but also in what you’re trying to say. at least it feels that way.

Yeah, I think I blurred the wording and explanation a bit earlier. Let me try to clarify what we’re seeing in case it helps others (and keen to get your feedback if I’ve misunderstood anything).

From testing in our environment:

  • Trigger-based emails are dependent on the group’s email/channel configuration, as you mentioned.
  • System notifications use the separate Email Notification channel, as mentioned.

However, in our case, even with the group and trigger conditions configured correctly, customer emails were not being sent until a working local mail transport (sendmail/Postfix) was in place.

After:

  • confirming /usr/sbin/sendmail was available,
  • cleaning up conflicting sendmail/Postfix installs, and
  • configuring Postfix to relay via Microsoft 365 (Exchange Online connector by public IP),

we started seeing successful delivery, with logs showing: postfix/smtp … status=sent

Based on that, it appears that:

Even when Microsoft Graph is configured for mailbox integration, a working outbound mail transport (SMTP or sendmail) on the host is still required for trigger-generated emails to be delivered.

That said, I’m not completely confident this is the expected behaviour as I did have a test environment with only MS Graph configured where mail appeared to work fine.

So it’s possible something in our production setup was misconfigured along the way.

Would appreciate any clarification on whether:

  • Graph should be sufficient on its own for trigger emails, or
  • a local mail transport is still expected in self-hosted setups.

maybe I can help you guys with OAuth Notifications enabling https://community.zammad.org/t/email-notification-using-oauth-provided-as-a-package/20061

Trigger based emails should flow via the normal graph channel. If you can answer (so reply by email in a ticket) normally and the mail arrives as expected, the same should happen for a trigger based reply too.

Notification mails via the notification channel do only affect the agents (to 98%). Customers do not receive ticket update notifications at all.

I’m not sure if this clarifies your question better?

@MrGeneration No, what you’re saying isn’t true. Your method doesn’t work reliably for resetting passwords when tickets are updated or during escalations. Especially when someone forgets their password, you get an error message. That’s why I spent hours and days developing a solution that would help our customers.

What solution exactly? I’m referencing OPs post from today, not earlier.

I probably misunderstood what was said

Hi,

Yeah what you are saying is what the behavior I expected. For some reason though, emails weren’t going out - inbound mail was working fine with just graph configured and if users emailed our helpdesk@xxxx address the ticket would be created. But when responding on a ticket the outbound messages were not working.

After I configured the relay it worked so I don’t know what happened with it.

Happy for you to close and archive this.

Last warning. Stop spammibg this forum. You‘re repeating yourself and aggressively advertise your ‚service‘.

If you do it again, your account might get terminated.

1 Like