Cron amavis присихует

Стали на почту приходить сообщения с таким заголовком: 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::PerMsgStatus" 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::PerMsgStatus" 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::PerMsgStatus" at (eval 1157) line 784.
 )
 rules: failed to run T_SPF_HELO_TEMPERROR test, skipping:
 (Can't locate object method "check_for_spf_helo_temperror" via package "Mail::SpamAssassin::PerMsgStatus" at (eval 1157) line 1129.
 )

Проблема решается следующим образом:

  1. В папке /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
  2. cd /usr/share/perl5/Mail/SpamAssassin/Plugin
  3. patch -p0 SPF.pm < /tmp/patch1.patch, где patch1.patch ваш файл
  4. patch -p0 SPF.pm < /tmp/patch2.patch
  5. patch -p0 SPF.pm < /tmp/patch3.patch
  6. На всякий пожарный рестартуем amavis: service amavis restart