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 C530SecurityRequired = 530 // ../rfc/3207:148 ../rfc/4954:623
35 C534AuthMechWeak = 534 // ../rfc/4954:593
36 C535AuthBadCreds = 535 // ../rfc/4954:600
37 C538EncReqForAuth = 538 // ../rfc/4954:630
38 C550MailboxUnavail = 550
39 C551UserNotLocal = 551
40 C552MailboxFull = 552
41 C553BadMailbox = 553
42 C554TransactionFailed = 554
43 C555UnrecognizedAddrParams = 555
44 C556DomainNoMail = 556 // ../rfc/7504:207
45)
46
47// Short enhanced reply codes, without leading number and first dot.
48//
49// See https://www.iana.org/assignments/smtp-enhanced-status-codes/smtp-enhanced-status-codes.xhtml
50var (
51 // 0.x - Other or Undefined Status.
52 // ../rfc/3463:287
53 SeOther00 = "0.0"
54
55 // 1.x - Address.
56 // ../rfc/3463:295
57 SeAddr1Other0 = "1.0"
58 SeAddr1UnknownDestMailbox1 = "1.1"
59 SeAddr1UnknownSystem2 = "1.2"
60 SeAddr1MailboxSyntax3 = "1.3"
61 SeAddr1MailboxAmbiguous4 = "1.4"
62 SeAddr1DestValid5 = "1.5" // For success responses.
63 SeAddr1DestMailboxMoved6 = "1.6"
64 SeAddr1SenderSyntax7 = "1.7"
65 SeAddr1BadSenderSystemAddress8 = "1.8"
66 SeAddr1NullMX = "1.10" // ../rfc/7505:237
67
68 // 2.x - Mailbox.
69 // ../rfc/3463:361
70 SeMailbox2Other0 = "2.0"
71 SeMailbox2Disabled1 = "2.1"
72 SeMailbox2Full2 = "2.2"
73 SeMailbox2MsgLimitExceeded3 = "2.3"
74 SeMailbox2MailListExpansion4 = "2.4"
75
76 // 3.x - Mail system.
77 // ../rfc/3463:405
78 SeSys3Other0 = "3.0"
79 SeSys3StorageFull1 = "3.1"
80 SeSys3NotAccepting2 = "3.2"
81 SeSys3NotSupported3 = "3.3"
82 SeSys3MsgLimitExceeded4 = "3.4"
83 SeSys3Misconfigured5 = "3.5"
84
85 // 4.x - Network and routing.
86 // ../rfc/3463:455
87 SeNet4Other0 = "4.0"
88 SeNet4NoAnswer1 = "4.1"
89 SeNet4BadConn2 = "4.2"
90 SeNet4Name3 = "4.3"
91 SeNet4Routing4 = "4.4"
92 SeNet4Congestion5 = "4.5"
93 SeNet4Loop6 = "4.6"
94 SeNet4DeliveryExpired7 = "4.7"
95
96 // 5.x - Mail delivery protocol.
97 // ../rfc/3463:527
98 SeProto5Other0 = "5.0"
99 SeProto5BadCmdOrSeq1 = "5.1"
100 SeProto5Syntax2 = "5.2"
101 SeProto5TooManyRcpts3 = "5.3"
102 SeProto5BadParams4 = "5.4"
103 SeProto5ProtocolMismatch5 = "5.5"
104 SeProto5AuthExchangeTooLong = "5.6" // ../rfc/4954:650
105
106 // 6.x - Message content/media.
107 // ../rfc/3463:579
108 SeMsg6Other0 = "6.0"
109 SeMsg6MediaUnsupported1 = "6.1"
110 SeMsg6ConversionProhibited2 = "6.2"
111 SeMsg6ConversionUnsupported3 = "6.3"
112 SeMsg6ConversionWithLoss4 = "6.4"
113 SeMsg6ConversionFailed5 = "6.5"
114 SeMsg6NonASCIIAddrNotPermitted7 = "6.7" // ../rfc/6531:735
115 SeMsg6UTF8ReplyRequired8 = "6.8" // ../rfc/6531:746
116 SeMsg6UTF8CannotTransfer9 = "6.9" // ../rfc/6531:758
117
118 // 7.x - Security/policy.
119 // ../rfc/3463:628
120 SePol7Other0 = "7.0"
121 SePol7DeliveryUnauth1 = "7.1"
122 SePol7ExpnProhibited2 = "7.2"
123 SePol7ConversionImpossible3 = "7.3"
124 SePol7Unsupported4 = "7.4"
125 SePol7CryptoFailure5 = "7.5"
126 SePol7CryptoUnsupported6 = "7.6"
127 SePol7MsgIntegrity7 = "7.7"
128 SePol7AuthBadCreds8 = "7.8" // ../rfc/4954:600
129 SePol7AuthWeakMech9 = "7.9" // ../rfc/4954:593
130 SePol7EncNeeded10 = "7.10" // ../rfc/5248:359
131 SePol7EncReqForAuth11 = "7.11" // ../rfc/4954:630
132 SePol7PasswdTransitionReq12 = "7.12" // ../rfc/4954:578
133 SePol7AccountDisabled13 = "7.13" // ../rfc/5248:399
134 SePol7TrustReq14 = "7.14" // ../rfc/5248:418
135 // todo spec: duplicate spec of 7.16 ../rfc/4865:412 ../rfc/6710:878
136 // todo spec: duplicate spec of 7.17 ../rfc/4865:418 ../rfc/7293:1137
137 SePol7NoDKIMPass20 = "7.20" // ../rfc/7372:137
138 SePol7NoDKIMAccept21 = "7.21" // ../rfc/7372:148
139 SePol7NoDKIMAuthorMatch22 = "7.22" // ../rfc/7372:175
140 SePol7SPFResultFail23 = "7.23" // ../rfc/7372:192
141 SePol7SPFError24 = "7.24" // ../rfc/7372:204
142 SePol7RevDNSFail25 = "7.25" // ../rfc/7372:233
143 SePol7MultiAuthFails26 = "7.26" // ../rfc/7372:246
144 SePol7SenderHasNullMX27 = "7.27" // ../rfc/7505:246
145 SePol7ARCFail29 = "7.29" // ../rfc/8617:1438
146 SePol7MissingReqTLS30 = "7.30" // ../rfc/8689:448
147)
148