Initial commit: WpywMail 自建邮件系统:.NET 8 原生 SMTP/IMAP 服务端(DKIM 签名、SPF/DKIM/DMARC 入站校验、SQLite 存储、完整账号体系)、Node 服务端、WinUI 3 客户端与 Web 前端

This commit is contained in:
WpyQwq
2026-09-19 11:19:40 +08:00
commit b8814a7615
84 changed files with 21197 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
{
"Domain": "wpy.email",
"Hostname": "mail.example.com",
"HttpPrefix": "http://127.0.0.1:8787/",
"SmtpPort": 25,
"SubmissionPort": 587,
"DataDirectory": "C:\\WpywMailData",
"AdminEmail": "[email protected]",
"AdminPassword": "replace-with-a-long-password",
"TlsCertificatePath": "C:\\WpywMailData\\certs\\mail.example.com.pfx",
"TlsCertificatePassword": "replace-with-certificate-password",
"DeliveryMode": "direct",
"DirectDelivery": {
"ConnectionTimeoutSeconds": 30,
"CommandTimeoutSeconds": 30,
"DnsTimeoutSeconds": 5,
"OpportunisticStartTls": true,
"RequireStartTls": false,
"DnsServer": "",
"HeloName": ""
},
"Relay": {
"Host": "",
"Port": 587,
"User": "",
"Password": "",
"EnableSsl": true
},
"Retry": {
"MaxAttempts": 12,
"InitialDelaySeconds": 60,
"MaxDelaySeconds": 3600,
"RetryOnPermanentFailure": true,
"MaxAttemptsForPermanent": 3,
"SendBounceNotification": true
},
"Dkim": {
"Enabled": true,
"Selector": "mail",
"SigningDomain": "",
"PrivateKeyPath": "",
"Headers": [
"From",
"To",
"Subject",
"Date",
"Message-ID",
"MIME-Version",
"Content-Type",
"Content-Transfer-Encoding"
]
},
"Api": {
"SessionDays": 30,
"CorsOrigin": "*",
"LongPollSeconds": 25
},
"Smtp": {
"MaxMessageBytes": 26214400,
"AdvertiseStartTls": true,
"AllowAuthOnInbound": false,
"AddReceivedHeader": true,
"AuthFailuresBeforeBan": 8,
"BanMinutes": 15,
"EnforceSenderMatch": true
}
}