MailSharp / MailSharp.WebManager / mailsharp.json
Code · 208 lines · 4054 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{
	"IpGroups": [
		{
			"Name": "LocalNetwork",
			"Priority": 1,
			"Cidr": "127.0.0.1/32",
			"Expires": null,
			"Access": {
				"Smtp": true,
				"Pop3": true,
				"Imap": true,
				"AntiSpam": false,
				"AntiVirus": false,
				"RequireSslTlsForAuth": false
			},
			"EmailFlows": {
				"LocalToLocal": {
					"Allowed": true,
					"RequireAuth": false
				},
				"LocalToExternal": {
					"Allowed": true,
					"RequireAuth": false
				},
				"ExternalToLocal": {
					"Allowed": true,
					"RequireAuth": false
				},
				"ExternalToExternal": {
					"Allowed": true,
					"RequireAuth": false
				}
			}
		},
		{
			"Name": "TrustedLan",
			"Priority": 2,
			"Cidr": "192.168.0.0/16",
			"Expires": "2026-01-01T00:00:00Z",
			"Access": {
				"Smtp": true,
				"Pop3": true,
				"Imap": true,
				"AntiSpam": true,
				"AntiVirus": true,
				"RequireSslTlsForAuth": true
			},
			"EmailFlows": {
				"LocalToLocal": {
					"Allowed": true,
					"RequireAuth": false
				},
				"LocalToExternal": {
					"Allowed": true,
					"RequireAuth": false
				},
				"ExternalToLocal": {
					"Allowed": true,
					"RequireAuth": false
				},
				"ExternalToExternal": {
					"Allowed": true,
					"RequireAuth": true
				}
			}
		},
		{
			"Name": "Remote",
			"Priority": 3,
			"Cidr": "0.0.0.0/0",
			"Expires": null,
			"Access": {
				"Smtp": true,
				"Pop3": false,
				"Imap": true,
				"AntiSpam": true,
				"AntiVirus": true,
				"RequireSslTlsForAuth": true
			},
			"EmailFlows": {
				"LocalToLocal": {
					"Allowed": false,
					"RequireAuth": true
				},
				"LocalToExternal": {
					"Allowed": false,
					"RequireAuth": true
				},
				"ExternalToLocal": {
					"Allowed": true,
					"RequireAuth": false
				},
				"ExternalToExternal": {
					"Allowed": false,
					"RequireAuth": true
				}
			}
		}
	],
	"MaintenanceUsers": [
		{
			"UserName": "admin",
			"Password": "admin",
			"Role": "Administrator",
			"ExpireDays": 365
		}
	],
	"SmtpSettings": {
		"Ports": [
			{
				"Host": "0.0.0.0",
				"Port": 25,
				"Security": "StartTlsOptional"
			},
			{
				"Host": "0.0.0.0",
				"Port": 587,
				"Security": "StartTls"
			},
			{
				"Host": "0.0.0.0",
				"Port": 465,
				"Security": "Tls"
			}
		],
		"BackLog": 100,
		"MaxMessageSize": 10485760,
		"CommandTimeoutSeconds": 60,
		"EmlStoragePath": "Emails",
		"EnableVrfy": false,
		"EnableExpn": false,
		"CertificatePath": "certificate.pfx",
		"CertificatePassword": "PFXPassword",
		"RequireDkim": false,
		"DnsResolvers": [ "8.8.8.8", "8.8.4.4" ],
		"MaxConnections": 0,
		"MaxMessageSizeKb": 20480,
		"RetryCount": 4,
		"RetryIntervalMinutes": 60,
		"LocalHostName": "",
		"RelayEnabled": false,
		"RelayHost": "",
		"RelayPort": 25,
		"RelayRequiresAuth": false,
		"RelayUsername": "",
		"RelayPassword": "",
		"RelayConnectionSecurity": "None",
		"RelayQueuePath": "RelayQueue",
		"AllowPlainTextAuth": false,
		"AllowEmptySender": true,
		"AllowBadLineEndings": true,
		"DisconnectOnTooManyInvalidCommands": false,
		"MaxInvalidCommands": 100,
		"MaxRecipientsPerBatch": 100,
		"AddDeliveredToHeader": false,
		"RuleLoopLimit": 5,
		"MaxRecipientHosts": 15
	},
	"Pop3Settings": {
		"Ports": [
			{
				"Host": "0.0.0.0",
				"Port": 110,
				"Security": "None"
			},
			{
				"Host": "0.0.0.0",
				"Port": 995,
				"Security": "Tls"
			}
		],
		"CertificatePath": "certificate.pfx",
		"CertificatePassword": "yourpassword",
		"MaxConnections": 0,
		"WelcomeMessage": ""
	},
	"ImapSettings": {
		"Ports": [
			{
				"Host": "0.0.0.0",
				"Port": 143,
				"Security": "StartTls"
			},
			{
				"Host": "0.0.0.0",
				"Port": 993,
				"Security": "Tls"
			}
		],
		"CertificatePath": "certificate.pfx",
		"CertificatePassword": "yourpassword",
		"MaxConnections": 0,
		"WelcomeMessage": "",
		"PublicFolderName": "# Public",
		"EnableSort": true,
		"EnableQuota": true,
		"EnableIdle": true,
		"EnableAcl": true,
		"HierarchyDelimiter": "."
	},
	"DmarcSettings": {
		"FailOpen": true,
		"RequireDmarc": false
	},
	"MailboxSettings": {
		"StoragePath": "Mailboxes"
	}
}