I'm running the windows server 2019 on Azure VM. There I've installed the Jenkins. The problem is that I can't setup an email notification there. When testing the mail configuration in Manage Jenkins -> Configure System it always fails. Later I want to send mails using Jenkins pipeline.
I've also tested more mail providers (like 5 or so). Tried to setup an outbound rule in firewall settings for the port 465 and 587, too.
I've got the security option to allow less secure access enabled and the 2-step authentication disabled in the sender gmail account.
Could you help to find a solution? (either on the VM setup or anything different) Btw. I cannot setup my own smtp server on that machine because of my Azure subscription, it is blocked by Azure.