Hi All,
I have solved the issue. I know where to check the logs file and I do troubleshooting from there.
here are my code:
# Outbound Email Configuration#
mail.host= (your MX endpoint).protection.outlook.com
mail.port=25
mail.protocol=smtp
mail.username= (account name) #<— This is the email address used to log into Office 365
mail.smtps.starttls.enable=false
mail.smtps.auth=false
mail.from.default= (account name) #<—-(This has to be the same as the email use to log into Office365 in the mail.username config line)
I did setup SMTP relay connector in Office 365 portal (Login to Office 365 Portal > Exchange Admin Portal > Mail Flows > Connectors)
Hopefully it can help others who face the same issue like me.
Best regards,
Jumi