SpamAssassin Perl Issues.

Matus UHLAR - fantomas uhlar at fantomas.sk
Thu Feb 13 14:25:20 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.

>On Thu, 13 Feb 2025 at 09:47, Matus UHLAR - fantomas <uhlar at fantomas.sk> wrote:
>> I once noticed string of error like this, they were caused by currect
>> working directory not being readable by perl process.

On 13.02.25 11:56, Simon B wrote:
>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.

maybe new update of spamassassin reset those permissions, or daily script 
that updates the database was run under incorrect user (e.g. not from cron 
but manually).

-- 
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.
2B|!2B, that's a question!


More information about the amavis-users mailing list