Server IP : 85.214.239.14 / Your IP : 3.22.68.29 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/self/root/proc/2/cwd/proc/self/root/usr/share/perl5/Mail/DMARC/Report/ |
Upload File : |
package Mail::DMARC::Report::Send; use strict; use warnings; our $VERSION = '1.20211209'; use parent 'Mail::DMARC::Base'; use Mail::DMARC::Report::Send::SMTP; use Mail::DMARC::Report::Send::HTTP; sub http { my $self = shift; return $self->{http} if ref $self->{http}; return $self->{http} = Mail::DMARC::Report::Send::HTTP->new(); } sub smtp { my $self = shift; return $self->{smtp} if ref $self->{smtp}; return $self->{smtp} = Mail::DMARC::Report::Send::SMTP->new(); } sub too_big_report { my ( $self, $arg_ref ) = @_; my $OrgName = $self->config->{organization}{org_name}; my $Domain = $self->config->{organization}{domain}; my $ver = $Mail::DMARC::Base::VERSION || ''; # undef in author environ my $uri = $arg_ref->{uri}; my $bytes = $arg_ref->{report_bytes}; my $report_id = $arg_ref->{report_id}; my $rep_domain= $arg_ref->{report_domain}; my $date = $self->smtp->get_timestamp_rfc2822; return <<"EO_TOO_BIG" This is a 'too big' DMARC notice. The aggregate report was NOT delivered. Report-Date: $date Report-Domain: $rep_domain Report-ID: $report_id Report-Size: $bytes Submitter: $Domain Submitting-URI: $uri Submitted by $OrgName Generated with Mail::DMARC $ver EO_TOO_BIG ; } 1; __END__ =pod =head1 NAME Mail::DMARC::Report::Send - report sending dispatch class =head1 VERSION version 1.20211209 =head1 DESCRIPTION Send DMARC reports, via SMTP or HTTP. =head2 Report Sender A report sender needs to: 1. store reports 2. bundle aggregated reports 3. format report in XML 4. gzip the XML 5. deliver report to Author Domain This class and subclasses provide methods used by L<dmarc_send_reports>. =head1 12.2.1 Email L<Mail::DMARC::Report::Send::SMTP> =head1 12.2.2. HTTP L<Mail::DMARC::Report::Send::HTTP> =head1 12.2.3. Other Methods Other registered URI schemes may be explicitly supported in later versions. =head1 AUTHORS =over 4 =item * Matt Simerson <msimerson@cpan.org> =item * Davide Migliavacca <shari@cpan.org> =item * Marc Bradshaw <marc@marcbradshaw.net> =back =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021 by Matt Simerson. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut