Hello,
action "relay" relay host smtp+tls://smtp.office365.com:587
auth <secrets>
the relay-url is missing the label.
man smtpd.conf
...
The format for relay-url is
[proto://[label@]]host[:port].
...
The label corresponds to an entry in a credentials table,
as documented in table(5). It is used with the
“smtp+tls” and “smtps” protocols for authentication.
...
This should work:
action "relay" relay host smtp+tls://[email protected]:587
auth <secrets>
cat /etc/mail/secrets:
msexchange [email protected]:*password*