Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Revision history for Mail-Milter-Authentication

- RBLDNS: Config structure change is now mandatory

[UPDATED Config Items for RBLDNS]
RBLDNS config items MUST be moved under a new rbls key

{{$NEXT}}
- DNS: More consistent error logging on DNS lookup timeouts
- RBLDNS: Config structure change
Expand Down
8 changes: 4 additions & 4 deletions lib/Mail/Milter/Authentication/Handler/RBLDNS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ sub register_metrics {

sub setup_callback {
my ($self) = @_;
my $config = $self->handler_config();
$config = $config->{rbls} if exists $config->{rbls};
my $handler_config = $self->handler_config();
$config = $handler_config->{rbls} // {};
foreach my $rbl ( sort keys $config->%* ) {
my $sanitize_header = $config->{$rbl}->{sanitize_header} // 'yes';
$self->add_header_to_sanitize_list(lc $config->{$rbl}->{add_header}, $sanitize_header eq 'silent') if $config->{$rbl}->{add_header} && $sanitize_header ne 'no';
Expand All @@ -61,8 +61,8 @@ sub setup_callback {

sub connect_callback {
my ( $self, $hostname, $ip ) = @_;
my $config = $self->handler_config();
$config = $config->{rbls} if exists $config->{rbls};
my $handler_config = $self->handler_config();
$config = $handler_config->{rbls} // {};

my @states;

Expand Down