I'm trying to add the Perl module :
Code: Select all
Mail::DMARC
Code: Select all
zimbra@mail:~ # zmcontrol -v
Release 8.8.15.GA.4179.UBUNTU20.64 UBUNTU20_64 FOSS edition, Patch 8.8.15_P39.
Code: Select all
zimbra@mail:~ # uname -a
Linux mail 5.4.0-149-generic #166-Ubuntu SMP Tue Apr 18 16:51:45 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
[...]
eval `/usr/bin/perl -V:archname`
PERLLIB=/opt/zimbra/common/lib/perl5/$archname:/opt/zimbra/common/lib/perl5
export PERLLIB
PERL5LIB=$PERLLIB
export PERL5LIB
[...]
Good configuration to add to .bashrc file (modification Sunday 4 Juin 2023 at 19h p.m GMT+2) :
Code: Select all
PERL_LOCAL_LIB_ROOT=$PERL5LIB; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/opt/zimbra/common\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/opt/zimbra/common"; export PERL_MM_OPT;
Code: Select all
/etc/init.d/zimbra stop
chown -R zimbra:zimbra /opt/zimbra
Code: Select all
apt install make build-essential gcc
Code: Select all
cpan -i Mail::DMARC
The Perl version is :
Code: Select all
zimbra@mail:~ # which perl
/usr/bin/perl
zimbra@mail:~ # perl -v
This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-linux-gnu-thread-multi
(with 57 registered patches, see perl -V for more detail)
Copyright 1987-2019, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Code: Select all
zimbra@mail:~ $ perl -V
[....]
Compiled at May 23 2023 17:17:48
%ENV:
PERL5LIB="/opt/zimbra/common/lib/perl5/x86_64-linux-gnu-thread-multi:/opt/zimbra/common/lib/perl5"
PERLLIB="/opt/zimbra/common/lib/perl5/x86_64-linux-gnu-thread-multi:/opt/zimbra/common/lib/perl5"
PERL_LOCAL_LIB_ROOT="/opt/zimbra/common/lib/perl5/x86_64-linux-gnu-thread-multi:/opt/zimbra/common/lib/perl5"
PERL_MB_OPT="--install_base "/opt/zimbra/common""
PERL_MM_OPT="INSTALL_BASE=/opt/zimbra/common"
@INC:
/opt/zimbra/common/lib/perl5/x86_64-linux-gnu-thread-multi
/opt/zimbra/common/lib/perl5/x86_64-linux-gnu-thread-multi
/opt/zimbra/common/lib/perl5
/etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.30.0
/usr/local/share/perl/5.30.0
/usr/lib/x86_64-linux-gnu/perl5/5.30
/usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl/5.30
/usr/share/perl/5.30
/usr/local/lib/site_perl
/usr/lib/x86_64-linux-gnu/perl-base
Code: Select all
cpan -i IO::Compress::Gzip --> Error: Compress::Raw::Zlib version 2.204 required--this is only version 2.103 at /opt/zimbra/.cpan/build/IO-Compress-2.204-0/blib/lib/Compress/Zlib.pm line 11
cpan -i IO::Compress::Zip --> Error: Compress::Raw::Zlib version 2.204 required--this is only version 2.103 at /opt/zimbra/.cpan/build/IO-Compress-2.204-1/blib/lib/Compress/Zlib.pm line 11.
cpan -i IO::Uncompress::Gunzip --> Error: Compress::Raw::Zlib version 2.204 required--this is only version 2.103 at /opt/zimbra/.cpan/build/IO-Compress-2.204-2/blib/lib/Compress/Zlib.pm line 11.
cpan -i IO::Uncompress::Unzip --> Error: Compress::Raw::Zlib version 2.204 required--this is only version 2.103 at /opt/zimbra/.cpan/build/IO-Compress-2.204-2/blib/lib/Compress/Zlib.pm line 11.
If a charitable soul wants to try with "me"

THANKS.Adding comment to 31 May :
I think a possible solution would be to upgrade the perl version to 5.36.1 while keeping the "zimbra perl directory configuration"?
How to do ? I'm in a test environment, it's to advance the community, no risk.
- Either starting from the Perl sources: https://www.cpan.org/src/README.html
What would be the best way to proceed ?
- Or using another method? https://perldoc.perl.org/perlhack#GETTI ... ERL-SOURCE
Who is an experienced Perl user and could give me the solution ?
Cheers,
Romain
For French people, I opened a discussion topic here, but it's not a forum dedicated to Zimbra.
If you want to analyze your DMARC reports, my DMARC report viewing page that I receive from the recipient mail servers, with my PHP script that you can to use.