diff --git a/Cpanel/Exim/Config.pm b/Cpanel/Exim/Config.pm index 7514969..353ad21 100644 --- a/Cpanel/Exim/Config.pm +++ b/Cpanel/Exim/Config.pm @@ -206,6 +206,7 @@ sub generate_config_file { $ACL_OPTS{'ACL_RBL_WHITELIST'} = '!hosts = ' . join( ' : ', @hostlist ); } } + $ACL_OPTS{'ACL_RBL_WHITELIST'} .= "\n\t\t!domains = +skip_rbl_domains" if -e '/etc/skiprbldomains'; foreach my $aclblock ( keys %ACL_OPTS ) { $CF{'ACLBLOCK'} =~ s/\[\s*\%\s*\Q$aclblock\E\s*\%\s*\]/$ACL_OPTS{$aclblock}/gm; @@ -325,6 +326,8 @@ sub generate_config_file { my @PROVIDEDOPTS; my @CONFIG_OPTS = map { ( !m/^#/ && !m/^\s*$/ ) ? ( m/=/ ? $_ : "$_ = true" ) : () } split( /\n/, Cpanel::LoadFile::loadfile('/usr/local/cpanel/etc/exim/config_options') ); + + push @CONFIG_OPTS, "domainlist skip_rbl_domains = lsearch;/etc/skiprbldomains" if -e '/etc/skiprbldomains'; if ( !-e '/var/cpanel/conserve_memory' ) { push @CONFIG_OPTS, 'perl_at_start = true'; }