mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-28 01:04:05 +00:00
Fix #1129
This commit is contained in:
parent
8f3ec33591
commit
64b3e04d3f
1 changed files with 8 additions and 4 deletions
|
@ -14,16 +14,20 @@ class SMTP extends NotificationProvider {
|
||||||
secure: notification.smtpSecure,
|
secure: notification.smtpSecure,
|
||||||
tls: {
|
tls: {
|
||||||
rejectUnauthorized: notification.smtpIgnoreTLSError || false,
|
rejectUnauthorized: notification.smtpIgnoreTLSError || false,
|
||||||
},
|
}
|
||||||
dkim: {
|
};
|
||||||
|
|
||||||
|
// Fix #1129
|
||||||
|
if (notification.smtpDkimDomain) {
|
||||||
|
config.dkim = {
|
||||||
domainName: notification.smtpDkimDomain,
|
domainName: notification.smtpDkimDomain,
|
||||||
keySelector: notification.smtpDkimKeySelector,
|
keySelector: notification.smtpDkimKeySelector,
|
||||||
privateKey: notification.smtpDkimPrivateKey,
|
privateKey: notification.smtpDkimPrivateKey,
|
||||||
hashAlgo: notification.smtpDkimHashAlgo,
|
hashAlgo: notification.smtpDkimHashAlgo,
|
||||||
headerFieldNames: notification.smtpDkimheaderFieldNames,
|
headerFieldNames: notification.smtpDkimheaderFieldNames,
|
||||||
skipFields: notification.smtpDkimskipFields,
|
skipFields: notification.smtpDkimskipFields,
|
||||||
}
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
// Should fix the issue in https://github.com/louislam/uptime-kuma/issues/26#issuecomment-896373904
|
// Should fix the issue in https://github.com/louislam/uptime-kuma/issues/26#issuecomment-896373904
|
||||||
if (notification.smtpUsername || notification.smtpPassword) {
|
if (notification.smtpUsername || notification.smtpPassword) {
|
||||||
|
|
Loading…
Reference in a new issue