Hi all! Recently, when checking the "amavis" email account of my mail server, I found several emails from the following cron jobs:
------------------------------------------------------------------------- # cat /etc/cron.d/amavisd-new # # SpamAssassin maintenance for amavisd-new # # m h dom mon dow user command 18 */3 * * * amavis test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync 24 1 * * * amavis test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-clean ------------------------------------------------------------------------- Both jobs seems to fail. What catches my attention is that emails with errors always occur at the same times. For the first job, at 15.18 GMT-3; and for the second job, at 01.24 GMT-3. Well, the second job is always running at the same time, although the first job is executed at regular intervals of three hours and the error always occurs at the same time (15.18 GMT-3). Emails from both jobs seems to suggest the same kind of error: ------------------------------------------------------------------------- bayes: unknown packing format for bayes db, please re-learn: 86 at /usr/share/perl5/Mail/SpamAssassin/BayesStore/DBM.pm line 1926. bayes: unknown packing format for bayes db, please re-learn: 86 at /usr/share/perl5/Mail/SpamAssassin/BayesStore/DBM.pm line 1926. bayes: unknown packing format for bayes db, please re-learn: 86 at /usr/share/perl5/Mail/SpamAssassin/BayesStore/DBM.pm line 1926. bayes: unknown packing format for bayes db, please re-learn: 86 at /usr/share/perl5/Mail/SpamAssassin/BayesStore/DBM.pm line 1926. ------------------------------------------------------------------------- I took a look on the lines mentioned, although I am not very clear what may be the cause of this error: ------------------------------------------------------------------------- 1909 if (($packed & FORMAT_FLAG) == ONE_BYTE_FORMAT) { 1910 return (($packed & ONE_BYTE_SSS_BITS) >> 3, 1911 $packed & ONE_BYTE_HHH_BITS, 1912 $atime || 0); 1913 } 1914 elsif (($packed & FORMAT_FLAG) == TWO_LONGS_FORMAT) { 1915 my ($packed, $ts, $th, $atime); 1916 if ($self->{db_version} >= 1) { 1917 ($packed, $ts, $th, $atime) = unpack("CVVV", $value); 1918 } 1919 elsif ($self->{db_version} == 0) { 1920 ($packed, $ts, $th, $atime) = unpack("CLLS", $value); 1921 } 1922 return ($ts || 0, $th || 0, $atime || 0); 1923 } 1924 # other formats would go here... 1925 else { 1926 warn "bayes: unknown packing format for bayes db, please re-learn: $packed"; 1927 return (0, 0, 0); 1928 } 1929 } ------------------------------------------------------------------------- Has anyone experienced something like this? Thanks in advance. Kinds regards, Daniel