I had to set the SMTP server to the actual IP address to get this working finally, apparently DNS and DHCP are still buggy for some reason on the DS-7604NI-E1 with V3.3.6 Build 151229
Also the less secure apps setting is disabled in the gmail account.
smtp.gmail.com = 74.125.68.108