Qmail-scanner error since upgrade buster

Discussion in 'Server Operation' started by Chris76, Jun 7, 2020.

  1. Chris76

    Chris76 New Member

    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
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    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().
     

Share This Page