diff --git a/plugins/dkim b/plugins/dkim index 9566c17..762617a 100644 --- a/plugins/dkim +++ b/plugins/dkim @@ -275,7 +275,9 @@ sub get_details { push @data, "selector: " . $dkim->signature->selector if $dkim->signature; push @data, "result: " . $dkim->result_detail if $dkim->result_detail; - foreach my $policy ($dkim->policies) { + my @policies = eval { $dkim->policies }; + + foreach my $policy (@policies) { next if !$policy; push @data, "policy: " . $policy->as_string; push @data, "name: " . $policy->name;