Gmail SMTP Settings

Gmail is a free email service provided by Google and is also the most used email service with a whopping 1.8 Billion active users as of Dec, 2021. Google also supports the use of email clients via the POP and IMAP protocols. It has two types of accounts. A normal Gmail account and G-Suite account which is used by companies for employee’s unique Gmail accounts.

Example: Tim’s email address, who is working at a company named XYZ, is tim@xyz.com and his account is owned and administrated by the company itself. Then there are Gmail accounts which are under some restrictions laid out by their G-Suite administrator and they are called Restricted Gmail Accounts.

Following are the SMTP settings for every type of Gmail Account there is:
  • Server Address: smtp.gmail.com
  • Username: Your Gmail Address (e.g. example@gmail.com)
  • Password: Your Gmail Password
  • Port Number: 587 (With TLS)
  • Alternative Port Number: 465 (With SSL)
  • Internet Protocol: Dynamic IPs Allowed
  • Sending Limits: A registered G Suite user can’t relay messages to more than 10,000 recipients per day.
  • Server Address: smtp-relay.gmail.com
  • Username: Your Gmail Address (e.g. example@gmail.com)
  • Password: Your Gmail Password
  • Port Number: 587 (With TLS), 465 (With SSL) and 25 (with TLS/SSL)
  • Internet Protocol: One or more static IP addresses are required.
  • Sending Limits: 2,000 Messages per day.
  • Server Address: aspmx.l.google.com
  • Username: Your Gmail Address (e.g. example@gmail.com)
  • Password: Your Gmail Password
  • Port Number: 25 (TLS not required)
  • Internet Protocol: Dynamic IPs allowed
  • Restriction: Email can only be sent to Gmail or G Suite users.
  • Sending Limits: Per user receiving limits apply. This option restricts sending messages to Gmail or G Suite users only.

An added layer of security called “Less secure apps”

  • To ensure that Gmail is safe, Google has added an additional layer of security to Gmail accounts. When a server of a third party attempts to read or input data in your Gmail account, it will be stopped by Google servers in the event that their security isn’t adequate to Google’s standards.
  • Therefore, before you turn into the configuration, ensure that the Less Secure Apps option is activated for the account you want to use in Gmail.
  • It is generally not advised to turn on the “Less Secure Apps” option because it carries certain dangers in the security of your Gmail account. Therefore, it is recommended to enable this option when you have no other choice exists.
  • For enabling Less Secure Apps, You should go to the following page. It’ll look something like this:
less secure apps
  • There’s a problem. For security reasons If you’ve activated the Google’s “Two Step Verification” procedure for your Gmail account, then you won’t be able to turn on the option to “Less Secure Apps”.
  • If you have the “Two Step Verification” option activated The “Less Secure Apps” page will look like this:
two step verification
  • To enable “Less Secure Apps”, You will have to disable “Two Step Verification” for your Gmail account. After that, you can easily enable the “Less Secure Apps” option.