dig gmail.com returns this:
;; ANSWER SECTION:
gmail.com. 3600 IN MX 40 alt4.gmail-smtp-in.l.google.com.
gmail.com. 3600 IN MX 30 alt3.gmail-smtp-in.l.google.com.
gmail.com. 3600 IN MX 20 alt2.gmail-smtp-in.l.google.com.
gmail.com. 3600 IN MX 5 gmail-smtp-in.l.google.com.
gmail.com. 3600 IN MX 10 alt1.gmail-smtp-in.l.google.com.
How about the smtp.gmail.com, why isn't it included? Is there a way to find it through some utility? Or is it what can found in the documentation of gmail only?
The same question goes for other email services out there.
My initial goal is find all smtp servers of an email provider.
smtp.gmail.com
, and should use the servers listed in theMX
record. If the latter, it's appropriate to usesmtp.google.com
, and you learn of that record's existence through the_submission._tcp.gmail.com
query.