Subject: Bug#964428: Cron job returns error everytime it is run.

From: Nikolai Lusan <[email-masked]>
Date: Tue, 07 Jul 2020 15:43:09 +1000

Package: amavisd-new
Version: 1:2.11.1-2
Severity: normal

Every time the cron job runs it errors and I get an mail with the following text:

	Argument "1.20200513.1" isn't numeric in numeric ge (>=) at /usr/share/perl5/Mail/SpamAssassin/Plugin/DKIM.pm line 686.
	Argument "1.20200513.1" isn't numeric in numeric ge (>=) at /usr/share/perl5/Mail/SpamAssassin/Plugin/DKIM.pm line 809.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages amavisd-new depends on:
ii  adduser                    3.118
ii  debconf [debconf-2.0]      1.5.74
ii  file                       1:5.38-5
ii  init-system-helpers        1.58
pn  libarchive-tar-perl        <none>
ii  libarchive-zip-perl        1.68-1
ii  libberkeleydb-perl         0.63-1
ii  libconvert-tnef-perl       0.18-1
ii  libconvert-uulib-perl      1:1.5~dfsg-1+b2
pn  libdigest-md5-perl         <none>
ii  libio-stringy-perl         2.111-3
ii  libmail-dkim-perl          1.20200513.1-1
ii  libmailtools-perl          2.21-1
pn  libmime-base64-perl        <none>
ii  libmime-tools-perl         5.509-1
ii  libnet-libidn-perl         0.12.ds-3+b2
ii  libnet-server-perl         2.009-2
ii  libunix-syslog-perl        1.1-3+b2
ii  lsb-base                   11.1.0
ii  pax                        1:20190825-1
ii  perl [libtime-hires-perl]  5.30.3-4

Versions of packages amavisd-new recommends:
pn  altermime             <none>
ii  libnet-patricia-perl  1.22-1+b6
ii  ripole                0.2.0+20081101.0215-4

Versions of packages amavisd-new suggests:
ii  apt-listchanges      3.22
ii  arj                  3.10.22-23
ii  cabextract           1.9-3
pn  clamav               <none>
ii  clamav-daemon        0.102.3+dfsg-1
ii  cpio                 2.13+dfsg-2
pn  dspam                <none>
ii  lhasa                0.3.1-3
pn  libauthen-sasl-perl  <none>
ii  libdbi-perl          1.643-2
ii  libmail-dkim-perl    1.20200513.1-1
ii  libnet-ldap-perl     1:0.6600+dfsg-1
pn  libsnmp-perl         <none>
pn  libzeromq-perl       <none>
ii  lzop                 1.04-1
ii  nomarch              1.4-3+b2
ii  p7zip                16.02+dfsg-7
pn  rpm                  <none>
ii  spamassassin         3.4.4-1
ii  unrar                1:5.6.6-2

-- Configuration Files:
/etc/amavis/conf.d/05-node_id changed:
use strict;
$myhostname = "lutsk.lusan.id.au";
1;  # ensure a defined return

/etc/amavis/conf.d/15-content_filter_mode changed:
use strict;
@bypass_virus_checks_maps = (
   \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);
@bypass_spam_checks_maps = (
   \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);
1;  # ensure a defined return

/etc/amavis/conf.d/20-debian_defaults changed:
use strict;
$QUARANTINEDIR = "$MYHOME/virusmails";
$quarantine_subdir_levels = 1; # enable quarantine dir hashing
$log_recip_templ = undef;    # disable by-recipient level-0 log entries
$DO_SYSLOG = 1;              # log via syslogd (preferred)
$syslog_ident = 'amavis';    # syslog ident tag, prepended to all messages
$syslog_facility = 'mail';
$syslog_priority = 'debug';  # switch to info to drop debug output, etc
$enable_db = 1;              # enable use of BerkeleyDB/libdb (SNMP and nanny)
$enable_global_cache = 1;    # enable use of libdb-based cache if $enable_db=1
$inet_socket_port = 10024;   # default listening socket
$sa_spam_subject_tag = '***SPAM*** ';
$sa_tag_level_deflt  = -9999;  # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 1.0; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 5.0; # triggers spam evasive actions
$sa_dsn_cutoff_level = 10;   # spam level beyond which a DSN is not sent
$sa_mail_body_size_limit = 200*1024; # don't waste time on SA if mail is larger
$sa_local_tests_only = 0;    # only tests which do not require internet access?
$MAXLEVELS = 14;
$MAXFILES = 1500;
$MIN_EXPANSION_QUOTA =      100*1024;  # bytes
$MAX_EXPANSION_QUOTA = 300*1024*1024;  # bytes
$final_virus_destiny      = D_PASS;  # (data not lost, see virus quarantine)
$final_banned_destiny     = D_PASS;   # D_REJECT when front-end MTA
$final_spam_destiny       = D_PASS;
$final_bad_header_destiny = D_PASS;     # False-positive prone (for spam)
$enable_dkim_verification = 0; #disabled to prevent warning
$virus_admin = ""; # due to D_DISCARD default
$X_HEADER_LINE = "$myproduct_name at $mydomain";
@viruses_that_fake_sender_maps = (new_RE(
  [qr'\bEICAR\b'i => 0],            # av test pattern name
  [qr/.*/ => 1],  # true for everything else
));
@keep_decoded_original_maps = (new_RE(
  qr'^MAIL-UNDECIPHERABLE$', # recheck full mail if it contains undecipherables
  qr'^(ASCII(?! cpio)|text|uuencoded|xxencoded|binhex)'i,
));
$banned_filename_re = new_RE(
  # block certain double extensions anywhere in the base name
  qr'\.[^./]*\.(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)\.?$'i,
  qr'\{[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\}?$'i, # Windows Class ID CLSID, strict
  qr'^application/x-msdownload$'i,                  # block these MIME types
  qr'^application/x-msdos-program$'i,
  qr'^application/hta$'i,
  qr'.\.(exe|vbs|pif|scr|bat|cmd|com|cpl)$'i, # banned extension - basic
  qr'^\.(exe-ms)$',                       # banned file(1) types
);
@score_sender_maps = ({ # a by-recipient hash lookup table,
                        # results from all matching recipient tables are summed
  ## site-wide opinions about senders (the '.' matches any recipient)
  '.' => [  # the _first_ matching sender determines the score boost
   new_RE(  # regexp-type lookup table, just happens to be all soft-blacklist
    [qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou)@'i         => 5.0],
    [qr'^(greatcasino|investments|lose_weight_today|market\.alert)@'i=> 5.0],
    [qr'^(money2you|MyGreenCard|new\.tld\.registry|opt-out|opt-in)@'i=> 5.0],
    [qr'^(optin|saveonlsmoking2002k|specialoffer|specialoffers)@'i   => 5.0],
    [qr'^(stockalert|stopsnoring|wantsome|workathome|yesitsfree)@'i  => 5.0],
    [qr'^(your_friend|greatoffers)@'i                                => 5.0],
    [qr'^(inkjetplanet|marketopt|MakeMoney)\d*@'i                    => 5.0],
   ),
   { # a hash-type lookup table (associative array)
     [email-masked]'                        => -3.0,
     [email-masked]'              => -3.0,
     [email-masked]'                    => -3.0,
     [email-masked]'                  => -3.0,
     #'securityfocus.com'                      => -3.0,
     [email-masked]'       => -3.0,
     [email-masked]'      => -3.0,
     [email-masked]'      => -3.0,
     [email-masked]'=> -3.0,
     [email-masked]' => -3.0,
     #'spamassassin.apache.org'                => -3.0,
     [email-masked]'   => -3.0,
     [email-masked]'        => -3.0,
     [email-masked]'     => -3.0,
     [email-masked]'   => -3.0,
     [email-masked]' => -3.0,
     [email-masked]'                => -3.0,
     [email-masked]'               => -3.0,
     [email-masked]'                  => -3.0,
     [email-masked]'          => -3.0,
     [email-masked]'           => -3.0,
     [email-masked]'       => -3.0,
     [email-masked]'          => -3.0,
     [email-masked]'            => -3.0,
     [email-masked]'            => -3.0,
     [email-masked]'                => -5.0,
     [email-masked]'           => -3.0,
     #'returns.groups.yahoo.com'               => -3.0,
     [email-masked]'           => -3.0,
     #lc([email-masked]')    => -3.0,
     #lc([email-masked]') => -5.0,
     # soft-blacklisting (positive score)
     [email-masked]'                     =>  3.0,
     #'.example.net'                           =>  1.0,
   },
  ],  # end of site-wide tables
});
1;  # ensure a defined return

/etc/amavis/conf.d/50-user changed:
use strict;
@local_domains_acl = ( "." );
$sa_tag_level_deflt  = -9999; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 5.0;  # add 'spam detected' headers at that level
$sa_kill_level_deflt = 5.0;  # triggers spam evasive actions (e.g. blocks mail)
$sa_spam_subject_tag = '**Spam**';
$clean_quarantine_to      = undef;      # local quarantine
$virus_quarantine_to      = undef;      # traditional local quarantine
$banned_quarantine_to     = undef;      # local quarantine
$bad_header_quarantine_to = undef;      # local quarantine
$spam_quarantine_to       = undef;      # local quarantine
$allowed_added_header_fields{lc('X-Spam-Status')} = 1;
$allowed_added_header_fields{lc('X-Spam-Report')} = 1;
1;  # ensure a defined return

-- no debconf information