@@ -396,7 +396,7 @@ sub enable_dkim
396396
397397# Find domains that we can enable DKIM for (those with mail and DNS)
398398&$first_print ($text {' dkim_domains' });
399- my @alldoms = &list_visible_domains ();
399+ my @alldoms = &list_domains ();
400400my @doms = grep { &has_dkim_domain($_ , $dkim ) } @alldoms ;
401401if (@doms && @{$dkim -> {' extra' }}) {
402402 &$second_print (&text(' dkim_founddomains3' , scalar (@doms ),
@@ -654,7 +654,7 @@ sub enable_dkim
654654# Remove from domains that didn't get the DNS records added
655655my %dnsdoms = map { $_ -> {' id' }, $_ } @dnsdoms ;
656656my @exdoms = grep { !$dnsdoms {$_ -> {' id' }} && $_ -> {' dns' } &&
657- !©_alias_records($_ ) } &list_visible_domains ();
657+ !©_alias_records($_ ) } &list_domains ();
658658if (@exdoms ) {
659659 &remove_dkim_dns_records(\@exdoms , $dkim );
660660 }
@@ -958,7 +958,7 @@ sub update_dkim_domains
958958 }
959959
960960# Enable DKIM for all domains
961- my @doms = grep { &has_dkim_domain($_ , $dkim ) } &list_visible_domains ();
961+ my @doms = grep { &has_dkim_domain($_ , $dkim ) } &list_domains ();
962962if (($action eq ' setup' || $action eq ' modify' )) {
963963 push (@doms , $d );
964964 }
0 commit comments