Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: dspam problem



I did this with 5.0_RC2 kernel:

ROOT hostname:~> ps axww  | grep dspam
848 ttyp0  S+   0:00.00 grep dspam
199 ttyE0- S    0:00.01 /usr/pkg/bin/dspam --daemon
ROOT hostname:~> ktrace -i -d -f /var/tmp/ktrace.out -p 199
ROOT hostname:~> ps axww  | grep dspam
ROOT hostname:~>
ROOT hostname:~> kdump -f /var/tmp/ktrace.out > /var/tmp/dspam.dump

   199      3 dspam    NAMI  "/var/dspam/.dspam"
   199      3 dspam    RET   __stat30 0
   199      3 dspam    CALL  open(0x7f7ff17fd700,0x209,0x1b6)
   199      3 dspam    NAMI  
"/var/dspam/.dspam/martti%mydomain.com.log@localhost"
   199      3 dspam    RET   open -1 errno 13 Permission denied
   199      3 dspam    CALL  open(0x7f7ff17fd700,0x209,0x1b6)
   199      3 dspam    NAMI  "/var/dspam/system.log"
   199      3 dspam    RET   open -1 errno 13 Permission denied
   199      3 dspam    CALL  gettimeofday(0x7f7ff17fb330,0)
   199      3 dspam    RET   gettimeofday 0
   199      3 dspam    CALL  munmap(0x7f7fe5ab0000,0xbb4fe88)
   199      3 dspam    RET   munmap 0
   199      3 dspam    CALL  lseek(9,0,0,0)
   199      3 dspam    RET   lseek 0
   199      3 dspam    CALL  write(9,0x7f7ff17fdb90,0x50)
199 2 dspam PSIG SIGBUS SIG_DFL: code=SI_USER sent by pid=-46498632, uid=32639)
   199      1 dspam    RET   select -1 errno 4 Interrupted system call
   199      3 dspam    GIO   fd 9 wrote 80 bytes
       "\r\M^@\^A\0\0\0\0\0\M-*(\0\0\0\0\0\0\M-2\M-C\0\0\0\0\0\0r\0\0\0\0\0\0\
        \0\^P\0\0\0\0\0\0\0*\^F\0\0\0\0\0\0\^A\^D\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
   199      3 dspam    RET   write 80/0x50


I changed the owner of those files with

ROOT hostname:~> chown dspam:dspam /var/dspam/.dspam/* /var/dspam/system.log

so let's see how it works now. I assume /var/dspam/.dspam/* were owned by root because I have this in my /etc/daily.local. I assume I need to run it as the dspam user...

if [ -x /usr/pkg/bin/dspam_clean ]; then
        echo "Cleaning DSPAM databases"
        (cd /var/dspam/.dspam && ls *@*css) | while read i
        do
                U=`echo ${i} | sed 's#\.css##'`
                /usr/pkg/bin/dspam_clean -s14 -p30 ${U} > /dev/null 2>&1
        done
        echo ""
fi
if [ -x /usr/pkg/bin/dspam_logrotate ]; then
        /usr/pkg/bin/dspam_logrotate -a 30 -d /var/dspam > /dev/null 2>&1
fi

PS. How are you guys doing the daily/weekly/whatever maintenance work for dspam?

Martti


Home | Main Index | Thread Index | Old Index