Hello
I am writing an API system integrated with my site on mail manager. When the mail manager adds the domain name, I automatically add the Dns Manager DKIM record, instead of scanning all of this 'plugin?action=a&name=mail_sys&s=get_domains" from this address, I wrote a small addition to the mail_sys_main.py section below, it would be perfect if you add this code in the next Mail Manager update. Thank you
def dkim_value(self, args):
domain = args.domain
file_name = '/etc/opendkim/keys/{0}/default.txt'.format(domain)
if not os.path.exists(file_name): return ''
file_body = public.readFile(file_name).replace(' ', '').replace('\n', '').split('"')
value = file_body[1] + file_body[3]
return public.returnMsg(True, {'dkim' : value})