Those guys at Hostifi are great, love their service.
So nice to not have to manage your own servers anymore, dealing with backups, Unifi version upgrades, host OS upgrades, security of it all, etc. They vet out the upgrades before rolling them out. Safwan answers any support question pretty darn quick.
On this issue, Safwan was a failure - he ultimately responded with "We haven't been able to make it work with Office 365". Somehow I doubt that resolution, so I opened a ticket directly with Ubiquiti. Of course, their first response was "where are you hosting", which is undoubtedly going to be met with a suggestion to contact hostifi's support.
We'll see.
I have an O365 address:
notifications@mydomain.com. This is where I want to send the notifications. It works - I'm using it for all of my synology installs and random other things as well.
So, I created a distribution group,
ubiquiti@mydomain.com. I gave
notifications@mydomain.com SendAs permissions in the Exchange Admin Center. I've put smtp.office365.com in for the hostname on the controller SMTP Server section. I've tried port 25 & 587 without SSL and port 465 with SSL. I have "Enable Authentication" checked in the controller, and I'm using the
notifications@mydomain.com and it's password there. I have "Specify sender address" checked, and I'm using the distribution group address there:
ubiquiti@mydomain.com
When I attempt to send a test email, it doesn't work, and the error message is "There was an error sending the test email to
address@domain.com. Failed to send email for unknown reasons."
The error in the controller log is "[2021-06-23T21:42:57,692] <webapi-4150> WARN event - fail to send email: api.err.SmtpSendFailed"
There is nothing in either error message to give me direction, hence reaching out to support of both hostify and ubiquiti. I've already struck out with hostifi, and I'm expecting finger-pointing from Ubiquiti, but hoping to be pleasantly surprised. We'll see.