pub enum ReplyCode {
Show 26 variants
SystemStatus,
HelpMessage,
Ready,
ClosingChannel,
Ok,
UserNotLocalWillForward,
CannotVrfy,
StartMailInput,
NotAvailable,
MailboxTemporarilyUnavailable,
ProcessingError,
InsufficientStorage,
UnableToAccommodateParameters,
SyntaxError,
ParameterSyntaxError,
CommandNotImplemented,
BadSequence,
ParameterNotImplemented,
NoMailService,
MailboxPermanentlyUnavailable,
UserNotLocal,
ExceededStorageAllocation,
MailboxNameNotAllowed,
TransactionFailed,
ParametersNotImplemented,
Other(u16),
}
Variants§
SystemStatus
211 System status, or system help reply
HelpMessage
214 Help message
Information on how to use the receiver or the meaning of a particular non-standard command; this reply is useful only to the human user.
Ready
220
ClosingChannel
221
Ok
250 Requested mail action okay, completed
UserNotLocalWillForward
251 User not local; will forward to
CannotVrfy
252 Cannot VRFY user, but will accept message and attempt delivery
StartMailInput
354 Start mail input; end with
NotAvailable
421
This may be a reply to any command if the service knows it must shut down.
450 Requested mail action not taken: mailbox unavailable
E.g., mailbox busy or temporarily blocked for policy reasons.
ProcessingError
451 Requested action aborted: local error in processing
InsufficientStorage
452 Requested action not taken: insufficient system storage
UnableToAccommodateParameters
455 Server unable to accommodate parameters
SyntaxError
500 Syntax error, command unrecognized
ParameterSyntaxError
501 Syntax error in parameters or arguments
CommandNotImplemented
502 Command not implemented
BadSequence
503 Bad sequence of commands
ParameterNotImplemented
504 Command parameter not implemented
NoMailService
521
550 Requested action not taken: mailbox unavailable
E.g. mailbox not found, no access, or command rejected for policy reasons.
UserNotLocal
551 User not local; please try
ExceededStorageAllocation
552 Requested mail action aborted: exceeded storage allocation
MailboxNameNotAllowed
553 Requested action not taken: mailbox name not allowed
E.g. mailbox syntax incorrect.
TransactionFailed
554 Transaction failed
Or, in the case of a connection-opening response, “No SMTP service here”.
ParametersNotImplemented
555 MAIL FROM/RCPT TO parameters not recognized or not implemented
Other(u16)
Miscellaneous reply codes