PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB`#!/usr/local/cpanel/3rdparty/bin/perl # cpanel - scripts/update_sa_config Copyright 2022 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited # This code is designed to be run in the post step of the SpamAssassin RPM install only. use strict; use warnings; use Cpanel::SafeFile (); use Cpanel::Binaries (); if ( $ENV{CPANEL_BASE_INSTALL} ) { print STDERR "“$0” refuses to run during a cPanel installation.\n"; exit(0); } # Put previously unmanaged RPM config files back in place my $config_dir = '/etc/mail/spamassassin/'; foreach my $config (qw/local.cf init.pre v310.pre v312.pre v320.pre v330.pre/) { my $config_orig = $config_dir . $config . '.rpmorig'; next unless ( -e $config_orig ); my $config = $config_dir . $config; print "Restoring $config from its pre-RPM state\n"; unlink $config; chmod 0644, $config_orig; rename( $config_orig, $config ); } # Import GPG keys for sa-update my $saupdate_binary = Cpanel::Binaries::path('sa-update'); my $update_gpg_key = '/etc/mail/spamassassin/sa-update-keys/sa-update-pubkey.txt'; print `$saupdate_binary --import $update_gpg_key 2>&1` if ( -e $update_gpg_key ); # Make sure resource limits are 268435456 if not set. my $block = Cpanel::SafeFile::safeopen( \*SB, '+<', '/etc/mail/spamassassin/local.cf' ); if ( !$block ) { die("Could not edit /etc/mail/spamassassin/local.cf"); } my @local_cf = ; if ( !grep( /ResourceLimits/, @local_cf ) ) { print "Enabled SpamAssassin Resource Limits Plugin\n"; print SB "\nloadplugin Mail::SpamAssassin::Plugin::ResourceLimits\n"; print SB "resource_limit_mem 268435456\n\n"; } #268435456 is required for 3.3.1 or later elsif ( grep( /resource_limit_mem 134217728/, @local_cf ) ) { @local_cf = map { s/resource_limit_mem 134217728/resource_limit_mem 268435456/; $_ } @local_cf; seek( SB, 0, 0 ); print SB join( '', @local_cf ); truncate( SB, tell(SB) ); } Cpanel::SafeFile::safeclose( \*SB, $block );