MailScanner problems: No such file or directory at sweep.pl line 429

Will Mc Donald wmcdonald at ORCTEL.CO.UK
Sun Dec 9 13:52:04 GMT 2001


Hi, I'm a newboy to mailscanner and I'm having some trouble getting it
running on one of our mail servers. We're running on Solaris 2.5.1 running
sendmail-8.8.5. This is due to be replaced with a linux box running a more
recent version of sendmail but for the time being that's the setup.

I installed MailScanner-2.60-2, along with all the relevant bits and bobs
listed in the install guide on the website. We're using mcafee as the mail
scanner.

When running mailscanner, on the console I get stuff like...

------------------------------------------------------------------------
cat: cannot open /var/spool/mqueue.in/dfNAA26896
cat: cannot open /var/spool/MailScanner/incoming/NAA26961.header
cat: cannot open /var/spool/mqueue.in/dfNAA26961
Commercial virus checker failed with real error: Can't run commercial
disinfector: No such file or directory at
/usr/local/mailscanner/bin/sweep.pl line 429.
Commercial virus checker failed with real error: Can't run commercial
disinfector: No such file or directory at sweep.pl line 429.
Commercial virus checker failed with real error: Can't run commercial
disinfector: No such file or directory at
/usr/local/mailscanner/bin/sweep.pl line 429.
------------------------------------------------------------------------

And in the syslog, a barrage of messages like...

------------------------------------------------------------------------
Dec  9 13:48:15 relais1 mailscanner[27014]: Cannot parse
/var/spool/MailScanner/incoming/NAA27082.header and
/var/spool/mqueue.in/dfNAA27082, write-open
/var/spool/MailScanner/incoming/NAA27082/logo.gif: No such file or directory
at /usr/local/lib/perl5/site_perl/5.6.1/MIME/Body.pm line
414.
Dec  9 13:48:17 relais1 mailscanner[27114]: Commercial virus checker failed
with real error: Can't run commercial disinfector: No such file or directory
at sweep.pl line 429.
Dec  9 13:48:17 relais1 mailscanner[27101]: Commercial disinfector returned
2304
------------------------------------------------------------------------

I can make all the mail scanner messages from the logs available if it
helps. What's happening seems in some ways similar to the thread from Bruce
Huang

http://makeashorterlink.com/?S1A22673

I'm wondering if the problem could be due to some of the settings in the
config.pm. I know Julian mentions you shouldn't need to modify that but
looking at the locations for

$Config::QuarantineDir        = "$prefix/var/quarantine";
$Config::SrcDir               = "$prefix/var/incoming";

Those two directories need to be kept on the same partition as mqueue and
mqueue.in yes? So would linking $prefix/var/quarantine $prefix/var/incoming
to the real directories in /var/spool/MailScanner help or am I way off the
mark?

Oh, I'm also seeing loads of instances of mailscanner, is that right?

[root at relais1 spool]# ps -efl | grep mail
 8 S     root 27381 27356  0  55 20 609f0000    893 609f01d0 14:00:46 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 26701     1  0  41 20 609f1320    893 609f14f0 13:20:29 ?
0:01 /usr/bin/perl /usr/local/mailscanne
 8 S     root 27118 26181  0  41 20 6063a008    254 608cf9ce 13:48:28 ?
0:00 /usr/lib/sendmail -q15m
 8 S     root 27391 27355  0  51 20 60b34680    893 60b34850 14:00:47 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 27359 27330  0  51 20 60e17328    893 60e174f8 14:00:44 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 27356 27280  0  65 20 60bea000    893 60580e74 14:00:44 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 27330 26931  0  61 20 60beb980    893 60581734 14:00:42 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 27385 27346  0  87 20 60a7e008    910 60a7e1d8 14:00:46 ?
0:00 /usr/bin/perl /usr/local/mailscanne
 8 S     root 27163     1  0  41 20 601ee668    910 601ee838 13:50:40 ?
0:00 /usr/bin/perl /usr/local/mailscanne
 8 S     root 26987     1  0  41 20 60dc19a0    910 60dc1b70 13:45:37 ?
0:00 /usr/bin/perl /usr/local/mailscanne
 8 S     root 26841     1  1  50 20 60717998    910 60581eb4 13:34:59 ?
0:01 /usr/bin/perl /usr/local/mailscanne
 8 S     root 27341 27173  0  44 20 60716cd8    893 60716ea8 14:00:42 ?
0:00 /usr/bin/perl /usr/local/mailscanne
 8 S     root 27176     1  0  41 20 609d99a0    893 609d9b70 13:50:41 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 26556     1  0  71 20 60b359a0    893 60580fb4 13:05:52 ?
0:01 /usr/bin/perl ./mailscanner
 8 S     root 27048     1  0  41 20 60893998    893 60893b68 13:46:42 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 27173     1  0  55 20 60b34ce0    893 60581af4 13:50:40 ?
0:00 /usr/bin/perl /usr/local/mailscanne
 8 S     root 27355 26875  0  61 20 609d4ce0    893 605220d4 14:00:44 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 27280     1  0  54 20 60dc1340    893 60581874 13:55:42 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 27346 26841  0  67 20 601ef988    910 60580ab4 14:00:43 ?
0:00 /usr/bin/perl /usr/local/mailscanne
 8 S     root 27396 27357  0  54 20 60747980    893 60747b50 14:00:48 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 26931     1  0  51 20 60746660    893 605814b4 13:40:36 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 27400 26113  0  51 20 60e16668    104 60522494 14:01:04 pts/2
0:00 grep mail
 8 S     root 26875     1  1  53 20 60dc0020    893 60581c34 13:35:33 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 26994     1  0  51 20 601eecc8    893 601eee98 13:45:38 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 26181     1  0  51 20 609d5340    246 609d5510 12:33:28 ?
0:00 /usr/lib/sendmail -q15m
 8 S     root 27101     1  0  41 20 609d8020    893 609d81f0 13:48:15 ?
0:00 /usr/bin/perl ./mailscanner
 8 S     root 26185     1  0  41 20 609d4680    249 608adc66 12:33:28 ?
0:00 /usr/lib/sendmail -bd -ODeliveryMod
 8 S     root 27357 26556  0  64 20 60beacc0    893 60580bf4 14:00:44 ?
0:00 /usr/bin/perl ./mailscanner



More information about the MailScanner mailing list