Стали на почту приходить сообщения с таким заголовком: Cron <amavis@mail> test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync
rules: failed to run T_SPF_HELO_PERMERROR test, skipping: (Can't locate object method "check_for_spf_helo_permerror" via package "Mail::SpamAssassin::PerM sgStatus" at (eval 1157) line 19. ) rules: failed to run T_SPF_TEMPERROR test, skipping: (Can't locate object method "check_for_spf_temperror" via package "Mail::SpamAssassin::PerM sgStatus" at (eval 1157) line 614. ) rules: failed to run T_SPF_PERMERROR test, skipping: (Can't locate object method "check_for_spf_permerror" via package "Mail::SpamAssassin::PerM sgStatus" at (eval 1157) line 784. ) rules: failed to run T_SPF_HELO_TEMPERROR test, skipping: (Can't locate object method "check_for_spf_helo_tempe rror" via package "Mail::SpamAssassin::PerM sgStatus" at (eval 1157) line 1129. )
Проблема решается следующим образом:
- В папке /temp создаем файлы с таким содержанием:
patch1: http://svn.apache.org/viewvc/spamassass … view=patch
patch2: http://svn.apache.org/viewvc/spamassass … view=patch
patch3: http://svn.apache.org/viewvc/spamassass … view=patch - cd /usr/share/perl5/Mail/SpamAssassin/Plugin
- patch -p0 SPF.pm < /tmp/patch1.patch, где patch1.patch ваш файл
- patch -p0 SPF.pm < /tmp/patch2.patch
- patch -p0 SPF.pm < /tmp/patch3.patch
- На всякий пожарный рестартуем amavis: service amavis restart