Ports required to open in firewall for VW

Hello, I’m running VG on my Synology NAS and if I set the firewall on the NAS the VW cannot send emails but when disabled it can. Attached VG diagnostic screenshot.
I would like to know which ports I have to open at my NAS firewall. By the way the router does have in both cases same ports open and it does not affect VG.