Some (DNS) systems do not process FQDN’s that contain underscores _ correctly
Using Gmail.com for sending email?
If you are using a Gmail address for the first time with a device then Google Gmail may have blocked access for the device to log in even though the device is able to resolve smtp.gmail.com
Log into the Gmail account and turn on Allow less secure apps