Quick Tip :: Check Google Email Address

- Monday, November 6, 2023

It’s possible to check if a Google Suite based email address is valid or not:

1
$ curl -i https://mail.google.com/mail/gxlu?email=${EMAIL_ADDRESS}

In any case the call will return an HTTP 202 response, however if the email address is accurate, then the set-cookie response header will be set with a value starting with COMPASS=gmail=

Valid Email

 1$ curl -i https://mail.google.com/mail/gxlu?email=[email protected]
 2HTTP/2 204
 3cache-control: no-cache, no-store, max-age=0, must-revalidate
 4pragma: no-cache
 5expires: Mon, 01 Jan 1990 00:00:00 GMT
 6date: Mon, 06 Nov 2023 18:09:58 GMT
 7server: GSE
 8set-cookie: COMPASS=gmail=CsUBAAlriVf2SP90LeK9Bw74O7wyaEjymaVfIgZL_ZuGFI_Xe7ls8wdDHgMBlZuX-L6oifq5iw_ofxeW8mgmWNY2WdiYN__8C85JKEBWeM1XK9A5VO23HGDdDsgRtkbHyDRLXAkjVKoKsvNjGGzBncwsn2TKOIufRgU3QyGK7sx61dRigaDJDjZh3TLqbbsS4kXHEa8kQviFdSbMrO1oxnNK5rEGrd2OWrUjkgAgxQzZ0f87IV9fg5F60MEf0nIyq-9pAl4VHo0QrfSkqgYa7AEACWuJV_Se_FhsssbyEhmK9V0BmRrsFpZfdEg5QchzRM29DtEHQYJmFU2Ojgn_M9yGkHlVCihmVfPIkY1kKVVyyPYAGZI6dp2KJxYKs6alvtqaOW46pF8M_XJo5XAHsqLxBZwUsG9lEci_hhoi6v_lEYXzAtGUAfMYR4F_WseavmKTMZHNnTqcHK3BUg0mht7EP9r3VH2n_QHmTevaCyK5rF7pILqEkkiU2NGf1NDVRi9FEFWrcBeFstTTMBojceCeDO9MqU_dkI1dAqXdUT-V-X8iya38g-5aX7ECVZ_bt55XWawNpjZI08nF3jAB; expires=Thu, 16-Nov-2023 18:09:58 GMT; path=/mail; Secure; HttpOnly
 9alt-svc: clear
10cross-origin-opener-policy-report-only: same-origin; report-to="gfe-default_product_name"
11report-to: {"group":"gfe-default_product_name","max_age":2592000,"endpoints":[{"url":"https://csp.withgoogle.com/csp/report-to/default_product_name"}]}

Invalid Email

 1$ curl -i https://mail.google.com/mail/gxlu?email=[email protected]
 2HTTP/2 204
 3cache-control: no-cache, no-store, max-age=0, must-revalidate
 4pragma: no-cache
 5expires: Mon, 01 Jan 1990 00:00:00 GMT
 6date: Mon, 06 Nov 2023 18:11:10 GMT
 7server: GSE
 8alt-svc: clear
 9cross-origin-opener-policy-report-only: same-origin; report-to="gfe-default_product_name"
10report-to: {"group":"gfe-default_product_name","max_age":2592000,"endpoints":[{"url":"https://csp.withgoogle.com/csp/report-to/default_product_name"}]}
Service SMTP Tip
Software