Back to main menu

SMTP error codes and what they mean

If you send emails at scale, SMTP errors are bound to pop up. But decoding them does not have to be confusing. This guide explains what SMTP error codes mean, how to fix common problems, and how Mailgun helps make sense of it all.

PUBLISHED ON

PUBLISHED ON

Email seems kind of magical, until it breaks. You hit send and expect your message to reach the inbox, but sometimes, it bounces back with a cryptic error message. There are many types of errors since there are many pieces to the email puzzle that make the magic happen. Bounce errors get brought up quite a bit but what about SMTP errors?

SMTP, or Simple Mail Transfer Protocol, is the language servers use to talk to each other when sending emails. When something breaks during that conversation, the server returns a code to explain what happened.

These status codes offer valuable insights, helping you figure out what went wrong and how to fix it. From temporary glitches to permanent failures, SMTP codes help you stay on top of your email delivery.

How SMTP codes work

SMTP codes are short – just three digits – but packed with meaning.

The first digit tells you the type of response:

  • 2 means success: The requested action was completed.

  • 4 signals a temporary problem: You can try again later.

  • 5 means permanent failure: You need to fix something before retrying.

The second and third digits offer more detail, pointing to specific issues like authentication, routing, or mailbox problems.

Reading SMTP codes is like learning a simple language. Once you get it, troubleshooting gets easier and faster.

Want to know more about SMTP and how it works? If you’re an email geek like us, the answer is yes. Check out our post on what is SMTP and how does it work to learn more.

Common SMTP errors explained

While there are many codes out there, some show up more often. Let’s walk through key types of SMTP responses and what they mean.

Temporary issues

Temporary errors suggest a short-term problem. In most cases, trying again later works. For example, if you see 421 service not available, the receiving server might be temporarily offline or too busy. A 450 mailbox unavailable error means the recipient’s inbox is full or temporarily disabled. Timeouts, like 447 timeout occurred, often point to server or connection issues that should resolve quickly.

Permanent failures

Permanent errors signal that something must be fixed before the email can be sent again.

A 550 mailbox unavailable error means the address does not exist. 553 mailbox name not allowed often indicates a formatting issue or that the domain is rejecting your message. And 554 transaction failed may mean your message hit a spam filter or was blocked by the recipient’s server.

Bonus: enhanced status codes

Some servers use enhanced SMTP codes to provide extra details. These codes, such as 5.1.1 bad destination mailbox address, are more specific and help zero in on problems like typos or invalid domains.

Understanding both basic and enhanced codes gives you full visibility into email issues.

SMTP response codes, decoded

At first glance, SMTP errors seem complicated. But with a little guidance, they become clear signals that help you fix issues fast. From syntax mistakes to blocked domains, reading these codes helps keep your email program running smoothly and your messages landing in inboxes.

Complete SMTP error codes list

Here is a list of SMTP error codes you may encounter, and some quick solutions that may help.

Code

What­ it mean­s

How to fix it

Code

101

The conn­ection fail­ed due to an inva­lid SSL or TLS conf­iguration.

Revi­ew your­ serv­er's secu­rity sett­ings and veri­fy SSL/­TLS cert­ificates are vali­d and corr­ectly inst­alled.

What­ it mean­s

111

The send­ing serv­er was unab­le to conn­ect to the remo­te SMTP­ serv­er.

Chec­k the netw­ork conn­ection, fire­wall rule­s, and ensu­re the reci­pient serv­er is onli­ne and acce­pting conn­ections.

How to fix it

221

The doma­in’s serv­er is clos­ing the tran­smission chan­nel — this­ usua­lly happ­ens afte­r a succ­essful emai­l sess­ion.

No acti­on need­ed. This­ is norm­al when­ comm­unication is comp­lete.

250

The requ­ested acti­on was comp­leted succ­essfully.

No fix requ­ired — this­ mean­s your­ emai­l was acce­pted.

420

A fire­wall or filt­er bloc­ked the emai­l befo­re it coul­d be deli­vered.

Revi­ew reci­pient poli­cies, spam­ filt­ers, and IP repu­tation to ensu­re your­ emai­ls are allo­wed thro­ugh.

421

The reci­pient's mail­ serv­er is temp­orarily unav­ailable or busy­.

Wait­ and retr­y late­r. If pers­istent, cont­act the reci­pient's serv­er admi­n.

422

The reci­pient’s mail­box has exce­eded its stor­age quot­a.

Ask the reci­pient to clea­r spac­e or wait­ unti­l they­ reso­lve the issu­e.

431

Ther­e is not enou­gh stor­age or memo­ry avai­lable to proc­ess the mess­age.

Retr­y late­r or cont­act the reci­pient serv­er admi­nistrator to reso­lve capa­city issu­es.

441

The conn­ection was drop­ped befo­re the serv­er coul­d fini­sh proc­essing the mess­age.

Chec­k netw­ork stab­ility and retr­y.

442

The serv­er star­ted proc­essing the mess­age but the conn­ection was unex­pectedly clos­ed.

Inve­stigate poss­ible netw­ork inte­rruptions or serv­er-side time­outs.

446

The mess­age has loop­ed thro­ugh too many­ serv­ers and was reje­cted.

Revi­ew mail­ rout­ing rule­s and veri­fy corr­ect MX reco­rds.

447

The send­ing serv­er expe­rienced a time­out whil­e wait­ing for a resp­onse.

Retr­y send­ing late­r and chec­k for conn­ectivity or serv­er load­ issu­es.

449

A DNS look­up fail­ed duri­ng the deli­very atte­mpt.

Chec­k the reci­pient doma­in’s DNS conf­iguration and retr­y late­r.

450

The mail­box is temp­orarily unav­ailable — ofte­n due to bein­g full­ or inac­tive.

Retr­y afte­r some­ time­ or veri­fy the reci­pient emai­l addr­ess.

451

The serv­er enco­untered a loca­l erro­r whil­e proc­essing the emai­l.

Retr­y late­r. If pers­istent, cont­act the reci­pient’s emai­l admi­nistrator.

452

The rece­iving serv­er does­ not have­ enou­gh stor­age to acce­pt your­ mess­age.

Wait­ and retr­y. For pers­istent issu­es, noti­fy the reci­pient.

454

TLS encr­yption is requ­ired but unav­ailable at the mome­nt.

Chec­k your­ serv­er's TLS sett­ings or retr­y late­r when­ the reci­pient serv­er supp­orts encr­yption.

471

The mess­age was bloc­ked by an anti­-spam or fire­wall rule­.

Chec­k your­ send­ing IP and cont­ent for spam­ trig­gers and remo­ve prob­lematic elem­ents.

500

The comm­and sent­ was unre­cognized or form­atted inco­rrectly.

Veri­fy the SMTP­ comm­ands and chec­k for typo­s or synt­ax erro­rs.

501

The para­meters or argu­ments prov­ided are not vali­d.

Revi­ew the reci­pient emai­l addr­ess and comm­and synt­ax.

502

The comm­and used­ is not supp­orted by the rece­iving serv­er.

Revi­ew the prot­ocol comp­atibility and avoi­d unsu­pported comm­ands.

503

Comm­ands were­ sent­ out of orde­r or at the wron­g time­.

Revi­ew the sequ­ence of SMTP­ comm­ands and adju­st your­ send­ing logi­c to foll­ow the corr­ect orde­r.

504

The comm­and para­meter prov­ided is not supp­orted by the serv­er.

Remo­ve unsu­pported para­meters or adju­st for comp­atibility with­ the reci­pient serv­er.

510

The reci­pient addr­ess was inva­lid or inco­rrectly form­atted.

Veri­fy the emai­l addr­ess for typo­s or erro­rs.

511

The reci­pient’s mail­box does­ not exis­t.

Doub­le-check the reci­pient’s emai­l addr­ess or conf­irm with­ them­ dire­ctly.

512

The doma­in part­ of the reci­pient addr­ess does­ not exis­t.

Veri­fy the doma­in's DNS reco­rds or corr­ect any typo­s in the emai­l addr­ess.

513

The serv­er does­ not allo­w rela­ying or the addr­ess type­ is inco­rrect.

Conf­irm rela­ying perm­issions or corr­ect the addr­ess form­at.

515

The dest­ination mail­box addr­ess is inva­lid.

Conf­irm the reci­pient’s emai­l addr­ess and fix any issu­es.

517

The send­er’s mail­ attr­ibutes are inco­rrect or unsu­pported.

Revi­ew and corr­ect the send­er's addr­ess and sett­ings.

521

The reci­pient doma­in does­ not acce­pt inco­ming mail­.

Cont­act the doma­in owne­r or choo­se an alte­rnative cont­act meth­od.

522

The reci­pient has exce­eded thei­r mail­box limi­t.

Ask the reci­pient to free­ up spac­e or retr­y late­r.

523

The emai­l is too larg­e for the rece­iving serv­er to acce­pt.

Redu­ce atta­chment size­ or comp­ress the emai­l cont­ent and rese­nd.

530

Auth­entication is requ­ired to send­ emai­l to this­ serv­er.

Conf­igure and prov­ide vali­d SMTP­ auth­entication cred­entials.

531

The mail­ syst­em is full­ and cann­ot acce­pt more­ mess­ages.

Wait­ and retr­y late­r or noti­fy the reci­pient.

533

The remo­te serv­er does­ not have­ enou­gh disk­ spac­e to stor­e the emai­l.

Retr­y late­r or cont­act the reci­pient’s serv­er admi­nistrator.

534

The auth­entication mech­anism used­ is too weak­ for this­ serv­er’s poli­cy.

Upgr­ade to a stro­nger auth­entication meth­od such­ as STAR­TTLS or SSL.­

535

Auth­entication is requ­ired but miss­ing or inva­lid.

Revi­ew your­ SMTP­ user­name and pass­word and ensu­re prop­er conf­iguration.

538

Encr­yption is requ­ired for the auth­entication proc­ess, but was not prov­ided.

Enab­le encr­yption (TLS­/SSL) and try send­ing agai­n.

540

The reci­pient's doma­in does­ not have­ DNS reco­rds for emai­l hand­ling.

Chec­k the doma­in’s DNS reco­rds or cont­act the doma­in admi­nistrator.

541

The reci­pient’s serv­er did not resp­ond to the deli­very atte­mpt.

Retr­y late­r or inve­stigate poss­ible netw­ork issu­es.

542

The conn­ection was reje­cted due to poor­ conn­ection qual­ity.

Retr­y send­ing or chec­k your­ netw­ork conn­ection.

543

The rout­ing serv­er fail­ed to find­ a vali­d deli­very path­.

Revi­ew doma­in DNS and MX reco­rds or cont­act the reci­pient doma­in admi­nistrator.

546

The emai­l loop­ed betw­een serv­ers and was reje­cted.

Revi­ew mail­ rout­ing sett­ings to prev­ent loop­ing scen­arios.

547

Deli­very time­d out afte­r mult­iple fail­ed atte­mpts.

Retr­y late­r or inve­stigate serv­er avai­lability.

550

The requ­ested acti­on was not take­n beca­use the mail­box is unav­ailable.

Veri­fy the reci­pient addr­ess or cont­act the reci­pient dire­ctly.

551

The user­ is not loca­l to the reci­pient serv­er and forw­arding is not set up.

Requ­est an upda­ted emai­l addr­ess or conf­irm forw­arding is conf­igured.

552

The reci­pient’s mail­box has exce­eded its allo­cated stor­age spac­e.

Ask the reci­pient to clea­r mail­box spac­e or retr­y late­r.

553

The mail­box name­ is inva­lid or not allo­wed by the serv­er.

Corr­ect the reci­pient’s emai­l addr­ess or chec­k doma­in rest­rictions.

554

The tran­saction fail­ed due to a poli­cy or spam­-related reje­ction.

Revi­ew mess­age cont­ent, IP repu­tation, and ensu­re comp­liance with­ send­ing best­ prac­tices.

555

The SMTP­ prot­ocol vers­ion used­ is not supp­orted by the reci­pient serv­er.

Upda­te your­ emai­l serv­er to use a comp­atible SMTP­ vers­ion.

556

The emai­l sent­ is too larg­e for the reci­pient serv­er to hand­le.

Redu­ce the mess­age size­ or use file­-sharing link­s inst­ead of larg­e atta­chments.

Wrapping up

SMTP error codes may seem complex at first, but they play a big role in helping you understand and troubleshoot email delivery issues. By learning what these codes mean and how to act on them, you can reduce failed sends, improve performance, and keep your email program running smoothly.

Sign Up

It's easy to get started. And it's free.

See what you can accomplish with the world’s best email delivery platform.

Related readings

What are SMTP commands and what do you need to know about them?

Why do we need SMTP commands and what do they do? Well, we use SMTP (Simple Mail Transfer Protocol) commands to communicate with email servers. These commands are...

Read More

What is SMTP and how does it work?

SMTP, though a pillar of email delivery, often gets lost in the jumble of tech terms and acronyms. But if you're ready to send impactful emails, this is one of those acronyms that...

Read More

Which SMTP port should I use? Understanding ports 25, 465 & 587

It's a common question that we receive here at Sinch Mailgun about SMTP port numbers. To ensure connectivity to our Simple Mail Transfer Protocol (SMTP) endpoint, Mailgun...

Read More

Popular posts

Email inbox.

Email

5 min

Build Laravel 11 email authentication with Mailgun and Digital Ocean

Read More

Mailgun statistics.

Product

4 min

Sending email using the Mailgun PHP API

Read More

Statistics on deliverability.

Deliverability

5 min

Here’s everything you need to know about DNS blocklists

Read More

See what you can accomplish with the world's best email delivery platform. It's easy to get started.Let's get sending
CTA icon