Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Gmail 550 5.7.1: The IP you're using to send email is not authorized to send email directly to our servers

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

When a message to a Gmail address bounces with 550 5.7.1 and the text "The IP you're using to send email is not authorized to send email directly to our servers.", Gmail has refused the connection because the sending address is not authorised to send directly to Google. The sending address belongs to a range that its internet service provider (ISP) has not authorised to deliver mail straight to other mail servers. Google cannot lift the refusal for you, so the fix is to send the mail some other way.

The sections below show how to confirm that this is the bounce you have, how to tell it from the other 5.7.1 bounces Google lists, and how to change the way mail leaves the building, with a warning and a way back for each change.

What the error means

Google's list of Gmail SMTP errors gives this row: code 550, status 5.7.1, with the text "The IP you're using to send email is not authorized to send email directly to our servers. Use the SMTP relay at your service provider instead." The row links to a Google help page titled 'The IP you're using to send email is not authorized...'.

That page explains the refusal. In order to prevent spam, Gmail refuses mail from IP addresses that are not authorised to send mail. The ISP that provides you with the IP address makes the determination of whether it is authorised to send mail. The list generally contains consumer IP ranges offered for dialup, DSL or other broadband access.

Google says that it is unable to allowlist IP addresses or otherwise make exceptions.

Google's list adds that Gmail appends identifiers to its error messages: gsmtp (Google SMTP) is added to all errors, and gcdp (Google Custom Domain Policies) is added to errors that come from custom rules created by a Google Workspace administrator.

The other 550 5.7.1 bounces

The code 550 5.7.1 is shared by several different bounces. Match the exact text before choosing a fix:

Text of the bounce (start) What it is
The IP you're using to send email is not authorized to send email directly to our servers The bounce in the title: the sending IP address
The user or domain that you are sending to (or from) has a policy that prohibits the email that you sent A policy rule: Google says to contact the domain administrator
This email has been rate limited A sending limit, covered on Google's page on limits for sending and getting email
Daily SMTP relay sending limit exceeded for this customer A Google Workspace SMTP relay limit, covered on Google's SMTP relay error page
This message is not RFC 5322 compliant (a missing, multiple or non-compliant From: header, or a malformed header) A message header fault
Encoded-word syntax is not permitted in message header A message header fault

A different refusal about the sending IP is 550 5.7.25, "This message was blocked because the sending IP address doesn't have a PTR record, or the forwarding DNS entry doesn't reference the sending IP address." That one is a DNS record fault and is covered in Gmail 550 5.7.25: PTR record missing or mismatch. For a Google Workspace relay that refuses a sender, see Google Workspace SMTP relay: relay denied 5.7.0.

Likely causes

Cause What Google's pages say
The mail leaves from an IP address in a consumer range offered for dialup, DSL or other broadband access The ISP that provides the address decides whether it is authorised to send mail, and the list generally contains these ranges
The sending server, device or program delivers straight to Gmail's servers instead of through a relay The text says the IP is not authorised to send email directly to Gmail's servers, and says to use the SMTP relay at your service provider instead
The ISP offers no authorised address on the current service Google says some ISPs provide a way to get an authorised IP, either by upgrading to business class service or static IP service

Prove the cause before changing anything

Every step in this section only reads.

  1. Find the bounce. Google's page on bounced email says that a failed message produces an automated bounceback from "Mail Delivery Subsystem (mailer-daemon@googlemail.com)", that the subject line is "Delivery Status Notification (Failure)" in many cases, and that it can be in the Inbox or the Spam folder.

  2. Read the error text in the bounce and compare it character by character with the table above. Only the text that begins "The IP you're using to send email is not authorized" is the bounce this page is about.

  3. Find out how the failing mail leaves the network. A mail server, scanner, printer, website form or program that is set to deliver straight to the recipient's mail server, with no outgoing relay named, matches the word "directly" in the text. Read the outgoing mail settings of the sending server or device and note the outgoing server name, if any.

  4. Find out what kind of address sends the mail. Google says the ISP makes the determination, so the ISP's own records are the source for whether the address is on its list. Ask the ISP.

An illustrative example, not from Google: a small office runs its own mail server on a broadband connection, and every message to a Gmail address bounces with the 550 5.7.1 text while mail to other domains is delivered. The outgoing settings show no relay, so the server delivers directly from the office's broadband address. The cause is the one Google describes, and the fix is one of the three below.

Fix

Google gives three ways forward. The first is a change the reader can make; the second and third involve the ISP and the sender's own mail servers, and are described below without steps.

Send through the ISP's SMTP relay

Google's page says your ISP may provide SMTP relays that accept mail from your IP and that these servers should be authorised to send mail. Write down the present outgoing mail server name, port and security setting of the sending server or device, and the time.

Risk: the next step changes where every message from that server or device is sent, not only mail to Gmail.

Ask the ISP for the name of its SMTP relay. Then change the outgoing mail setting of the sending server, device or program so that it delivers through that relay.

To undo it: set the outgoing mail server, port and security setting back to the values you wrote down.

What Google says about a business class or static IP service

Google says some ISPs provide a way to get an IP that is authorised, either by upgrading to business class service or static IP service. Google says to reach out to your ISP to see what options are available.

What Google says about your own domain's servers

Google's page offers another alternative: send mail through your own domain's servers, either by configuring them to allow relay from your IP address, or by using a mail submission agent (MSA). It points to a Gmail help topic on how to use Gmail to send mail from a different address.

Confirm the fix

  • Send one message from the same server or device to a Gmail address you control. It arrives in the Inbox or Spam folder.
  • No new message from "Mail Delivery Subsystem (mailer-daemon@googlemail.com)" with the 550 5.7.1 text arrives for that message.
  • The mail log of the sending server, or the device's own log, shows the message handed to the relay named in the new setting and not delivered straight to Gmail.
  • Mail to other recipients is still delivered.

What to watch afterwards

  • A new bounce with a different code. The same Google list carries 550 5.7.25 (a PTR record that is missing or does not match) and 550 5.7.26 (a sender that is unauthenticated) as separate rows with their own causes.
  • Devices that have their own outgoing mail setting, such as printers and scanners, which keep the old setting until someone changes them.
  • An ISP change of service or address. Google says the ISP makes the determination, so a new address or a new plan is judged by the ISP again.

Risks and limits

Google's page says it is unable to allowlist IP addresses or otherwise make exceptions, so no change on Google's side resolves this bounce. Changing the outgoing mail server affects every message from that server or device. Google names the ISP's SMTP relay, a business class or static IP service, and a relay or MSA on your own domain's servers as the routes.

Sources