MailSharp / MailSharp.WebManager / appsettings.json
Code · 333 lines · 9716 bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333{
	"SmtpResponses": {
		"Ready": "220 SMTP Server Ready",
		"CommandNotRecognized": "500 Command not recognized",
		"BadSequence": "503 Bad sequence of commands",
		"SyntaxError": "501 Syntax error in parameters",
		"Hello": "250 Hello",
		"EhloSupport": "250-SMTP Server supports EHLO",
		"EhloSizeFormat": "250 SIZE {0}",
		"Ok": "250 OK",
		"HeaderStart": "354 Start mail input; end with <CRLF>.<CRLF>",
		"MessageAccepted": "250 OK: Message accepted for delivery",
		"Quit": "221 Bye",
		"Timeout": "421 Timeout waiting for command",
		"Shutdown": "421 Service not available, closing transmission channel",
		"VrfySuccess": "252 Cannot verify user",
		"VrfyDisabled": "502 VRFY command disabled",
		"ExpnDisabled": "502 EXPN command disabled",
		"Help": "214 Help: Supported commands: HELO, EHLO, MAIL, RCPT, DATA, QUIT, NOOP, RSET, VRFY, EXPN, HELP, AUTH, STARTTLS",
		"AuthLoginUsernamePrompt": "334 VXNlcm5hbWU6",
		"AuthLoginPasswordPrompt": "334 UGFzc3dvcmQ6",
		"AuthSuccess": "235 Authentication succeeded",
		"AuthFailed": "535 Authentication failed",
		"StartTls": "220 Ready to start TLS",
		"StartTlsFailed": "454 TLS not available",
		"StartTlsInvalid": "502 TLS already active",
		"CramMd5Challenge": "334 {0}",
		"AuthSupport": "250-AUTH PLAIN CRAM-MD5 LOGIN",
		"StartTlsSupport": "250-STARTTLS",
		"DkimFailed": "550 DKIM verification failed",
		"DmarcFailed": "550 DMARC policy check failed",
		"InvalidHeaders": "554 Invalid headers: From, To, and Date required",
		"SpamDetected": "554 Message rejected: Suspected spam",
		"VrfyFailed": "550 User not found"
	},
	"SmtpLogMessages": {
		"ServerStarted": "SMTP Server started on {0} security {1}",
		"ServerStartFailed": "Failed to start listener on port {0}",
		"ClientAccepted": "Accepted client connection from {0}",
		"ListenerStopped": "Listener on {0} stopped due to cancellation",
		"ClientAcceptError": "Error accepting client on {0}",
		"SessionStarted": "New SMTP session started for session {0} from {1}",
		"CommandReceived": "Received command {0} for session {1}",
		"HeaderEnd": "Header end for session {0}",
		"DataEnd": "Data end for session {0}",
		"ClientDisconnected": "Session {0} disconnected",
		"SessionEndedByQuit": "Session {0} ended by QUIT command",
		"UnrecognizedCommand": "Unrecognized command {0} for session {1}",
		"SessionTerminated": "Session {1} terminated due to {0}",
		"CommandProcessingError": "Error processing command for session {0}",
		"ServiceStarting": "Starting SMTP server service",
		"ServiceStopping": "Stopping SMTP server service",
		"ServiceError": "Error running SMTP server"
	},
	"Pop3LogMessages": {
		"ServerStarted": "POP3 server started on {0} security {1}",
		"ServerStartFailed": "Failed to start POP3 server on port {0}: {1}",
		"ClientAccepted": "Accepted POP3 client connection from {0}",
		"ListenerStopped": "POP3 listener stopped on {0}",
		"ClientAcceptError": "Error accepting POP3 client on {0}: {1}",
		"SessionError": "Error in POP3 session for client {0}: {1}",
		"ServiceStarting": "POP3 service starting",
		"ServiceError": "Error in POP3 service: {0}",
		"ServiceStopping": "POP3 service stopping",
		"TlsInitialized": "TLS initialized for POP3 session from {0}",
		"TlsInitializationFailed": "Failed to initialize TLS for POP3 session from {0}: {1}"
	},
	"ImapLogMessages": {
		"ServerStarted": "IMAP server started on {0} security {1}",
		"ServerStartFailed": "Failed to start IMAP server on port {0}: {1}",
		"ClientAccepted": "Accepted IMAP client connection from {0}",
		"ListenerStopped": "IMAP listener stopped on {0}",
		"ClientAcceptError": "Error accepting IMAP client on {0}: {1}",
		"SessionError": "Error in IMAP session for client {0}: {1}",
		"ServiceStarting": "IMAP service starting",
		"ServiceError": "Error in IMAP service: {0}",
		"ServiceStopping": "IMAP service stopping",
		"TlsInitialized": "TLS initialized for IMAP session from {0}",
		"TlsInitializationFailed": "Failed to initialize TLS for IMAP session from {0}: {1}"
	},
	"AuthLogMessages": {
		"AuthenticationAttempt": "Authentication attempt for user {0}",
		"AuthenticationSuccess": "Authentication successful for user {0}",
		"AuthenticationFailed": "Authentication failed for user {0}"
	},
	"MailboxLogMessages": {
		"MessagesRequested": "Messages requested for user {0}",
		"MessageDeletion": "Message {1} deletion requested for user {0}",
		"MessagesRetrievalFailed": "Failed to retrieve messages for user {0}: {1}",
		"MessageNotFound": "Message {1} not found for user {0}",
		"MessageDeletionFailed": "Failed to delete message {1} for user {0}: {2}",
		"FolderCreation": "Creating folder {1} for user {0}",
		"FolderExists": "Folder {1} already exists for user {0}",
		"FolderCreationFailed": "Failed to create folder {1} for user {0}: {2}",
		"FolderDeletion": "Deleting folder {1} for user {0}",
		"FolderNotFound": "Folder {1} not found for user {0}",
		"FolderDeletionFailed": "Failed to delete folder {1} for user {0}: {2}",
		"FolderList": "Listing folders for user {0}",
		"FolderListFailed": "Failed to list folders for user {0}: {1}",
		"FlagUpdate": "Updating flags for message {1} in folder {2} for user {0}",
		"FlagUpdateFailed": "Failed to update flags for message {1} in folder {2} for user {0}: {3}",
		"MessageFetch": "Fetching message {1} in folder {2} for user {0}",
		"MessageFetchFailed": "Failed to fetch message {1} in folder {2} for user {0}: {3}"
	},
	"DmarcLogMessages": {
		"DmarcCheck": "DMARC check initiated for domain {0}",
		"NoDmarcRecord": "No DMARC record found for domain {0}",
		"InvalidDmarcRecord": "Invalid DMARC record for domain {0}",
		"MissingPolicy": "DMARC record missing policy for domain {0}",
		"PolicyFailed": "DMARC policy {0} failed for domain {1}",
		"UnknownPolicy": "Unknown DMARC policy {0} for domain {1}"
	},
	"SmtpEventIds": {
		"SessionStarted": {
			"Id": 1000,
			"Name": "SessionStarted"
		},
		"CommandReceived": {
			"Id": 1001,
			"Name": "CommandReceived"
		},
		"HeaderEnd": {
			"Id": 1002,
			"Name": "HeaderEnd"
		},
		"DataEnd": {
			"Id": 1003,
			"Name": "DataEnd"
		},
		"ClientDisconnected": {
			"Id": 104,
			"Name": "ClientDisconnected"
		},
		"SessionEndedByQuit": {
			"Id": 1005,
			"Name": "SessionEndedByQuit"
		},
		"UnrecognizedCommand": {
			"Id": 1006,
			"Name": "UnrecognizedCommand"
		},
		"SessionTerminated": {
			"Id": 1007,
			"Name": "SessionTerminated"
		},
		"CommandProcessingError": {
			"Id": 1008,
			"Name": "CommandProcessingError"
		},
		"ServiceStarting": {
			"Id": 2000,
			"Name": "ServiceStarting"
		},
		"ServiceStopping": {
			"Id": 2001,
			"Name": "ServiceStopping"
		},
		"ServiceError": {
			"Id": 2002,
			"Name": "ServiceError"
		},
		"ServerStarted": {
			"Id": 3000,
			"Name": "ServerStarted"
		},
		"ServerStartFailed": {
			"Id": 3001,
			"Name": "ServerStartFailed"
		},
		"ClientAccepted": {
			"Id": 3002,
			"Name": "ClientAccepted"
		},
		"ListenerStopped": {
			"Id": 3003,
			"Name": "ListenerStopped"
		},
		"ClientAcceptError": {
			"Id": 3004,
			"Name": "ClientAcceptError"
		}
	},
	"Pop3EventIds": {
		"ServerStarted": {
			"Id": 1001,
			"Name": "ServerStarted"
		},
		"ServerStartFailed": {
			"Id": 1002,
			"Name": "ServerStartFailed"
		},
		"ClientAccepted": {
			"Id": 1003,
			"Name": "ClientAccepted"
		},
		"ListenerStopped": {
			"Id": 1004,
			"Name": "ListenerStopped"
		},
		"ClientAcceptError": {
			"Id": 1005,
			"Name": "ClientAcceptError"
		},
		"SessionError": {
			"Id": 1006,
			"Name": "SessionError"
		},
		"ServiceStarting": {
			"Id": 1007,
			"Name": "ServiceStarting"
		},
		"ServiceError": {
			"Id": 1008,
			"Name": "ServiceError"
		},
		"ServiceStopping": {
			"Id": 1009,
			"Name": "ServiceStopping"
		},
		"TlsInitialized": {
			"Id": 1010,
			"Name": "TlsInitialized"
		},
		"TlsInitializationFailed": {
			"Id": 1011,
			"Name": "TlsInitializationFailed"
		}
	},
	"ImapEventIds": {
		"ServerStarted": {
			"Id": 2001,
			"Name": "ServerStarted"
		},
		"ServerStartFailed": {
			"Id": 2002,
			"Name": "ServerStartFailed"
		},
		"ClientAccepted": {
			"Id": 2003,
			"Name": "ClientAccepted"
		},
		"ListenerStopped": {
			"Id": 2004,
			"Name": "ListenerStopped"
		},
		"ClientAcceptError": {
			"Id": 2005,
			"Name": "ClientAcceptError"
		},
		"SessionError": {
			"Id": 2006,
			"Name": "SessionError"
		},
		"ServiceStarting": {
			"Id": 2007,
			"Name": "ServiceStarting"
		},
		"ServiceError": {
			"Id": 2008,
			"Name": "ServiceError"
		},
		"ServiceStopping": {
			"Id": 2009,
			"Name": "ServiceStopping"
		},
		"TlsInitialized": {
			"Id": 2010,
			"Name": "TlsInitialized"
		},
		"TlsInitializationFailed": {
			"Id": 2011,
			"Name": "TlsInitializationFailed"
		}
	},
	"AuthEventIds": {
		"AuthenticationAttempt": {
			"Id": 3001,
			"Name": "AuthenticationAttempt"
		},
		"AuthenticationSuccess": {
			"Id": 3002,
			"Name": "AuthenticationSuccess"
		},
		"AuthenticationFailed": {
			"Id": 3003,
			"Name": "AuthenticationFailed"
		}
	},
	"MailboxEventIds": {
		"MessagesRequested": {
			"Id": 4001,
			"Name": "MessagesRequested"
		},
		"MessageDeletion": {
			"Id": 4002,
			"Name": "MessageDeletion"
		},
		"FolderCreation": {
			"Id": 4003,
			"Name": "FolderCreation"
		},
		"FolderDeletion": {
			"Id": 4004,
			"Name": "FolderDeletion"
		},
		"FolderList": {
			"Id": 4005,
			"Name": "FolderList"
		},
		"FlagUpdate": {
			"Id": 4006,
			"Name": "FlagUpdate"
		},
		"MessageFetch": {
			"Id": 4007,
			"Name": "MessageFetch"
		}
	},
	"DmarcEventIds": {
		"DmarcCheck": {
			"Id": 5001,
			"Name": "DmarcCheck"
		}
	},
	"Logging": {
		"LogLevel": {
			"Default": "Information",
			"MailSharp.Smtp": "Debug",
			"Microsoft.AspNetCore": "None",
			"Microsoft.Hosting": "None"
		}
	}
}