IP Access Management is a security feature that allows you to control who can access your SendGrid account based on their IP address. After you whitelist an IP address, you can only access the SendGrid customer portal, API, and SMTP relay if you are connecting from a whitelisted IP address. Any other access attempts will be blocked. This is a powerful security tool that you can use to help prevent malicious activity on your account.
There is no limit on how many IP addresses you can whitelist.
It is possible to remove your own IP address from your whitelist, thus blocking your own access to your account. While we are able to restore your access, we do require thorough proof of your identify and ownership of your account. We take the security of your account very seriously, and wish to prevent any “bad actors” from maliciously gaining access to your account.
Your current IP is clearly displayed to help prevent you from accidentally removing it from the whitelist.
If you do not access SendGrid via a static IP address (e.g. via VPN or from a business internet service), setting up IP Access Management may result in being locked out of your SendGrid account. If you do discover that you have locked yourself out of your account, please visit our Classroom for suggestions on how to regain access and tips on how to prevent this in the future.
There are several different ways to whitelist an IP address. If you navigate to the IP Access Management page under Settings, you will see a list of any currently whitelisted IP addresses and a list of IPs that recently attempted to access your account.
Under Recent Access Attempts, you will see a list of recent IPs that attempted to connect to your account, regardless of whether or not they are whitelisted. You will also see some additional information about those IPs, such as the date of the first and most recent access attempt, the physical location of the IP, and the method by which they attempted to access your account.
You can whitelist one of these IPs by clicking the gear icon in the row of the IP you would like to whitelist, then clicking “Add To Whitelist”.
To manually whitelist one or more IP addresses, click the Add IP Addresses button.
You will see a dialogue box presenting you with a blank form in which you may enter a single IP address or multiple IP addresses separated by a space, comma, or on separate lines.
It is possible for advanced users to use CIDR notation to whitelist a range of IP addresses. To do so, simply enter your routing prefix followed by a
/ and then the number of bits in your routing mask. For example:
Explaining CIDR notation is beyond the scope of this article, and we only recommend that advanced users use this notation when whitelisting IPs. If you are unfamiliar with CIDR notation, we recommend that you enter each IP individually when whitelisting a range of IPs.
To enter a range of IP addresses using a “wildcard”, simply add an asterisk to the end of the IP. For example,
25.203.44.* would include all IPs that begin with
After entering the IP addresses you would like to whitelist, click Save.
If you remove every IP address from your whitelist, you will again be able to log in to your account from any IP address.
For additional information about using IP Access Management through our API, see our API Reference.