Group
Extension

Matches 25

Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Tester.pm ( view source; MetaCPAN )
efix ) = @_;

        return if $milter_pid;

        if ( ! -e $prefix . '/authentication_milter.json' ) {
            die "Could not find config";
        }

        system "cp $prefix/mail-dmarc.in
     my $metrics =  get_metrics( 'tmp/authentication_milter_test_metrics.sock' );
        my $j = JSON::XS->new();

        if ( -e $expected ) {

            open my $InF, '<', $expected;
           
 smtp_process {
    my ( $args ) = @_;

    if ( ! -e $args->{'prefix'} . '/authentication_milter.json' ) {
        die "Could not find config " . $args->{'prefix'};
    }
    if ( ! -e 'data/source/'
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/App/ProcessLog/App/Command/arex.pm ( view source; MetaCPAN )
ON = '4.20250811'; # VERSION
use Mail::Milter::Authentication::App::ProcessLog::App -command;
use JSON::XS;
use Mail::AuthenticationResults 2.20230112;
use Mail::AuthenticationResults::Parser;
use Mai
 $args);
      close $file;
    }
  }
}

sub parse_file($self, $file, $opt, $args) {
  state $j = JSON::XS->new;

  LINE: while (my $line = <$file>) {
    $line =~ s/^.* ARex: //;
    my $parser = Mai
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/DMARC.pm ( view source; MetaCPAN )
> 0,
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'DMARC_metrics' );
    return \@rows;
}

sub is_whitelisted {
    my ( $self ) = @_;
    my $con
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/TLS.pm ( view source; MetaCPAN )
 return {};
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'TLS_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'tls_connect_
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/LocalIP.pm ( view source; MetaCPAN )
 [],
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'LocalIP_metrics' );
    return \@rows;
}

sub is_local_ip_address {
    my ( $self, $ip ) = @_;
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Metric/Grafana.pm ( view source; MetaCPAN )
ON

sub get_json {
    my ( $self, $file ) = @_;
    my $basefile = __FILE__;
    $basefile =~ s/Grafana\.pm$/$file/;
    $basefile .= '.json';
    if ( ! -e $basefile ) {
        die 'json file ' . $
 @Rows, $self->get_json( 'RowThroughput' );
    push @Rows, $self->get_json( 'RowProcesses' );
    push @Rows, $self->get_json( 'RowProcessingTime' );
    push @Rows, $self->get_json( 'RowErrors' );
 
   push @Rows, $self->get_json( 'RowUptime' );

    foreach my $Handler ( sort keys %{ $server->{ 'handler' } } ) {
        my $HandlerObj = $server->{ 'handler' }->{ $Handler };
        if ( $Handler
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/Auth.pm ( view source; MetaCPAN )
 return {};
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'Auth_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'authenticat
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Tester/HandlerTester.pm ( view source; MetaCPAN )
his should contain
all configuration files required for your test, the main authentication_milter.json file
can be overridden by the handler_config option (see below).

This location should, for examp
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/IPRev.pm ( view source; MetaCPAN )
ev',
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'IPRev_metrics' );
    return \@rows;
}

sub _dns_error {
    my ( $self, $type, $data, $error )
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler.pm ( view source; MetaCPAN )
ub get_json {
    my ( $self, $file ) = @_;
    my $basefile = __FILE__;
    $basefile =~ s/Handler\.pm$/Handler\/$file/;
    $basefile .= '.json';
    if ( ! -e $basefile ) {
        die 'json file '
0;
    my $count_allocated = 0;
    my $count_stale = 0;

    my $dequeue_index = {};
    my $j = JSON->new->pretty->canonical->utf8;

    # Build a list of Process IDs
    my $process_ids = {};
    m
$self->add_auth_headers_of_type($type);
    }

    if ($config->{extended_log}) {
        my $j = JSON->new->canonical->utf8;
        $self->dbgout( 'ARex',$j->encode($self->{extended_log}), LOG_INFO 
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Metric.pm ( view source; MetaCPAN )
 }
    print $socket qq{<li>Effective config (<a href="/config/toml">toml</a>/<a href="/config/json">json</a>)</li>} if !$config->{'metric_basic_http'};
    print $socket qq{
    </ul>

    <h2>Metric

    </ul>

    <hr />

 </div>
</body>
    };
        }
        elsif ( $request_uri eq '/config/json' || $request_uri eq '/config' ) {
            if ( $config->{'metric_basic_http'} ) {
           
t $socket "\n";
                my $json = JSON::XS->new();
                $json->canonical();
                $json->pretty();
                print $socket $json->encode( $config );
            }
 
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Config.pm ( view source; MetaCPAN )
# ABSTRACT: Common configuration handling
our $VERSION = '4.20250811'; # VERSION
use English;
use JSON::XS;
use TOML;
use Module::Load;
use Module::Loaded;

use Exporter qw{ import };
our @EXPORT_OK =
"Error parsing config file $file";
    }
    else {
        my $json = JSON::XS->new();
        $json->relaxed(1);
        $data = $json->decode($text)
          || die "Error parsing config file $fil
  $config = load_file( $file . '.toml' );
    }
    else {
        $config = load_file( $file . '.json' );
    }

    my $folder = $PREFIX . '/authentication_milter.d';
    if ( -d $folder ) {
       
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/ReturnOK.pm ( view source; MetaCPAN )
 return {};
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'ReturnOK_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'returno
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/DKIM.pm ( view source; MetaCPAN )
> 0,
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'DKIM_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'dkim_total'
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/Sanitize.pm ( view source; MetaCPAN )
s'],
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'Sanitize_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'sanitiz
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/TrustedIP.pm ( view source; MetaCPAN )
 [],
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'TrustedIP_metrics' );
    return \@rows;
}

sub is_trusted_ip_address {
    my ( $self, $ip_obj
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/PTR.pm ( view source; MetaCPAN )
 return {};
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'PTR_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'ptr_total' =
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/RBLDNS.pm ( view source; MetaCPAN )
}
    }
}

#sub grafana_rows {
#    my ( $self ) = @_;
#    my @rows;
#    push @rows, $self->get_json( 'RBLDNS_metrics' );
#    return \@rows;
#}

sub register_metrics {
    return {
        'rbldns_
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/SenderID.pm ( view source; MetaCPAN )
> 1,
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'SenderID_metrics' );
    return \@rows;
}

sub setup_callback {
    my ( $self ) = @_;
    # Ca
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/ARC.pm ( view source; MetaCPAN )
> 0,
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'ARC_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'arc_total' =

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.