Bobcares

Error: ‘Too many hops’ – How to fix this email delivery problem?

by | Jan 8, 2019

It’s really frustrating when you can’t send emails on time.

In most of the cases, senders receive a bounce back message explaining the reason, and most of them are self explaining, but some of them may be unclear.

One such bounce back message is “error: too many hops“.

What does hop mean? Where is the problem? This creates lot of such questions in your mind.

At Bobcares, we help server owners resolve such complex email errors as part of our Server Support Services for web hosts.

Today, we’ll discuss the top 4 reasons for this error and how we fix them.

 

‘Error: too many hops’ – What this means?

Before we go ahead, let’s get an idea of this error first.

In a normal email delivery mail is sent from the sender to the sender MX, to the receiving MX, and finally to the receiver. But,  there may sometimes be additional servers such as Gateway, AntiSpam, etc. between the sender and the recipient.

So, when you send an email over a network, it will pass through several computers before it reaches the destination. Each transfer between these computers is called a hop.

The “error: too many hops” means that there are too many transfers between the sender and the recipient. So, one of the intermediate servers rejects the message to prevent a potential mail loop.

In most cases, our Hosting Engineers analyze the Non Delivery Report (bounce back) to determine the root cause of the issue.

 

‘Error: too many hops’ – Causes and Fixes

Let’s now see the main reasons for this error and how our Server Support Engineers fix them.

 

1) Incorrect forwarders for email accounts

This is one of the common mistakes made by server owners. Most often, users set forwarding emails from one mailbox to another and vice versa.

In other words, users have 2 accounts and mistakenly set these 2 accounts forwarding to each other.

That is, message from first account is forwarded to the second account, and second one to the first, and so on.

As a result, this will create an endless loop, and finally message is returned to the sender.

 

Solution

In these cases, our Support Engineers analyze the email logs and email delivery route to identify email delivery problems.

For example, in cPanel servers, we use the Track Delivery option to check the email delivery route.

In addition to that, we manually check and delete redundant email forwarders for the domains.

2) Incorrect MX records

This usually happens after hosting account migrations. After migration to the new server, it’s important to update the MX records and SMTP routing information for the emails to work.

But, we’ve seen cases where these changes haven’t done properly. As a result, email loops between the old and new servers.

Similarly, duplicate MX records or MX records with same priority can lead to mail delivery loops.

 

Solution

Here, our Support Engineers first verify the domain’s MX record using the below command.

dig domain.com MX

 

If we find any MX records with same priority, we change them to a different priority and it should be fine.

Similarly in case of migrations, we confirm that the MX record and SMTP settings of the domain point to the new server.

At Bobcares, our Migration Specialists always keep a pre-migration checklist and post-migration checklist to avoid such problems after migration.

 

3) Misconfigured email server

During server migration, the mail servers and the mail routing tables may need to be re-configured with new IPs.

Misconfigured mail servers and mail routing tables can keep mails connecting back to the sender, thereby creating an email loop.

For example, server owners mistakenly set the parameter “mydestination = localhost” in the Postfix configuration file. So, Postfix thinks it should only handle mail addressed to the domain localhost.

As a result, external mails are routed on the server itself, and consequently email bounces with “error: too many hops“.

Similarly, in cPanel servers, the /etc/localdomains and /etc/remotedomains are checked to identify whether the emails are hosted locally or remotely. So, a wrong entry in this file can create infinite email loop.

 

Solution

We check the server error logs, and if any misconfiguration noted in the mail server settings, we’ll immediately correct them.

For example, we check the postfix configuration file and confirm that the destination parameter values are set correctly.

mydestination = $myhostname localhost.$mydomain localhost

 

Similarly, in cPanel servers, we check whether the domain uses remote MX. If so, we remove the MX entry on the server and add the domain to /etc/remotedomains file.

[Trouble with Misconfigured Mail server? One of our Server Administrators can assist you here. We are available 24/7.]

 

4) Misconfigured Antispam server

Some web hosts put separate anti spam servers to improve email filtering.

But, it can fail if the outgoing mail route or domain DNS settings are not properly configured. As a result, email loops back between the sender and the Antispam server.

Solution

In this case, our Hosting Engineers analyze the SMTP logs and email headers to understand the origin of the issue.

If we find any configuration problems on the Antispam server such as incorrect SMTP route, DNS settings of the domain, etc. we’ll correct it immediately.

[Need help in fixing this error? Click here to have a Server Expert look at your problem.]

Conclusion

In short, “error: too many hops” can occur due to wrong mail server configuration, improper spam filter settings, and more. Today, we’ve discussed the top 4 reasons for this error and how our Server Support Engineers fix them.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF