administration mode

Performance Peek blog

Article: SMTP server responce codes and the meaning of the numbers. »

CHRISTIAN DENCKER - OCT 6, 2010 (09:17:05 PM)

The Meaning of the Numbers


A mail server will reply to every request a client (such as your email program) makes with a return code. This code consists of three numbers.

The first generally tells whether the server accepted the command and if it could handle it. The five possible values are:

1: The server has accepted the command, but does not yet take action. A confirmation message is required. Currently, this is not used.
2: The server has completed the task successfully.
3: The server has understood the request, but requires further information to complete it.
4: The server has encountered a temporary failure. If the command is repeated without any change, it might be completed. Mail servers can use such temporary failures to keep untrusted senders at bay.
5: The server has encountered an error.

The second number gives more information. Its six possible values are:

0: A syntax error has occurred.
1: Indicates a informational reply, for example to a HELP request.
2: Refers to the connection status.
3 and 4 are unspecified.
5: Refers to the status of the mail system as a whole and the mail server in particular.

The last number is even more specific and shows more graduations of the mail transfer status. This leads us to the detailed list of ESMTP server response codes, as laid down in RFC 821 and later extensions.

List of SMTP Server Response Codes

211 - A system status message.
214 - A help message for a human reader follows.
220 - SMTP Service ready.
221 - Service closing.
250 - Requested action taken and completed. The best message of them all.
251 - The recipient is not local to the server, but the server will accept and forward the message.
252 - The recipient cannot be VRFYed, but the server accepts the message and attempts delivery.
354 - Start message input and end with <CRLF>.<CRLF>. This indicates that the server is ready to accept the message itself (after you have told it who it is from and where you want to to go).
421 - The service is not available and the connection will be closed.
450 - The requested command failed because the user's mailbox was unavailable (for example because it was locked). Try again later.
451 - The command has been aborted due to a server error. Not your fault. Maybe let the admin know.
452 - The command has been aborted because the server has insufficient system storage.
The following error messages (500-504) usually tell you that your email client is broken. It's probably best to let the program's author know.
500 - The server could not recognize the command due to a syntax error.
501 - A syntax error was encountered in command arguments.
502 - This command is not implemented.
503 - The server has encountered a bad sequence of commands.
504 - A command parameter is not implemented.
550 - The requested command failed because the user's mailbox was unavailable (for example because it was not found, or because the command was rejected for policy reasons).
551 - The recipient is not local to the server. The server then gives a forward address to try.
552 - The action was aborted due to exceeded storage allocation.
553 - The command was aborted because the mailbox name is invalid.
554 - The transaction failed. Blame it on the weather.

Nedenstående er fra RFC 2821 som beskriver SMTP protokollen. Hver kode er placeret det sted i "Command" line hvor den kan opstå. "Command" line er hvis du bruger en telnet session til at sende en E-mail.

RFC 2821             Simple Mail Transfer Protocol            April 2001


 Specific sequences are:

 CONNECTION ESTABLISHMENT
    S: 220
    E: 554
 EHLO or HELO
    S: 250
    E: 504, 550
 MAIL
    S: 250
    E: 552, 451, 452, 550, 553, 503
 RCPT
    S: 250, 251 (but see section 3.4 for discussion of 251 and 551)
    E: 550, 551, 552, 553, 450, 451, 452, 503, 550
 DATA
    I: 354 -> data -> S: 250
                      E: 552, 554, 451, 452
    E: 451, 554, 503
 RSET
    S: 250
 VRFY
    S: 250, 251, 252
    E: 550, 551, 553, 502, 504
 EXPN
    S: 250, 252
    E: 550, 500, 502, 504
 HELP
    S: 211, 214
    E: 502, 504
 NOOP
    S: 250
 QUIT
    S: 221

 

BOOKMARK THIS CONTENT
del.icio.us technorati digg Furl YahooMyWeb Reddit NewsVine

Comments: 1
Reviews: 1
Average rating: rating
Highest rating: 5
Lowest rating: 5

COMMENT: SØREN NILESEN rating

JAN 6, 2009 - 02:43:12

comment » Easy to understand ... cool 25 «

RATE THIS CONTENT (OPTIONAL)
Was this document useful to you?
 
rating Awesome
rating Good
rating Average
rating Poor
rating Useless
CREATE A NEW COMMENT
required field
required field HTML is not allowed. Hyperlinks will automatically be converted.
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30