<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>135636</bug_id>
          
          <creation_ts>2006-06-05 07:56 0000</creation_ts>
          <short_desc>qmail-scanner 2.01 uses wrong scandir</short_desc>
          <delta_ts>2008-01-04 22:48:01 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Server</component>
          <version>2006.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo@nephros.org</reporter>
          <assigned_to>qmail-bugs@gentoo.org</assigned_to>
          <cc>mmokrejs@ribosome.natur.cuni.cz</cc>
    
    <cc>sarpy.sam@gmail.com</cc>
    
    <cc>toffanin.mauro@gmail.com</cc>
    
    <cc>torsten@tk-webart.de</cc>

      

      
          <long_desc isprivate="0">
            <who>gentoo@nephros.org</who>
            <bug_when>2006-06-05 07:56:20 0000</bug_when>
            <thetext>From mail.err:

  # tail /var/log/mail.err
  Jun  5 16:32:48 scourge X-Qmail-Scanner-2.01st: [] cannot create /var/spool/qscan/tmp - No such file or directory 
  Jun  5 16:32:54 scourge last message repeated 9 times


  # ls -l /var/spool/
  total 1
  drwxr-xr-x 4 at     at      96 Jan 27  2004 at
  drwxr-x--- 4 root   cron   120 Mar 10  2005 cron
  drwx--x--- 3 root   lp     216 May 22 18:49 cups
  drwxr-xr-x 3 root   root    72 Sep 25  2004 cups-pdf
  drwxr-xr-x 2 root   root    72 Jul 31  2003 locate
  drwxrwxr-x 2 root   mail   144 May  1  2005 mail
  drwxr-xr-x 7 qscand qscand 912 Jun  4 21:43 qmailscan
  drwxrwxrwt 2 root   root    72 May  7 20:17 samba

so there is no /var/spool/qscan.

If I read the setup correctly, this dir is set in qmail-scanner-queue.pl in the
$scandir, $configdir and $logdir variables which AFAIK are not overridden by any config file.

In previous versions this was set to /var/spool/qmailscan which is also provided and set up correctly by the ebuild.

My qmail-scanner ebuild is the modified ebuild according to Bug #134826 but I don&apos;t think the patch from there has anything to do with this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mmokrejs@ribosome.natur.cuni.cz</who>
            <bug_when>2006-06-07 14:59:29 0000</bug_when>
            <thetext>I have same problem since few hours, when I upgraded my ~x86 system from mail-filter/qmail-scanner-1.25-r1 to mail-filter/qmail-scanner-2.01.


Simple attempt to do:

# cd /var/spool/
# ln -s qmailscan qscan

doesn&apos;t help. as I get immediately yet another error:

@4000000044874bc41cd7145c X-Qmail-Scanner-2.01st:[vrapenec11497174347678228] cannot open /var/spool/qscan/quarantine-events.db - No such file or directory

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mmokrejs@ribosome.natur.cuni.cz</who>
            <bug_when>2006-06-07 15:07:18 0000</bug_when>
            <thetext>I unmerged the new qmail-scanner and emerged the previous version 1.25-r1. I am puzzled with this output from the emerge process. I guess the ebuild file has been partly updated to reflect new paths but it was not finished carefully. The 
/var/spool/qscan/ directory does not exist and qmail-scanner-queue.pl -z does not create it either!


[...]
Remember to copy quarantine-attachments.txt to /var/spool/qmailscan and then
run &quot;qmail-scanner-queue.pl -g&quot; to generate DB version.

X-Qmail-Scanner-2.01st:[] cannot open /var/spool/qscan/qmail-scanner-queue-version.txt - did you initialise the system by running &quot;qmail-scanner-queue.pl -z&quot;? - No such file or directory
[...]
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>torsten@tk-webart.de</who>
            <bug_when>2006-06-08 04:33:21 0000</bug_when>
            <thetext>Same here.

I fixed this problem in a rather ugly way with an

# ln -s /var/spool/qmailscan /var/spool/qscan

for now, but there should be a more lasting solution. Obviously, the configure script ignores the --spooldir setting and in spite configures qmail-scanner-queue.pl for /var/spool/qscan

Weird!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pjlv@mega.ist.utl.pt</who>
            <bug_when>2006-06-15 12:58:41 0000</bug_when>
            <thetext>I confirm this issue.

I&apos;ve installed qmail-scanner-2.01 to work with netqmail-1.05-r3 and it puked about 2 error lines upon installation. It didn&apos;t run because it expects to find /var/spool/qscan but the ebuild creates /var/spool/qmailscan.

After creating the missing files and giving proper permissions AND changing /var/qmail/bin/qmail-scanner-queue.pl to have:

my $scandir = &apos;/var/spool/qmailscan&apos;;
my $configdir = &apos;/var/spool/qmailscan&apos;;
my $logdir = &apos;/var/spool/qmailscan&apos;;

I would suggest linking this bug to bug #82718 and to build a joint fix.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>toffanin.mauro@gmail.com</who>
            <bug_when>2007-02-28 14:20:18 0000</bug_when>
            <thetext>Created an attachment (id=111547)
qmail-scanner-2.0.1-fix

this patch fix all problems reported in this bugreports.

to QMAIL TEAM: please apply the patch into the portage branch as soon as possible because qmail-scanner 1.25-r1 do not work any more with the last qmail/clamav stable version and people that use qmail/courier-imap email server have a totaly broken box.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@nephros.org</who>
            <bug_when>2007-03-15 09:16:46 0000</bug_when>
            <thetext>Can someone please give this issue some loving?

I just got bitten by it AGAIN when I did the qmail --&gt; netqmail thing.

IIRC the qmail removal is scheduled for mid-April - presumably more people will stumble over this at that point.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tupone@gentoo.org</who>
            <bug_when>2008-01-04 22:48:01 0000</bug_when>
            <thetext>Should be fixed in 2.01-r1. Thanks</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>111547</attachid>
            <date>2007-02-28 14:20 0000</date>
            <desc>qmail-scanner-2.0.1-fix</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHFtYWlsLXNjYW5uZXItMi4wMS5lYnVpbGQJMjAwNi0wNy0yMSAxOTowNTo1OC4wMDAwMDAw
MDAgKzAyMDAKKysrIHFtYWlsLXNjYW5uZXItMi4wMS5lYnVpbGQJMjAwNy0wMi0yOCAxMDo0Mjox
OS4yODEwOTY2ODggKzAxMDAKQEAgLTUxLDcgKzUxLDEyIEBACiAKIAlFWFRSQV9WSVJJST0iYmFn
bGUsYmVhZ2xlLG15ZG9vbSxzY28sbWFsZGFsLG1pbWFpbCxub3Zhcmcsc2hpbWcsYnVnbGVyLGNp
c3NpLGNpc3N5LGRsb2FkZSxuZXRza3kscWl6eSIKIAllaW5mbyAiQWRkaW5nIGl0ZW1zIHRvIHRo
ZSBTSUxFTlRfVklSVVNFUyBsaXN0ICgke0VYVFJBX1ZJUklJfSkiCi0Jc2VkIC1lICIvXlNJTEVO
VF9WSVJVU0VTL3MvXCIkLywke0VYVFJBX1ZJUklJfVwiL2ciICAtaSBjb25maWd1cmUKKyMgICBz
ZWQgLWUgIi9eU0lMRU5UX1ZJUlVTRVMvcy9cIiQvLCR7RVhUUkFfVklSSUl9XCIvZyIgIC1pIGNv
bmZpZ3VyZQorCWViZWdpbiAiZml4aW5nIGJhZCBjb25maWd1cmUgdmFsdWVzIgorCQlzZWQgLWkg
LWUgInM6L3Zhci9zcG9vbC9xc2NhbjovdmFyL3Nwb29sL3FtYWlsc2NhbjoiIFwKKwkJICAgICAg
IC1lICIvXlNJTEVOVF9WSVJVU0VTL3MvXCIkLywke0VYVFJBX1ZJUklJfVwiL2ciIFwKKwkJICAg
ICAgIGNvbmZpZ3VyZSB8fCBkaWUgImVycm9yIHNlZWRpbmcgY29uZmlndXJlIgorCWVlbmQgJD8K
IH0KIAogc3JjX2NvbXBpbGUgKCkgewpAQCAtOTUsNiArMTAwLDcgQEAKIAlpbnNpbnRvIC92YXIv
c3B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