[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: [K12OSN] Postfix Mail Server tutorial



 
> 	Thanks to all for the information. I think Squirrel 
> mail is working now, (maybe, still in a test environment). 
> Which brings me to my next question; Is there a way to see if 
> clamav is actually getting the updates???????

Are you running freshclam and specifying a log file? I am using Gentoo for
my mail server so this may be different than what you need but here is my
config file and startup script:

#====== /etc/init.d/clamd ======#
# Config file for /etc/init.d/clamd

START_CLAMD=yes
CLAMD_OPTS=""
CLAMD_LOG=""

START_FRESHCLAM=yes
FRESHCLAM_OPTS="-d -c 2"
FRESHCLAM_LOG="/var/log/clam-update.log"
#====== /etc/init.d/clamd ======#


#====== /etc/init.d/clamd ======#
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-mail/clamav/files/clamd.rc,v 1.4
2004/03/06 03:15:17 vapier Exp $

depend() {
        need net
}

start() {
                if [ -f "/tmp/clamd" ]; then
                        rm -f /tmp/clamd
                fi
                if [ -n "${CLAMD_LOG}" -a ! -f "${CLAMD_LOG}" ]; then
                        touch "${CLAMD_LOG}"
                        chown clamav:clamav "${CLAMD_LOG}"
                fi
                ebegin "Starting clamd"
                start-stop-daemon --start --quiet \
                        --exec /usr/sbin/clamd -- ${CLAMD_OPTS}
                eend $? "Failed to start clamd"
                if [ -n "${FRESHCLAM_LOG}" -a ! -f "${FRESHCLAM_LOG}" ];
then
                        touch "${FRESHCLAM_LOG}"
                        chown clamav:clamav "${FRESHCLAM_LOG}"
                        FRESHCLAM_OPTS="${FRESHCLAM_OPTS} -l
${FRESHCLAM_LOG}"
                fi
                ebegin "Starting freshclam"
                start-stop-daemon --start --quiet \
                 --exec /usr/bin/freshclam -- -d -l ${FRESHCLAM_LOG}
                eend $? "Failed to start freshclam"
}

stop() {
                ebegin "Stopping clamd"
                start-stop-daemon --stop --quiet --name clamd
                eend $? "Failed to stop clamd"
                ebegin "Stopping freshclam"
                start-stop-daemon --stop --quiet --name freshclam
                eend $? "Failed to stop freshclam"
}
#====== /etc/init.d/clamd ======#

I can then chack the log file in /var/log/clamd which looks like this:


Tue Jun 15 13:15:06 2004 -> SelfCheck: Database status OK.
Tue Jun 15 16:17:16 2004 -> SelfCheck: Database modification detected.
Forcing reload.
Tue Jun 15 16:17:16 2004 -> Reading databases from /var/lib/clamav
Tue Jun 15 16:17:17 2004 -> Database correctly reloaded (21966 viruses)
Wed Jun 16 03:23:13 2004 -> SelfCheck: Database status OK.
Wed Jun 16 03:23:13 2004 -> Reading databases from /var/lib/clamav
Wed Jun 16 03:23:14 2004 -> Database correctly reloaded (21966 viruses)
Wed Jun 16 16:17:18 2004 -> SelfCheck: Database modification detected.
Forcing reload.
Wed Jun 16 16:17:18 2004 -> Reading databases from /var/lib/clamav
Wed Jun 16 16:17:18 2004 -> Database correctly reloaded (21972 viruses)



-Yancey



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]