SpamAssassin Perl Issues.
Matus UHLAR - fantomas
uhlar at fantomas.sk
Thu Feb 13 09:40:45 CET 2025
On 10.02.25 17:46, Simon B wrote:
>I setup a new Postfix/Amavis/Dovecot Server, and everything was
>working fine with my old configs. To debug a perl script I used cpan
>to install Devel::DebugHooks::Terminal and then sometime later I
>noticed the mails were not going through Amavis.
>Feb 10 15:35:57.116 mail.spamfreeisp.net /usr/sbin/amavisd[2450705]:
>SpamControl: attempting to load scanner SpamAssassin, module
>Amavis::SpamControl::SpamAssassin
>Feb 10 15:35:57.116 mail.spamfreeisp.net /usr/sbin/amavisd[2450705]:
>SpamControl: scanner SpamAssassin, module
>Amavis::SpamControl::SpamAssassin
>fetch_modules: error loading optional module Razor2/Client/Agent.pm:
> Can't locate Getopt/Long.pm: lib/Getopt/Long.pm: Permission denied
>at /usr/share/perl5/Razor2/Client/Agent.pm line 15.
> BEGIN failed--compilation aborted at
>/usr/share/perl5/Razor2/Client/Agent.pm line 15.
> Compilation failed in require at
>/usr/local/share/perl/5.36.0/Amavis/Boot.pm line 77.
I once noticed string of error like this, they were caused by currect
working directory not being readable by perl process.
either one of files/directories:
/
/usr/
/usr/share/
/usr/share/perl5/
/usr/share/perl5/Razor2/
/usr/share/perl5/Razor2/Client/
/usr/share/perl5/Razor2/Client/Agent.pm
is not accessible by amavisd process
(directories need execute permission, files need read permission)
or the curret directory you started amavisd in is not readable by amavisd
effective user.
--
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Enter any 12-digit prime number to continue.
More information about the amavis-users
mailing list