Hi,

 I'm trying to get qmail-scanner up and runnign with clamd (running via
daemontools), but I have the usual permission problem.

ClamAV is configured using:

./configure --with-user=qscand --with-group=qscand --prefix=/usr --mandir=/u
sr/share/man --sysconfdir=/etc

Qmail-scanner (st patched version) is configured using:

./configure --qs-user qscand --qs-group qscand --spooldir
"/var/spool/qmailscan" --qmaildir "/var/qmail" --bindir
"/var/qmail/bin" --qmail-queue-binary "/var/qmail/bin/qmail-queue"  --admin
postmaster --domain domain.dk --admin-fromname "System Anti-Virus
Administrator" --notify "sender,admin" --local-domains
andebakken.dk,nerdnet.dk --silent-viruses auto --lang en_GB --debug
no --minidebug 1 --unzip 0 --add-dscr-hdrs 0 --dscr-hdrs-text
"X-Qmail-Scanner" --archive 0 --redundant no --log-details yes --log-crypto
0 --fix-mime 1 --sa-alt 1 --sa-debug 1 --sa-delta 0 --sa-subject
"" --sa-quarantine 0 --sa-delete 15 --sa-reject 1  --scanners
"clamdscan,fprot,fast_spamassassin" --sa-report 1 --install 0

Checking /var/qmail/bin/qmail-scanner-queue.pl after installation gives me:

-rwsr-xr-x    1 qmailq   qmail      136280 Sep 29 10:38
/var/qmail/bin/qmail-scanner-queue.pl

checking /var/spool/qmailscan:

drwxr-xr-x    5 qmailq   qmail        4096 Sep 29 12:04 qmailscan

And the contents of that dir:

-rw-------    1 qmailq   qmail        4416 Sep 29 12:27 mailstats.csv
-rw-------    1 qmailq   qmail       27129 Sep 29 12:27 qmail-queue.log
-rw-------    1 qmailq   qmail          87 Sep 29 11:22
qmail-scanner-queue-version.txt
drwxrwx---    5 qmailq   qmail        4096 Sep 29 12:03 quarantine
-rw-r-----    1 qmailq   qmail       12288 Sep 29 11:22
quarantine-attachments.db
-rw-rw----    1 qmailq   qmail        4278 Aug 22  2003
quarantine-attachments.txt
drwx------    2 qmailq   qmail        4096 Sep 29 12:27 tmp
lrwxrwxrwx    1 root     root           31 Sep 29 12:03 viruses ->
/var/spool/qmailscan/quarantine
lrwxrwxrwx    1 root     root           15 Sep 29 12:04 viruses.log ->
qmail-queue.log
drwxrwx---    5 qmailq   qmail        4096 Sep 29 11:24 working

The supervise/run file for clamd:

#!/bin/sh
exec 2>&1
exec setuidgid qscand /usr/sbin/clamd

And parts of the /etc/clamav.conf

LogFile /dev/stderr
PidFile /var/run/clamav/clamd.pid
Foreground
#User qscand

Checking the clamd process (with "ps auxw | grep clamd") when it is running
gives me:

root      1209  0.0  0.1  1340  264 ?        S    Aug28   0:03 supervise
clamd
qscand    1213  0.0  0.1  1360  284 ?        S    Aug28   0:00
/usr/bin/multilog t s1000000 n20 /var/log/clamd
qscand   29520 54.4  6.1 16796 15628 ?       S    12:36   0:02
/usr/sbin/clamd
root     29527  0.0  0.2  1744  572 pts/4    S    12:36   0:00 grep clamd


The error I get:

@40000000415a895c0a52f3b4 tcpserver: pid 29079 from 213.150.61.160
@40000000415a895c0a6a82f4 tcpserver: ok 29079 worf.andebakken.dk:w.x.y.z:25
:213.150.61.160::53537
@40000000415a895c25e0ffa4
X-Qmail-Scanner-1.23st:[worf.andebakken.dk109645243466029080] clamdscan:
corrupt or unknown clamd scanner error or memory/resource/perms problem -
exit status 512/2
@40000000415a895c28021a84 tcpserver: end 29079 status 0

My qmail-smtpd file:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
exec /usr/bin/softlimit -m 120971520 \
    /usr/bin/tcpserver -v -R -l `head -1 /var/qmail/control/me` -x
/etc/tcp.smtp.cdb -c "$MAXSMTPD" \
        -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
    /usr/bin/rblsmtpd -C -r relays.ordb.org \
                         -r opm.blitzed.org \
                         -r sbl-xbl.spamhaus.org \
                         -r cbl.abuseat.org \
                         -r dnsbl.sorbs.net \
                         -r 'dnsbl.njabl.org:Open relay problem - see
<http://dnsbl.njabl.org/cgi-bin/lookup.cgi?query=%IP%>' \
                         -r 'proxies.blackholes.wirehub.net:Open relay
problem - see <http://blackholes.wirehub.net/errors.html>' \
        /var/qmail/bin/qmail-smtpd 2>&1

Hopefully it shouldn't be a memory-problem.....

Can anyone see where the permission problem exists ?? The Clamd log doesn't
reveal much....

Regards,

/Brian


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to