I recently upgraded to perl 5.8, and my my system was no longer delivering mail.. I traced it to qmail-scanner.. After some experimentation, it seems downgrading to perl 5.6.1 allows it to work again. After some discussion on #gentoo-perl, it seems that they have downgraded back to 5.6.1. Someone should check that qmail-scanner works again for when people go to 5.8..
Well it is very serious since its deleting mail :( 11/01/2003 15:58:01:4650: d_m: finished /usr/bin/reformime -x/var/spool/qmailscan/anubis10422970814234650/ [1042297081.11397] 11/01/2003 15:58:01:4650: d_m: Checking all attachments to see if they're MS-TNEF 11/01/2003 15:58:01:4650: d_m: is /var/spool/qmailscan/anubis10422970814234650/1042297081.9021-0.anubis is a TNEF file?: 256 [1042297081.12244] 11/01/2003 15:58:01:4650: d_m: Manually unpack any zip files as some virus scanners don't do zip under Unix! 11/01/2003 15:58:01:4650: d_m: unpacking message took 0.032386 seconds 11/01/2003 15:58:01:4650: unsetting QMAILQUEUE env var 11/01/2003 15:58:01:4650: g_e_h: no sender and no recips. 11/01/2003 15:58:01:4650: cleanup: /bin/rm -rf /var/spool/qmailscan/anubis10422970814234650/ /var/spool/qmailscan/working/new/anubis10422970814234650
A quick hack can make it work again: replace the line open(SOUT,"<&STDOUT")||&tempfail("cannot dup fd 0 - $!"); with open(SOUT,"<&1")||&tempfail("cannot dup fd 0 - $!"); this works or maybe an upgrade to 1.15 (Haven't tried this one)
Raker - do you know if 1.15 solves this problem? (I don't run qmail on this end - was never smart enough to get it to not bounce all of my mail on receipt)
qmail-scanner-1.15 does support perl 5.8
qmail-scanner-1.15 has been added to portage.