Skip to content

Commit

Permalink
plugins dis/enable
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jan 16, 2025
1 parent 12faff1 commit e2d9a6a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
with:
perl-version: ${{ matrix.perl }}
- run: cpanm --installdeps -n -f .
- run: cpanm --installdeps -n -f Mail::SPF Mail::DMARC Geo::IP ClamAV::Client Redis
- run: cpanm --installdeps -n -f Mail::SPF Mail::DMARC GeoIP2 ClamAV::Client Redis
- run: prove -lv t
2 changes: 1 addition & 1 deletion plugins/dmarc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ sub check_dmarc {
return $self->get_reject( $@ );
};

#$self->log(LOGINFO, "result: " . Dumper( $dmarc ) );
#$self->log(LOGINFO, "result: " . Dumper( $dmarc ) );

my $pol;
eval { $pol = $dmarc->result->published; };
Expand Down
3 changes: 2 additions & 1 deletion plugins/ident/geoip
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ sub load_geoip2 {
warn "Using GeoIP2."
. " ASN data is not currently available using the GeoIP2 module!\n";

eval {
eval {
$self->{_geoip2_city} = GeoIP2::Database::Reader->new(
file => $self->{_args}{db_dir} . '/GeoLite2-City.mmdb',
);
Expand All @@ -206,6 +206,7 @@ sub load_geoip2 {
$self->register_hook('connect', 'geoip2_lookup');
return 1;
}

return;
}

Expand Down
8 changes: 4 additions & 4 deletions t/config/plugins
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ content_log
hosts_allow

# information plugins
ident/geoip
# ident/geoip
ident/p0f /tmp/.p0f_socket version 3
connection_time
fcrdns
Expand All @@ -37,7 +37,7 @@ parse_addr_withhelo
quit_fortune
# tls should load before count_unrecognized_commands
#tls
#earlytalker
# earlytalker
count_unrecognized_commands 4
relay

Expand All @@ -50,7 +50,7 @@ badmailfromto
badrcptto
helo

# sender_permitted_from
sender_permitted_from
greylisting p0f genre,windows db_dir ./t/tmp

#auth/auth_checkpassword checkpw /usr/local/vpopmail/bin/vchkpw true /usr/bin/true
Expand Down Expand Up @@ -87,7 +87,7 @@ spamassassin

# run the clamav virus checking plugin
virus/clamav
virus/clamdscan
# virus/clamdscan

# You must enable a queue plugin - see the options in plugins/queue/ - for example:

Expand Down

0 comments on commit e2d9a6a

Please sign in to comment.