Hello all, I upgraded my debian (strech to buster) via apt. Since, I have an error to qmail-scanner, I use an old version (1.25-st without setuid fonctionnality) with qmail (compiled and patch, I installed it with the Qmailrocks tutorial) and spamassassin / clamav (installed to apt). I would like reinstall qmail-scanner 1.25-st but I have the same problem, I test install qmail-scanner 2.10-st but I resolve nothing, the same error appared. When I generated the script, I always have this error : Undefined subroutine &main::tolower called at /var/qmail/bin/qmail-scanner-queue.pl line 111. This error is at this part of the file : line 108 : my $descriptive_hdrs=1; line 109 : my $V_HEADER="X-Qmail-Scanner"; line 110 : my($qsmsgid); line 111 : $qsmsgid=tolower("$V_HEADER-message-id"); I don't found anything to this error, if you have any idea ! Thanks a lot. Christophe
From what year is the Perl code in that qmail-scanner-queue.pl file? Guessing by the name of the function, tolower() converts text to lowercase. There is perl function lc which does that, and which seems to be part of at least modern perl. Using Internet Search Engines, it seems other users have also problems with qmail and that same qmail-scanner-queue.pl expression. But the discussions i found were from years 2007 and 2004. The Sourceforrge qmail-scanner page was last updated 2013. I would try to convert to using mail scanner that is still maintained. As to that error, the code that defines function tolower() is missing from your compile. Try grepping the files for that, or if the old working system is still around find out where that system got tolower().
hi guys, just edit it, change all tolower to be lc (lowercase) # vi /var/qmail/bin/qmail-scanner-queue.pl remove -T at the end of the first line, then do this vim syntax for search/replace the command tolower to be lc globally. :%s/tolower/lc/g :x then you can run /var/qmail/bin/qmail-scanner-queue.pl -g