Qmail scanner question

Started by netgeek, March 03, 2004, 08:37:35 PM

Previous topic - Next topic

netgeek

freebsd 4-stable
qmail 1.03
qmail-scanner 1.2

I cannot recieve or send with qmail-smtp through qmail scanner. I can run this command from localhost and it all works fine:
/usr/local/src/mail/filter/qmail-scanner-1.20/contrib/test_installation.sh -doit

This is the only thing i get from any logs. There is not such directory in /var/spool/qmailscan/working/tmp:

Mar  3 22:22:22 it-werx X-Qmail-Scanner-1.20: [it-werx.org107837054246111198] it-werx.org107837054246111198 exists - try again later...

which results in the client getting error:
451 qq temporary problem (#4.3.0)

Here is my run file:

more /var/qmail/supervise/smtp/run
#!/bin/sh

PATH=/var/qmail/bin:/usr/local/vpopmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH

if [ ! -f /var/qmail/control/rcpthosts ]; then
       echo "No /var/qmail/control/rcpthosts!"
       echo "Refusing to start SMTP listener because it'll create an open relay"
       exit 1
fi

exec softlimit -m 25600000 tcpserver -H -R -c20 -t60 -x /usr/local/vpopmail/etc/tcp.smtp.cdb -u 89 -g 89 0 smtp rblsmtpd -c -
r cn.rbl.cluecentral.net -r relays.ordb.org -r relays.visi.com -r dev.null.dk -r sbl.spamhaus.org -r bl.spamcop.net qmail-smt
pd mail.it-werx.org /usr/local/vpopmail/bin/vchkpw /usr/bin/true 2>&1

I think that much memory should be fine, i did tinker with that but it still would not work.

permissions are as follows:
ls -al /var/spool/qmailscan
total 84
drwxrwx--x   5 qscand    qscand    512 Mar  3 22:17 .
drwxr-xr-x  11 root      wheel     512 Feb 25 23:47 ..
-rw-r--r--   1 qscand    qscand   1404 Mar  3 21:25 qmail-queue.log
-rw-------   1 vpopmail  vchkpw     36 Mar  3 21:25 qmail-scanner-queue-version.txt
drwxrwx---   5 qscand    qscand    512 Feb 25 23:47 quarantine
-rw-r-----   1 root      qscand  65536 Mar  3 21:25 quarantine-attachments.db
-rw-r-----   1 qscand    qscand   4279 Feb 25 23:47 quarantine-attachments.txt
-rw-rw-r--   1 qscand    qscand      0 Mar  3 21:25 quarantine.log
drwxr-xr-x   2 qscand    qscand    512 Mar  3 22:17 tmp
lrwxrwx---   1 root      qscand     31 Mar  3 21:25 viruses -> /var/spool/qmailscan/quarantine
lrwxrwx---   1 root      qscand     35 Mar  3 21:25 viruses.log -> /var/spool/qmailscan/quarantine.log
drwxr-xr-x   5 qscand  qscand    512 Feb 25 23:47 working

netgeek

I found the problem, I did not add enable_suidperl in the /etc/make.conf and after i updated the os suidperl never got included.

Hope my oversite helps someone else though!

atoyf

i think that should be added to the FAQ or documentation!
Kind regards, Anton

davidcl

It's there already, in at least two places.