On Thu, 13 Feb 2025 at 09:47, Matus UHLAR - fantomas <uh...@fantomas.sk> wrote: > > 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. >
Hi Matus, Yes, I had already run into, diagnosed and fixed traversing to the perl directories. Finally, the solution seams to have been changing the permissions on /var/lib/spamassassin/4.000000/ from 750 to 755 Which logially makes sense, but does not explain why it was working, and then stopped - so I am curious to see what happens if apt updates the spamassissn package. Cheers. Simon