1package smtp
2
3// ../rfc/5321:2863
4
5// Reply codes.
6var (
7 C211SystemStatus = 211
8 C214Help = 214
9 C220ServiceReady = 220
10 C221Closing = 221
11 C235AuthSuccess = 235 // ../rfc/4954:573
12
13 C250Completed = 250
14 C251UserNotLocalWillForward = 251
15 C252WithoutVrfy = 252
16
17 C334ContinueAuth = 334 // ../rfc/4954:187
18 C354Continue = 354
19
20 C421ServiceUnavail = 421
21 C432PasswdTransitionNeeded = 432 // ../rfc/4954:578
22 C454TempAuthFail = 454 // ../rfc/4954:586
23 C450MailboxUnavail = 450
24 C451LocalErr = 451
25 C452StorageFull = 452 // Also for "too many recipients", ../rfc/5321:3576
26 C455BadParams = 455
27
28 C500BadSyntax = 500
29 C501BadParamSyntax = 501
30 C502CmdNotImpl = 502
31 C503BadCmdSeq = 503
32 C504ParamNotImpl = 504
33 C521HostNoMail = 521 // ../rfc/7504:179
34 C523EncryptionNeeded = 523 // ../rfc/5248:361
35 C525AccountDisabled = 525 // ../rfc/5248:401
36 C530SecurityRequired = 530 // ../rfc/3207:148 ../rfc/4954:623
37 C534AuthMechWeak = 534 // ../rfc/4954:593
38 C535AuthBadCreds = 535 // ../rfc/4954:600
39 C538EncReqForAuth = 538 // ../rfc/4954:630
40 C550MailboxUnavail = 550
41 C551UserNotLocal = 551
42 C552MailboxFull = 552
43 C553BadMailbox = 553
44 C554TransactionFailed = 554
45 C555UnrecognizedAddrParams = 555
46 C556DomainNoMail = 556 // ../rfc/7504:207
47)
48
49// Short enhanced reply codes, without leading number and first dot.
50//
51// See https://www.iana.org/assignments/smtp-enhanced-status-codes/smtp-enhanced-status-codes.xhtml
52var (
53 // 0.x - Other or Undefined Status.
54 // ../rfc/3463:287
55 SeOther00 = "0.0"
56
57 // 1.x - Address.
58 // ../rfc/3463:295
59 SeAddr1Other0 = "1.0"
60 SeAddr1UnknownDestMailbox1 = "1.1"
61 SeAddr1UnknownSystem2 = "1.2"
62 SeAddr1MailboxSyntax3 = "1.3"
63 SeAddr1MailboxAmbiguous4 = "1.4"
64 SeAddr1DestValid5 = "1.5" // For success responses.
65 SeAddr1DestMailboxMoved6 = "1.6"
66 SeAddr1SenderSyntax7 = "1.7"
67 SeAddr1BadSenderSystemAddress8 = "1.8"
68 SeAddr1NullMX = "1.10" // ../rfc/7505:237
69
70 // 2.x - Mailbox.
71 // ../rfc/3463:361
72 SeMailbox2Other0 = "2.0"
73 SeMailbox2Disabled1 = "2.1"
74 SeMailbox2Full2 = "2.2"
75 SeMailbox2MsgLimitExceeded3 = "2.3"
76 SeMailbox2MailListExpansion4 = "2.4"
77
78 // 3.x - Mail system.
79 // ../rfc/3463:405
80 SeSys3Other0 = "3.0"
81 SeSys3StorageFull1 = "3.1"
82 SeSys3NotAccepting2 = "3.2"
83 SeSys3NotSupported3 = "3.3"
84 SeSys3MsgLimitExceeded4 = "3.4"
85 SeSys3Misconfigured5 = "3.5"
86
87 // 4.x - Network and routing.
88 // ../rfc/3463:455
89 SeNet4Other0 = "4.0"
90 SeNet4NoAnswer1 = "4.1"
91 SeNet4BadConn2 = "4.2"
92 SeNet4Name3 = "4.3"
93 SeNet4Routing4 = "4.4"
94 SeNet4Congestion5 = "4.5"
95 SeNet4Loop6 = "4.6"
96 SeNet4DeliveryExpired7 = "4.7"
97
98 // 5.x - Mail delivery protocol.
99 // ../rfc/3463:527
100 SeProto5Other0 = "5.0"
101 SeProto5BadCmdOrSeq1 = "5.1"
102 SeProto5Syntax2 = "5.2"
103 SeProto5TooManyRcpts3 = "5.3"
104 SeProto5BadParams4 = "5.4"
105 SeProto5ProtocolMismatch5 = "5.5"
106 SeProto5AuthExchangeTooLong = "5.6" // ../rfc/4954:650
107
108 // 6.x - Message content/media.
109 // ../rfc/3463:579
110 SeMsg6Other0 = "6.0"
111 SeMsg6MediaUnsupported1 = "6.1"
112 SeMsg6ConversionProhibited2 = "6.2"
113 SeMsg6ConversionUnsupported3 = "6.3"
114 SeMsg6ConversionWithLoss4 = "6.4"
115 SeMsg6ConversionFailed5 = "6.5"
116 SeMsg6NonASCIIAddrNotPermitted7 = "6.7" // ../rfc/6531:735
117 SeMsg6UTF8ReplyRequired8 = "6.8" // ../rfc/6531:746
118 SeMsg6UTF8CannotTransfer9 = "6.9" // ../rfc/6531:758
119
120 // 7.x - Security/policy.
121 // ../rfc/3463:628
122 SePol7Other0 = "7.0"
123 SePol7DeliveryUnauth1 = "7.1"
124 SePol7ExpnProhibited2 = "7.2"
125 SePol7ConversionImpossible3 = "7.3"
126 SePol7Unsupported4 = "7.4"
127 SePol7CryptoFailure5 = "7.5"
128 SePol7CryptoUnsupported6 = "7.6"
129 SePol7MsgIntegrity7 = "7.7"
130 SePol7AuthBadCreds8 = "7.8" // ../rfc/4954:600
131 SePol7AuthWeakMech9 = "7.9" // ../rfc/4954:593
132 SePol7EncNeeded10 = "7.10" // ../rfc/5248:359
133 SePol7EncReqForAuth11 = "7.11" // ../rfc/4954:630
134 SePol7PasswdTransitionReq12 = "7.12" // ../rfc/4954:578
135 SePol7AccountDisabled13 = "7.13" // ../rfc/5248:399
136 SePol7TrustReq14 = "7.14" // ../rfc/5248:418
137 // todo spec: duplicate spec of 7.16 ../rfc/4865:412 ../rfc/6710:878
138 // todo spec: duplicate spec of 7.17 ../rfc/4865:418 ../rfc/7293:1137
139 SePol7NoDKIMPass20 = "7.20" // ../rfc/7372:137
140 SePol7NoDKIMAccept21 = "7.21" // ../rfc/7372:148
141 SePol7NoDKIMAuthorMatch22 = "7.22" // ../rfc/7372:175
142 SePol7SPFResultFail23 = "7.23" // ../rfc/7372:192
143 SePol7SPFError24 = "7.24" // ../rfc/7372:204
144 SePol7RevDNSFail25 = "7.25" // ../rfc/7372:233
145 SePol7MultiAuthFails26 = "7.26" // ../rfc/7372:246
146 SePol7SenderHasNullMX27 = "7.27" // ../rfc/7505:246
147 SePol7ARCFail29 = "7.29" // ../rfc/8617:1438
148 SePol7MissingReqTLS30 = "7.30" // ../rfc/8689:448
149)
150