1
Getting domains without DKIM
Question asked by Martin Schaible - 7/11/2023 at 9:14 AM
Unanswered
Hello

I need a list of all domains running without DKIM enabled. 

I could create a script searching for "enable_dkim_signing":false" in the settings file.

Do you have different idea or have already a script for that?

Thanks!

3 Replies

Reply to Thread
2
Zach Sylvester Replied
Employee Post
Hey Martin, 

I don't have any scripts off-hand but this would be easy to make. Here's some sudo code. 
auth_method = auth() # Authenticate
domain_list = list_domains # https://mail.smartertools.com/Documentation/api#/reference/SmarterMail.Web.Controllers.Api.SystemAdminSettingsController/ListDomains/get

for domain in domain_list:
     x = getdomainsettings # https://mail.smartertools.com/Documentation/api#/reference/SmarterMail.Web.Controllers.Api.DomainSettingsController/GetDomainSettings/get

    if ['domainsettings']['enableDkimSigningDomainAdmin'] == False:
    print(domain) 
Thats the general flow. You can follow this template and make this in any language you want. Let me know if you have any questions. 

Thanks, 


Zach Sylvester Software Developer SmarterTools Inc. www.smartertools.com
0
Martin Schaible Replied
Thanks! 

2
kevind Replied
Idea for Enhancement:
Add the DKIM attribute to the "Export Domains to CSV" option on the dashboard.

Reply to Thread