Commit e7adc2f6 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

[-change] DMARC: Net::DNS is required when dmarc_protection.mode is neither...

[-change] DMARC: Net::DNS is required when dmarc_protection.mode is neither all, dkim_signature, domain_regex nor none.
parent 1aa14e39
......@@ -3119,9 +3119,6 @@ sub _getCharset {
sub dmarc_protect {
my $self = shift;
# Net::DNS is optional.
return unless $Net::DNS::VERSION;
my $list = $self->{context};
return unless ref $list eq 'Sympa::List';
......@@ -3326,6 +3323,13 @@ sub _check_dmarc_rr {
my $self = shift;
my $dom = shift;
# Net::DNS is optional.
unless ($Net::DNS::VERSION) {
$log->syslog('err',
'Unable to get DNS RR. Net::DNS required. Install it first');
return 0;
}
$dom =~ s/^.*\@//;
my $list = $self->{context};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment