I just hit a major block in a planned migration from Azure to GCP/GCE. GCP does not allow egress of SMTP on port 587. I double checked and their support confirmed this. The upshot is that I can't use the SMTP server in Office 365 from my GCEs as the requirement for SMTP when using O365 is port 587 at smtp.office365.com. Bizarrely, (and somewhat contradicting the supposed reason for this block) port 2525 is open for SMTP traffic. Oh, and of course port 587 is open if you use Google for email!!
Has anyone found a way around this, perhaps by getting SMTP out on 2525 and back to O365 on port 587 - but I assume that needs a server outside of GCP - defeating the whole object of the exercise!!
I have a workaround by using a third-party email service open on 2525 (AuthSMTP), but this adds cost and more importantly means I wouldn't have a single source of email for audit purposes within O365.