Net::SMTPSyntaxError: Net::SMTPSyntaxError

Infos:

Expected behavior:

  • Could receive email via IMAP with OAuth on O365
  • Could send out email via SMTP with OAuth on O365

Actual behavior:

  • Receiving mail is working fine, no issue at all, so I expected the OAuth token has no issue.
  • Error return for send out mail: Delivery failed: “Unable to send email to ‘moses@contoso.com’: Can’t use Channel::Driver::Smtp: #<Net::SMTPSyntaxError: Net::SMTPSyntaxError>”

Steps to reproduce the behavior:

  • Setup an shared mailbox address from Channels > M365 channel
  • Configure email address from default group “Users”
  • Create a testing ticket, to mail at different domain / same domain, click Update, error message return after a while.

Check on log, but seems no useful log for trouble shoot even at debug level.
Could you please advise?

Thanks,

Moses

Looks like you need to configure your outbound email address.

I did configured the outbound address from channel, also the email address at group “Users”.
However, since my mailbox login is using default xxx.onmicrosoft.com domain, and the mail address is xxx.com. I’m not sure if this affect, but if I set outbound address by using these 2 mail address, still not success.

If you have your domain setup in 365, it should work with that as your login as well. Your email address should be xxx.com and xxx.onmicrosoft.com. Setting them up as different may be your issue.

Perhaps you need to review your MSO setup.

The user most likely isn’t allowed to use SMTP for sending. It’s a configuration issue on Microsoft 365 side.

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.