You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Locks settings from being changed by user via web interface
30
29
// Default value: false
31
30
"LockSettings": false,
32
-
33
31
// The URLs the web interface should listen on.
34
32
// For example, http://localhost:123.
35
33
// Use `*` in place of hostname to listen for requests on any IP address or hostname using the specified port and protocol (for example, http://*:5000).
36
34
// Separate multiple values with ;
37
35
"Urls": "http://localhost:5000",
38
-
39
36
// Specifies the virtual path from web server root where SMTP4DEV web interface will be hosted. e.g. "/" or "/smtp4dev"
40
37
// Default value: "/"
41
38
"BasePath": "/",
42
-
43
39
// Specifies the server hostname. Used in auto-generated TLS certificate for SMTP if enabled.
44
40
// Default value: <DNS name of machine>
45
41
//"HostName": "localhost",
46
42
47
43
// Set the port the SMTP server listens on. Specify 0 to assign automatically
48
44
// Default value: 25
49
45
"Port": 25,
50
-
51
46
// Specifies if remote connections will be allowed to the SMTP and IMAP servers
52
47
// Default value: true
53
48
"AllowRemoteConnections": true,
54
-
55
49
// Specifies the IP address to bind to for SMTP and IMAP servers.
56
50
// If not specified, the behavior is determined by AllowRemoteConnections:
57
51
// - When AllowRemoteConnections is true: binds to all interfaces (0.0.0.0 for IPv4, :: for IPv6)
@@ -64,77 +58,61 @@
64
58
// If true, SMTP and IMAP servers will NOT listen using IPv6 Dual Stack (both IPv4 and IPV6)
65
59
// When using port 0 (automatic), different port numbers may be assigned for IPv4 and IPv6 loopback if allow remote connections option is off.
66
60
"DisableIPv6": false,
67
-
68
61
// Specifies the path where the database will be stored relative to APPDATA env var on Windows or XDG_CONFIG_HOME on non-Windows. Specify "" to use an in memory database.
69
62
// Default value: "database.db"
70
63
"Database": "database.db",
71
-
72
64
// Specifies the number of messages to keep per mailbox
73
65
// Default value: 100
74
66
"NumberOfMessagesToKeep": 100,
75
-
76
67
// Specifies the number of sessions to keep
77
68
// Default value: 100
78
69
"NumberOfSessionsToKeep": 100,
79
-
80
70
// Specifies the TLS mode to use for SMTP. Valid options are: None, StartTls or ImplicitTls.
81
71
// Default value: "None"
82
72
"TlsMode": "None",
83
-
84
73
// Specifies the SSL/TLS protocol version(s) that will be allowed.
85
74
//Separate multiple values with commas.
86
75
// See https://learn.microsoft.com/en-us/dotnet/api/system.security.authentication.sslprotocols?view=net-9.0
87
76
// Default value:
88
77
// Note that empty string singifies those decided by the OS.
89
78
"SslProtocols": "",
90
-
91
79
//Specifies the TLS cipher suites to be allowed. Not supported on Windows.
// Specifies a thumbprint to load a certificate from the computer's store. Specify "" to not load from the store, and follow configuration from TlsCertificate
99
86
// Default value: ""
100
87
// This must be an X509 certificate. Note: the user needs to have read access, under "All Tasks > Manage Private Keys" in the certificate MMC snap-in. With IIS, the user will be "II USRS\<Application Pool Name>"
101
88
"TlsCertificateStoreThumbprint": "",
102
-
103
89
// Specifies the file containing TLS certificate to use for SMTP if TLS is enabled/requested. Specify "" to use an auto-generated self-signed certificate (then see console output on first startup)
104
90
// Default value: ""
105
91
// This must be an X509 certificate - generally a .CER, .CRT or .PFX file. If using .CER or .CRT, you must provide the private key separately using TlsCertificatePrivateKey.
106
92
"TlsCertificate": "",
107
-
108
93
//Specifies the corresponding private key file for the SMTP TLS certificate if the private key is not part of the TlsCertificate file.
109
94
//This must be in PEM format - generally a .KEY file.
110
95
"TlsCertificatePrivateKey": "",
111
-
112
96
//Specifies the password for the SMTP TLSCertificate/TlsCertificatePrivateKey. Specify "" if the certificate is not password-protected.
113
97
//Default value: ""
114
98
"TlsCertificatePassword": "",
115
-
116
99
// Specify location of the Certificate private .key file for SMTP. Ignored if TlsCertificate is blank.
117
100
//"TlsCertificatePrivateKey": "",
118
101
119
102
// Specifies the port the IMAP server will listen on - allows standard email clients to view/retrieve messages
120
103
"ImapPort": 143,
121
-
122
104
//Disables message HTML sanitisation. Dangerous if your messages are not generated by you
123
105
//and not reflective of how messages might render in most email client.
124
106
//Default value: false
125
107
"DisableMessageSanitisation": false,
126
-
127
108
// True if SMTP and IMAP will require authentication
128
109
// The client will recieve an error if a message is attempted without authentication.
129
110
// See 'Users'
130
111
"AuthenticationRequired": false,
131
-
132
-
133
112
// True if the SMTP server will allow any credentials to be used without checking them again the 'Users'.
134
113
// If false credentials must match one of the users.
135
114
// 'AuthenticationRequired' must be on or the server will not enforce that authentication takes place.
136
115
"SmtpAllowAnyCredentials": true,
137
-
138
116
// Controls which auth mechanisms are allowed for SMTP when connection is not using SSL/TLS
139
117
// Note that real SMTP servers will likely allow zero auth mechanisms until the connection is upgraded using STARTTLS.
// - If message includes QP in the subject then relay to newrecip@test.com, otherwise relay to original recpient
313
-
"AutomaticRelayExpression": "",
314
-
315
-
// Specifies the address used in MAIL FROM when relaying messages. (Sender address in message headers is left unmodified). The sender of each message is used if not specified.
316
-
// Default value: ""
317
-
"SenderAddress": "",
318
-
319
-
// The username for the SMTP server used to relay messages. If \"\" no authentication is attempted.
320
-
// Default value: ""
321
-
"Login": "",
322
-
323
-
// The password for the SMTP server used to relay messages
324
-
"Password": ""
325
-
},
326
-
327
-
//Settings used by Rnwood.Smtp4dev.Desktop only
328
-
"DesktopSettings": {
329
-
//True if app will minimise to notification icon.
330
-
"MinimiseToTrayIcon": true
239
+
"RelayOptions": {
240
+
// Sets the name of the SMTP server that will be used to relay messages or \"\" if messages relay should not be allowed
241
+
// Default value: ""
242
+
"SmtpServer": "",
243
+
// Sets the port number for the SMTP server used to relay messages.
244
+
// Default value: 25
245
+
"SmtpPort": 25,
246
+
// Sets the TLS mode when connecting to relay SMTP server
// - If message includes QP in the subject then relay to newrecip@test.com, otherwise relay to original recpient
271
+
"AutomaticRelayExpression": "",
272
+
// Specifies the address used in MAIL FROM when relaying messages. (Sender address in message headers is left unmodified). The sender of each message is used if not specified.
273
+
// Default value: ""
274
+
"SenderAddress": "",
275
+
// The username for the SMTP server used to relay messages. If \"\" no authentication is attempted.
276
+
// Default value: ""
277
+
"Login": "",
278
+
// The password for the SMTP server used to relay messages
0 commit comments