amavis scripts

[prev] [thread] [next] [lurker] [Date index for 2006/01/04]

From: Aaron J. Grier
Subject: amavis scripts
Date: 06:44 on 04 Jan 2006
from /etc/init.d/amavis on a debian box:

cleanup() {
        [ -d /var/lib/amavis ] && 
          find /var/lib/amavis -maxdepth 1 -name 'amavis-*' -type d \
                -exec rm -rf "{}" \; || true
        [ -d /var/lib/amavis/tmp ] && 
          find /var/lib/amavis/tmp -maxdepth 1 -name 'amavis-*' -type d \
                -exec rm -rf "{}" \; || true
        # clear exit status
        :
}

[...]
  stop)
        echo -n "Stopping $DESC: "
[...]
                cleanup

guess where amavis dumps messages when it encounters problems?

amavisd-new[10950]: (10950-01) TROUBLE in check_mail: virus_scan FAILED: ALL VIRUS SCANNERS FAILED: 
amavisd-new[10950]: (10950-01) PRESERVING EVIDENCE in /var/lib/amavis/tmp/amavis-20051120T064404-10950

maybe someone can explain the method to this madness...

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | agrier@xxxxxxxxx.xxx
              "silly brewer, saaz are for pils!"  --  virt

Generated at 17:00 on 04 Jan 2006 by mariachi 0.52