mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
fix dkim: Shouldn’t be different for domain and subdomain (causes issue while sending mail)
This commit is contained in:
@@ -652,6 +652,12 @@ class MailServerManager:
|
||||
return ACLManager.loadError()
|
||||
|
||||
try:
|
||||
|
||||
import tldextract
|
||||
|
||||
extractDomain = tldextract.extract(domainName)
|
||||
domainName = extractDomain.domain + '.' + extractDomain.suffix
|
||||
|
||||
path = "/etc/opendkim/keys/" + domainName + "/default.txt"
|
||||
command = "sudo cat " + path
|
||||
output = ProcessUtilities.outputExecutioner(command, 'opendkim')
|
||||
|
||||
Reference in New Issue
Block a user