Zammad will use sendmail for notification, even for a M365 channel, if you select sendmail for notifications in the (general) e-mail channel config.
If you want to use sendmail also for regular outgiong mail (e.g. ticket replies), see Allow selecting local MTA for outgoing mails in the Microsoft365 channel - #2 by MrGeneration