Re: qmail-scanner-2.10 problem for some mails
Salvatore Toribio <[email protected]> Wed, 7 Nov 2012 11:41:36 +0100
| Newsgroups | gmane.mail.qmail.scanner |
|---|---|
| Message-ID | <a06240808ccbfe8952d38@[10.10.82.254]> |
--===============7734394875385135117==
Content-Type: multipart/alternative;
boundary="============_-859837599==_ma============"
--============_-859837599==_ma============
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
Ok, this is a bug that is also present in the original
qmail-scanner-2.10. It is only triggered if the email has a zip
attachment and you enabled the redundant scanning. I fixed it last
March without changing the data of the version.
To fix it you can download again qs-2.10st and reinstall it, or edit
the script and add '-d $file ||' at the start of the 'if' like below:
if(-d $file || $file eq "." || $file eq ".." || $file =~
/^[0-9]+\.[0-9]+\-[0-9]+\.$hostname|^(orig\-|)$file_id|^textfile[0-9]+/){
Kind regards
Salvatore
At 11:23 +0200 7-11-2012, Adrian Bulgariu wrote:
>from the file:
>
> my $sha = Digest::SHA1->new;
> foreach $file (@dirContents) {
> if($file eq "." || $file eq ".." || $file =~
>/^[0-9]+\.[0-9]+\-[0-9]+\.$hostname|^(orig\-|)$file_id|^textfile[0-9]+/){
> next;
> }
> open(OFILE,$file) || &error_condition("mhr: cannot open file - '$file'");
> $sha->addfile(*OFILE);
> my $digest = $sha->hexdigest;
> debug("mhr: digest of $file is $digest",5);
> $result=&MHRviaDNS($digest);
> close(OFILE);
> last if ($result);
> }
>
>
>line 3540 is : $sha->addfile(*OFILE);
>
>
>On 07/11/2012 09:49 AM, Salvatore Toribio wrote:
>
>>Re: [Qmail-scanner-general] qmail-scanner-2.10 problem for
>>Hi Adrian
>>
>>Line 3540 must be ad antivirus routine. So your antivirus couldn't
>>read the file.
>>
>>What antivirus are you using at line 3540?
>>
>>Try to increase the memory assigned to qmail-smtpd, just a guess.
>>
>>ST
>>
>>At 18:18 +0200 6-11-2012, Adrian Bulgariu wrote:
>>
>>>hi
>>>
>>>i recently discovered those error messages in the logs
>>>
>>>can someone help me with this. As I understand is a problem that
>>>in the subject there is a "+" caracter ?
>>>
>>>thanks
>>>
>>>Tue, 06 Nov 2012 18:13:50 EET:15398: ------ Process 15398
>>>finished. Total of 0.430018 secs
>>>Tue, 06 Nov 2012 18:14:55 EET:15443: +++ starting debugging for
>>>process 15443 (ppid=15442) by uid=89
>>>Tue, 06 Nov 2012 18:14:55 EET:15443: g_e_h:
>>>return-path='f<mailto:[email protected]>[email protected]',
>>>recips='<mailto:[email protected]>[email protected]'
>>>Tue, 06 Nov 2012 18:14:55 EET:15443:
>>>from='f<mailto:[email protected]>[email protected]>', subj='FW: acte
>>>necesare prelungire linie de credit Cucu+plafon factoring', via
>>>SMTP from mail2.from.com
>>>
>>>Tue, 06 Nov 2012 18:14:55 EET:15443: error_condition:
>>>X-Qmail-Scanner-2.10st: Requeuing: Reading from filehandle failed
>>>at /var/qmail/bin/qmail-scanner-queue.pl line 3540.
>>>
>>
--============_-859837599==_ma============
Content-Type: text/html; charset="us-ascii"
<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Qmail-scanner-general] qmail-scanner-2.10
problem for</title></head><body>
<div>Ok, this is a bug that is also present in the original
qmail-scanner-2.10. It is only triggered if the email has a zip
attachment and you enabled the redundant scanning. I fixed it last
March without changing the data of the version.</div>
<div><br></div>
<div>To fix it you can download again qs-2.10st and reinstall it, or
edit the script and add '-d $file ||' at the start of the 'if' like
below:</div>
<div><br></div>
<div> if(-d $file || $file eq "." || $file eq
".." || $file =~
/^[0-9]+\.[0-9]+\-[0-9]+\.$hostname|^(orig\-|)$file_id|^textfile[0-9]<span
></span>+/){</div>
<div><br></div>
<div>Kind regards</div>
<div><br></div>
<div>Salvatore<br>
</div>
<div>At 11:23 +0200 7-11-2012, Adrian Bulgariu wrote:</div>
<blockquote type="cite" cite>from the file:<br>
<br>
my $sha = Digest::SHA1->new;<br>
foreach $file (@dirContents) {<br>
if($file eq "." || $file eq ".." ||
$file =~
/^[0-9]+\.[0-9]+\-[0-9]+\.$hostname|^(orig\-|)$file_id|^textfile[0-9]<span
></span>+/){<br>
next;<br>
}<br>
open(OFILE,$file) || &error_condition("mhr:
cannot open file - '$file'");<br>
$sha->addfile(*OFILE);<br>
my $digest = $sha->hexdigest;<br>
debug("mhr: digest of $file is $digest",5);<br>
$result=&MHRviaDNS($digest);<br>
close(OFILE);<br>
last if ($result);<br>
}<br>
<br>
<br>
line 3540 is : $sha->addfile(*OFILE);<br>
<br>
</blockquote>
<blockquote type="cite" cite>On 07/11/2012 09:49 AM, Salvatore Toribio
wrote:<br>
<blockquote type="cite" cite>Re: [Qmail-scanner-general]
qmail-scanner-2.10 problem for</blockquote>
<blockquote type="cite" cite>Hi Adrian</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>Line 3540 must be ad antivirus routine.
So your antivirus couldn't read the file.</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>What antivirus are you using at line
3540?</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>Try to increase the memory assigned to
qmail-smtpd, just a guess.</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>ST</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>At 18:18 +0200 6-11-2012, Adrian Bulgariu
wrote:<br>
<blockquote type="cite" cite>hi<br>
<br>
i recently discovered those error messages in the logs<br>
<br>
can someone help me with this. As I understand is a problem that in
the subject there is a "+" caracter ?<br>
<br>
thanks<br>
<br>
Tue, 06 Nov 2012 18:13:50 EET:15398: ------ Process 15398 finished.
Total of 0.430018 secs<br>
Tue, 06 Nov 2012 18:14:55 EET:15443: +++ starting debugging for
process 15443 (ppid=15442) by uid=89<br>
Tue, 06 Nov 2012 18:14:55 EET:15443: g_e_h: return-path='f<a
href="mailto:[email protected]">[email protected]</a>', recips='<a
href="mailto:[email protected]">[email protected]</a>'<br>
Tue, 06 Nov 2012 18:14:55 EET:15443: from='f<a
href="mailto:[email protected]">[email protected]</a>>', subj='FW: acte
necesare prelungire linie de credit Cucu+plafon factoring', via SMTP
from mail2.from.com<br>
</blockquote>
<blockquote type="cite" cite>Tue, 06 Nov 2012 18:14:55 EET:15443:
error_condition: X-Qmail-Scanner-2.10st: Requeuing: Reading from
filehandle failed at /var/qmail/bin/qmail-scanner-queue.pl line
3540.<br>
</blockquote>
</blockquote>
<blockquote type="cite" cite><br></blockquote>
</blockquote>
</body>
</html>
--============_-859837599==_ma============--
--===============7734394875385135117==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
--===============7734394875385135117==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Qmail-scanner-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
--===============7734394875385135117==--