Package: spamass-milter Version: 0.4.0-1+b1 Severity: normal spamc -u russ...@coker.com.au --max-size=10485760 127.0.0.1 < spam.mbox
The above command will correctly scan a file that's more than 500K in size. spamc -u russ...@coker.com.au 127.0.0.1 --max-size=10485760 < spam.mbox The above command (differing only in the order of 2 parameters) doesn't work, spamc logs "skipped message, greater than max message size (512000 bytes)" to syslog. The man page for spamc doesn't document this, it may be a bug in spamc. execve("/usr/bin/spamc", ["/usr/bin/spamc", "-u", "russ...@coker.com.au", "127.0.0.1", "-s", "10485760"], 0x7ffef748a960 /* 15 vars */) = 0 The above is from stracing spamass-milter, it does what spamc doesn't like and there seems to be no way to stop it. OPTIONS="-u spamass-milter -e -i 127.0.0.1 -r 5 -- -s 10485760" Above is the relevant section of /etc/default/spamass-milter, it seems I only have the option of appending the -s flag to the spamc command-line. One way of dealing with shis would be to add a -s or --max-size option to spamass-milter that causes it to put the -s/--max-size option as the first command-line option to spamc. Email is getting bigger all the time, multi-megabyte spam messages with PDF and MS-Office attachments are quite common. Being unable to scan messages more than 500K in size because of this is a major limitation. I will also file a bug against spamc for it's part of this. -- System Information: Debian Release: 10.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-8-amd64 (SMP w/2 CPU cores) Kernel taint flags: TAINT_WARN 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: SELinux: enabled - Mode: Permissive - Policy name: default Versions of packages spamass-milter depends on: ii adduser 3.118 ii libc6 2.28-10 ii libgcc1 1:8.3.0-6 ii libmilter1.0.1 8.15.2-14~deb10u1 ii libstdc++6 8.3.0-6 ii spamc 3.4.2-1+deb10u2 Versions of packages spamass-milter recommends: ii postfix 3.4.8-0+10debu1 ii spamassassin 3.4.2-1+deb10u2 spamass-milter suggests no packages. -- Configuration Files: /etc/default/spamass-milter changed: OPTIONS="-u spamass-milter -e -i 127.0.0.1 -r 5 -- -s 10485760" -- no debconf information