Bug 2316684

Summary: Request for packaging of Perl module Mail::DMARC::PurePerl
Product: [Fedora] Fedora Reporter: thom.jeera <thom.jeera>
Component: spamassassinAssignee: Kevin Fenzi <kevin>
Status: MODIFIED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: brianr, iarnell, jskarvad, kasal, kevin, nb, pavel, perl-devel, ppisar, rhughes, spotrh
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard: futurefeature
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-20 19:58:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description thom.jeera@proton.me 2024-10-05 15:23:58 UTC
spamassassin DMARC plugin (Mail::SpamAssassin::Plugin::DMARC, one of the default plugins) requires this module.

Error messages (reduced):

Oct  5 16:20:09.892 [1302135] dbg: plugin: loading Mail::SpamAssassin::Plugin::DMARC from @INC
...
Oct  5 16:20:11.810 [1302135] dbg: DMARC: cannot load Mail::DMARC::PurePerl: module: Can't locate Mail/DMARC/PurePerl.pm in @INC (you may need to install the Mail::DMARC::PurePerl module) ...
Oct  5 16:20:11.810 [1302135] dbg: DMARC: Mail::DMARC::PurePerl is required for DMARC checks, DMARC checks disabled


Reproducible: Always

Comment 1 Petr Pisar 2024-10-07 10:54:15 UTC
Mail::DMARC::PurePerl is a dependency for an optional feature:

sub _check_dmarc {
  my ($self, $pms, $name) = @_;

  return unless $pms->is_dns_available();

  # Load DMARC module
  if (!exists $self->{has_mail_dmarc}) {
    my $eval_stat;
    eval {
      require Mail::DMARC::PurePerl;
    } or do {
      $eval_stat = $@ ne '' ? $@ : "errno=$!";  chomp $eval_stat;
    };
    if (!defined($eval_stat)) {
      dbg("using Mail::DMARC::PurePerl for DMARC checks");
      $self->{has_mail_dmarc} = 1;
    } else {
      dbg("cannot load Mail::DMARC::PurePerl: module: $eval_stat");
      dbg("Mail::DMARC::PurePerl is required for DMARC checks, DMARC checks disabled");
      $self->{has_mail_dmarc} = undef;
    }
  }

Comment 2 Aoife Moloney 2025-04-28 13:56:15 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 Aoife Moloney 2025-05-20 19:58:45 UTC
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13.

Fedora Linux 40 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 4 Kevin Fenzi 2025-05-20 21:32:35 UTC
I never got to this, but I hope to someday!

Help welcome.

Comment 5 Petr Pisar 2025-05-21 07:18:40 UTC
I will look at it.

Comment 6 Petr Pisar 2025-05-21 13:00:42 UTC
Package review in bug #2367781.

Comment 7 Kevin Fenzi 2026-01-03 19:07:35 UTC
This was in a while back. Will add the dep here...

Comment 8 Fedora Update System 2026-01-03 19:23:07 UTC
FEDORA-2026-f5b49b448f (spamassassin-4.0.2-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-f5b49b448f

Comment 9 Kevin Fenzi 2026-01-03 19:33:46 UTC
Except... wow... it adds about 93 packages here. ;( 

Transaction Summary:                                                                              
 Installing:        93 packages                                                                   
 Upgrading:          1 package                                                                    
 Replacing:          1 package

Not sure we want that...

Comment 10 Petr Pisar 2026-01-07 14:41:06 UTC
It's an optional feature. It should Recommend, not Require. And it should be a dependency on "perl(Mail::DMARC::PurePerl)". Not on "perl(Mail::DMARC)".

Comment 11 Kevin Fenzi 2026-01-10 19:57:31 UTC
Ah, missed the PurePerl thing there. ;( 

I can make it Recommends, but not sure how much practical change that is. It will still install it by default.