Self Host Azure SMTP issues


I have set a self host up in Azure Ubuntu instance… all works well apart from email. I know AZ blocks SMTP email but need to find a solution, Sendgrid does not seem to work as thats SMTP as well and bitwarden does not seem to support the Sendgrid API. Can anyone help with a solution.