Whitelist gmail ip address

To whitelist Gmail's IP addresses, you'll need to add them to your email server's or spam filter's allowlist. Here are the steps:

Gmail's IP addresses:

Gmail uses a range of IP addresses to send emails. You can find the current list of Gmail's IP addresses on the Google Cloud documentation page:

Adding Gmail's IP addresses to your allowlist:

  1. Email server: If you're using a dedicated email server, you'll need to add Gmail's IP addresses to your server's allowlist. The process varies depending on your email server software. For example:
    • For Postfix, you can add the IP addresses to the mynetworks parameter in your main.cf file.
    • For Sendmail, you can add the IP addresses to the access file.
  2. Spam filter: If you're using a spam filter like SpamAssassin or SpamFilter, you'll need to add Gmail's IP addresses to your filter's allowlist. The process varies depending on your spam filter software.
  3. Email client: If you're using an email client like Microsoft Outlook or Mozilla Thunderbird, you can add Gmail's IP addresses to your client's allowlist. This will help prevent your email client from flagging Gmail emails as spam.

Example allowlist entries:

Here are some example allowlist entries you can use:

Important notes: