Share to: share facebook share twitter share wa share telegram print page

List of SMTP server return codes

This is a list of Simple Mail Transfer Protocol (SMTP) response status codes. Status codes are issued by a server in response to a client's request made to the server.

Unless otherwise stated, all status codes described here is part of the current SMTP standard, RFC 5321. The message phrases shown are typical, but any human-readable alternative may be provided.

Basic status code

A "Basic Status Code" SMTP reply consists of a three digit number (transmitted as three numeric characters) followed by some text. The number is for use by automata (e.g., email clients) to determine what state to enter next; the text ("Text Part") is for the human user.

The first digit denotes whether the response is good, bad, or incomplete:

  • 2yz (Positive Completion Reply): The requested action has been successfully completed.
  • 3yz (Positive Intermediate Reply): The command has been accepted, but the requested action is being held in abeyance, pending receipt of further information.
  • 4yz (Transient Negative Completion Reply): The command was not accepted, and the requested action did not occur. However, the error condition is temporary, and the action may be requested again.
  • 5yz (Permanent Negative Completion Reply): The command was not accepted and the requested action did not occur. The SMTP client SHOULD NOT repeat the exact request (in the same sequence).

The second digit encodes responses in specific categories:

  • x0z (Syntax): These replies refer to syntax errors, syntactically correct commands that do not fit any functional category, and unimplemented or superfluous commands.
  • x1z (Information): These are replies to requests for information.
  • x2z (Connections): These are replies referring to the transmission channel.
  • x3z : Unspecified.
  • x4z : Unspecified.
  • x5z (Mail system): These replies indicate the status of the receiver mail system.

Enhanced status code

The Basic Status Codes have been in SMTP from the beginning, with RFC 821 in 1982, but were extended rather extensively, and haphazardly so that by 2003 RFC 3463 rather grumpily noted that: "SMTP suffers some scars from history, most notably the unfortunate damage to the reply code extension mechanism by uncontrolled use."

RFC 3463 defines a separate series of enhanced mail system status codes which is intended to be better structured, consisting of three numerical fields separated by ".", as follows:

class "." subject "." detail

  class   = "2" / "4" / "5"

  subject = 1 to 3 digits

  detail  = 1 to 3 digits

The classes are defined as follows:

  • 2.XXX.XXX Success: Report of a positive delivery action.
  • 4.XXX.XXX Persistent Transient Failure: Message as sent is valid, but persistence of some temporary conditions has caused abandonment or delay.
  • 5.XXX.XXX Permanent Failure: Not likely to be resolved by resending the message in current form.

In general the class identifier MUST match the first digit of the Basic Status Code to which it applies.[1]

The subjects are defined as follows:

  • X.0.XXX Other or Undefined Status
  • X.1.XXX Addressing Status
  • X.2.XXX Mailbox Status
  • X.3.XXX Mail System Status
  • X.4.XXX Network and Routing Status
  • X.5.XXX Mail Delivery Protocol Status
  • X.6.XXX Message Content or Media Status
  • X.7.XXX Security or Policy Status

The meaning of the "detail" field depends on the class and the subject, and are listed in RFC 3463 and RFC 5248.

A server capable of replying with an Enhanced Status Code MUST preface (prepend) the Text Part of SMTP Server responses with the Enhanced Status Code followed by one or more spaces. For example, the "221 Bye" reply (after QUIT command) MUST be sent as "221 2.0.0 Bye" instead.[1]

The Internet Assigned Numbers Authority (IANA) maintains the official registry of these enhanced status codes.[2]

Common status codes

This section list some of the more commonly encountered SMTP Status Codes. This list is not exhaustive, and the actual text message (outside of the 3-field Enhanced Status Code) might be different.

— 2yz Positive completion

211 System status, or system help reply
214 Help message (A response to the HELP command)
220 <domain> Service ready
221 <domain> Service closing transmission channel
221 2.0.0 Goodbye [1]
235 2.7.0 Authentication succeeded [3]
240 QUIT
250 Requested mail action okay, completed
251 User not local; will forward
252 Cannot verify the user, but it will try to deliver the message anyway

— 3yz Positive intermediate

334 (Server challenge - the text part contains the Base64-encoded challenge) [3]
354 Start mail input

— 4yz Transient negative completion

"Transient Negative" means the error condition is temporary, and the action may be requested again. The sender should return to the beginning of the command sequence (if any).

The accurate meaning of "transient" needs to be agreed upon between the two different sites (receiver- and sender-SMTP agents) must agree on the interpretation. Each reply in this category might have a different time value, but the SMTP client SHOULD try again.

421 Service not available, closing transmission channel (This may be a reply to any command if the service knows it must shut down)
432 4.7.12 A password transition is needed [3]
450 Requested mail action not taken: mailbox unavailable (e.g., mailbox busy or temporarily blocked for policy reasons)
451 Requested action aborted: local error in processing
451 4.4.1 IMAP server unavailable [4]
452 Requested action not taken: insufficient system storage
454 4.7.0 Temporary authentication failure [3]
455 Server unable to accommodate parameters

— 5yz Permanent negative completion

The SMTP client SHOULD NOT repeat the exact request (in the same sequence). Even some "permanent" error conditions can be corrected, so the human user may want to direct the SMTP client to reinitiate the command sequence by direct action at some point in the future.

500 Syntax error, command unrecognized (This may include errors such as command line too long)
500 5.5.6 Authentication Exchange line is too long [3]
501 Syntax error in parameters or arguments
501 5.5.2 Cannot Base64-decode Client responses [3]
501 5.7.0 Client initiated Authentication Exchange (only when the SASL mechanism specified that client does not begin the authentication exchange) [3]
502 Command not implemented
503 Bad sequence of commands
504 Command parameter is not implemented
504 5.5.4 Unrecognized authentication type [3]
521 Server does not accept mail [5]
523 Encryption Needed [6]
530 5.7.0 Authentication required [3]
534 5.7.9 Authentication mechanism is too weak [3]
535 5.7.8 Authentication credentials invalid [3]
538 5.7.11 Encryption required for requested authentication mechanism[3]
550 Requested action not taken: mailbox unavailable (e.g., mailbox not found, no access, or command rejected for policy reasons)
551 User not local; please try <forward-path>
552 Requested mail action aborted: exceeded storage allocation
553 Requested action not taken: mailbox name not allowed
554 Transaction has failed (Or, in the case of a connection-opening response, "No SMTP service here")
554 5.3.4 Message too big for system [4]
556 Domain does not accept mail [5]

Example

Below is an example SMTP connection, where a client "C" is sending to server "S":

S: 220 smtp.example.com ESMTP Postfix
C: HELO relay.example.com
S: 250 smtp.example.com, I am glad to meet you
C: MAIL FROM:<bob@example.com>
S: 250 Ok
C: RCPT TO:<alice@example.com>
S: 250 Ok
C: RCPT TO:<theboss@example.com>
S: 250 Ok
C: DATA
S: 354 End data with <CR><LF>.<CR><LF>
C: From: "Bob Example" <bob@example.com>
C: To: Alice Example <alice@example.com>
C: Cc: theboss@example.com
C: Date: Tue, 15 Jan 2008 16:02:43 -0500
C: Subject: Test message
C: 
C: Hello Alice.
C: This is a test message with 5 header fields and 4 lines in the message body.
C: Your friend,
C: Bob
C: .
S: 250 Ok: queued as 12345
C: QUIT
S: 221 Bye
{The server closes the connection}

And below is an example of an SMTP connection in which the SMTP Server supports the Enhanced Status Code, taken from RFC 2034:

S: 220 dbc.mtview.ca.us SMTP service ready
C: EHLO ymir.claremont.edu
S: 250-dbc.mtview.ca.us says hello
S: 250 ENHANCEDSTATUSCODES
C: MAIL FROM:<ned@ymir.claremont.edu>
S: 250 2.1.0 Originator <ned@ymir.claremont.edu> ok
C: RCPT TO:<mrose@dbc.mtview.ca.us>
S: 250 2.1.5 Recipient <mrose@dbc.mtview.ca.us> ok
C: RCPT TO:<nosuchuser@dbc.mtview.ca.us>
S: 550 5.1.1 Mailbox "nosuchuser" does not exist
C: RCPT TO:<remoteuser@isi.edu>
S: 551-5.7.1 Forwarding to remote hosts disabled
S: 551 5.7.1 Select another host to act as your forwarder
C: DATA
S: 354 Send message, ending in CRLF.CRLF.
 ...
C: .
S: 250 2.6.0 Message accepted
C: QUIT
S: 221 2.0.0 Goodbye
{The server closes the connection}

References

Read other articles:

Diskografi Wanna OneVideo musik6Extended play1Singel2 Diskografi dari boyband Korea Selatan Wanna One, grup dengan 11 anggota yang dibentuk melalui kompetisi 'survival' Produce 101 Season 2 pada tahun 2017 dan saat ini berada dibawah naungan YMC Entertainment. Grup ini debut dengan merilis album mini 1X1=1 (TO BE ONE) yang dirilis pada 7 Agustus 2017. Album mini Judul Rincian Posisi puncak tangga lagu Penjualan KOR[1] FRA[2] JPN[3] USWorld[4] 1×1=1 (To Be One) Ri…

Olivia LufkinInformasi latar belakangNama lahirOlivia LufkinNama lainOLIVIA inspi' REIRA (TRAPNEST)Lahir9 Desember 1979 (umur 44)Asal Naha, Prefektur OkinawaGenreJ-Pop, J-RockPekerjaanPenyanyi, pencipta laguTahun aktif1996 - sekarangLabelAvex trax (1996 - sekarang)Artis terkaitJeff LufkinSitus webhttp://www.avexnet.or.jp/olivia/ Olivia Lufkin atau biasanya dipanggil OLIVIA (lahir 9 Desember 1979) adalah wanita penyanyi dan pencipta lagu berkebangsaan Jepang dengan bahasa utama Inggris. Ayah…

Keuskupan Agung Foggia-BovinoArchidioecesis Fodiana-BovinensisKatolik Katedral FoggiaLokasiNegara ItaliaProvinsi gerejawiFoggia-BovinoStatistikLuas1.666 km2 (643 sq mi)Populasi- Total- Katolik(per 2006)218.300217,100 (99.5%)Paroki55InformasiDenominasiGereja KatolikRitusRitus RomaPendirian25 Juni 1855 (168 tahun lalu)KatedralCattedrale di S. Maria Assunta in Cielo (Iconavetere), FoggiaKonkatedralBasilica Concattedrale di S. Maria Assunta, BovinoKepemimpinan…

Gapan component city (en) Tempat categoria:Articles mancats de coordenades Negara berdaulatFilipinaRegion di FilipinaLuzon TengahProvinsi di FilipinaNueva Ecija NegaraFilipina PendudukTotal122.968  (2020 )Tempat tinggal30.186  (2020 )Bahasa resmiKapampangan, Tagalog dan Bahasa Iloko GeografiLuas wilayah118 km² [convert: unit tak dikenal]Ketinggian41 m Berbatasan denganSan Leonardo SejarahPembuatan1732 Informasi tambahanKode pos3105 Zona waktuUTC+8 Kode telepon44 Lain-lainSitus we…

يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. (ديسمبر 2018) جنوب أفريقيا كأس العالم 2002 الاتحاد المشرف اتحاد جنوب أفريقيا لكرة القدم البلد المضيف  كوريا الجنوبية و&#…

В Википедии есть статьи о других людях с такой фамилией, см. Альтфатер. Михаил Егорович Альтфатер Дата рождения 8 (20) октября 1840(1840-10-20) Место рождения Санкт-Петербург, Российская империя Дата смерти 24 августа 1918(1918-08-24) (77 лет) Место смерти Петроград, РСФСР Принадлежность…

Untuk the children's game, lihat Duck Duck Goose. Duck Duck GoosePoster rilis teatrikalSutradaraChris JenkinsProduserPenney Finkelman CoxSandra RabinsDitulis olehRob MuirChris JenkinsScott AtkinsonTegan WestPemeran Jim Gaffigan Zendaya Lance Lim Greg Proops Natasha Leggero Stephen Fry Craig Ferguson Carl Reiner Penata musikMark IshamPenyuntingLisa Linder-SilverPerusahaanproduksiOriginal Force Animation[1]Wanda Media Co., Ltd[2]Jiangsu Yuandongli Computer Animation Co.,Ltd&#…

Pour les articles homonymes, voir Janot. Jérémie Janot Jérémie Janot en 2019. Situation actuelle Équipe France espoirs (entraîneur des gardiens) Biographie Nationalité Français Naissance 11 octobre 1977 (46 ans) Valenciennes (France) Taille 1,76 m (5′ 9″) Période pro. 1996 – 2013 Poste Gardien de but puis entraîneur Pied fort Gauche Parcours junior Années Club US Valenciennes-Anzin AS Saint-Étienne Parcours senior1 AnnéesClub 0M.0(B.) 1996-2012 AS Saint-Étienne…

Chief of General Staff of the Armed ForcesНачальники Главного штаба вооружённых силEmblem of the armed forcesIncumbentColonel Sergey Gerasyutenko [ru]since 6 September 2016Armed Forces of TransnistriaReports toMinister of DefenceAppointerThe PresidentFormation22 January 1993First holderVladimir Evgenievich Prosovetskiy The Chief of the General Staff of the Armed Forces of the Pridnestrovskaia Moldavskaia Respublika (Russian: Начальни…

Short-fuselage derivative of the Airbus A300 airliner A310 redirects here. For other uses, see A310 (disambiguation). A310 An A310, landing gear and flaps extended, from Air Transat, formerly one of its largest operators Role Wide-body aircraftType of aircraft National origin Multinational[a] Manufacturer Airbus First flight 3 April 1982; 42 years ago (1982-04-03) Introduction April 1983 with Swissair Status In limited service Primary users Mahan AirULS Airlines Ca…

Species of carnivore Western lowland olingo Sitting on a branch Conservation status Least Concern  (IUCN 3.1)[1] Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Mammalia Order: Carnivora Family: Procyonidae Genus: Bassaricyon Species: B. medius Binomial name Bassaricyon mediusThomas, 1909 Distribution of the western lowland olingo Synonyms Bassariscyon gabbi orinomus Goldman, 1912 The western lowland olingo (Bassaricyon medius) is a species…

Idiom For the horse racing term, see Racecard. The Race Card redirects here. For other uses, see The Race Card (disambiguation). Cartoon by John Tenniel published following Abraham Lincoln's Emancipation Proclamation. The phrase itself came into use more than 100 years later. Playing the race card is an idiomatic phrase that refers to the exploitation by someone of either racist or anti-racist attitudes in the audience in order to gain an advantage.[1][2][3] It constitute…

この記事は検証可能な参考文献や出典が全く示されていないか、不十分です。出典を追加して記事の信頼性向上にご協力ください。(このテンプレートの使い方)出典検索?: コルク – ニュース · 書籍 · スカラー · CiNii · J-STAGE · NDL · dlib.jp · ジャパンサーチ · TWL(2017年4月) コルクを打ち抜いて作った瓶の栓 コルク(木栓、蘭&…

Jennifer Yuh NelsonJennifer Yuh Nelson pada Mei 2012 di konferensi bisnis C2-MTLLahirJennifer Yuh07 Mei 1972 (umur 52)[1]Korea SelatanTempat tinggalAmerika SerikatPendidikanBachelor of Fine ArtsAlmamaterCalifornia State University, Long BeachPekerjaanSutradara, artis papan ceritaTahun aktif1994-sekarangTempat kerjaDreamWorks AnimationKarya terkenalKung Fu Panda 2Kung Fu Panda 3 Jennifer Yuh Nelson (lahir 7 Mei 1972), juga dikenal sebagai Jennifer Yuh, adalah seorang sutradara d…

SCTV Awards 2020DeskripsiPrestasi dalam acara televisiTanggal27 November 2020LokasiJakarta, IndonesiaNegaraIndonesiaPembawa acara Andhika Pratama Yuki Kato Raffi Ahmad Penampilan Agnez Mo NOAH Rizky Billar Christie Hartono UN1TY NCT 127 IkhtisarSinetron Paling NgetopSamudra CintaAktor Utama Paling NgetopRangga AzofAktor Pendamping Paling NgetopRassya HidayahAktris Utama Paling NgetopHaico Van der VekenAktris Pendamping Paling NgetopAqeela CalistaSiaran televisi/radioSaluranSCTV← 2019 SCTV …

«Христос во гробе», мозаичная икона, Византия, кон. XIII — нач. XIV в.,Метрополитен-музей, Нью-Йорк, США «Христос во гробе» — редкий вариант с изображением Иисуса во весь рост, а не стандартный поясной вариант. Кипр, XV-XVI вв. Христос во гробе, Уныние или Смирение Нашего Господ…

Ten sentimoPhilippinesValue0.10 Philippine pesoMass2.5 gDiameter17.00 mmThickness1.67 mmEdgeReededCompositionCopper-plated steelYears of minting1880–2017ObverseDesignDenomination, country name in Tagalog and year. (Note this is an image of a Philippine 10 sentimo coin)Design date1995ReverseDesignLogo of the Bangko Sentral ng PilipinasDesign date1995 The ten-sentimo coin (10¢) coin is a denomination of the Philippine peso. It was the oldest denomination under 1 peso in the count…

Former pub in Maida Vale, London Windsor CastleLocation309 Harrow Road, LondonCoordinates51°31′24″N 0°11′52″W / 51.52337°N 0.19784°W / 51.52337; -0.19784TypePubGenre(s)Rock/PunkOpened1829Closed2009 The Windsor Castle is a former public house on Harrow Road, Maida Vale, London. It was a seminal rock venue throughout the 1960s and 1970s, with notable early performances from The Rolling Stones, The Who and U2.[1] The building is a designated heritage asse…

Best of The CorrsAlbum hit terbaik karya The CorrsDirilis5 November 2001Direkam1994-2001GenreKeltik, folk rockDurasi71:32LabelAtlantic, 143, LavaProduserDavid Foster, Mitchell Froom, Oliver Leiber, Robert John Mutt LangeKronologi The Corrs In Blue(2000)In Blue2000 Best of The Corrs(2001) VH1 Presents: The Corrs, Live in Dublin(2002)VH1 Presents: The Corrs, Live in Dublin2002 Penilaian profesional Skor ulasan Sumber Nilai Allmusic [1] Best of The Corrs adalah album kompilasi pertama T…

Honorific prefix Not to be confused with The Honourable or The Most Honourable. This engraving of George Cornewall Lewis includes The Right Honourable in its caption, reflecting the Home Secretary position he held at the time of its creation. The Right Honourable (abbreviation: The Rt Hon. or variations) is an honorific style traditionally applied to certain persons and collective bodies in the United Kingdom, the former British Empire and the Commonwealth of Nations. The term is predominantly u…

Kembali kehalaman sebelumnya