[K12OSN] Postfix Mail Server tutorial

Rick O'Dell rodell at bakersfield.k12.mo.us
Thu Jun 17 14:47:23 UTC 2004


	This is altogether different than mine. The only reference I have found to
"clamav", is within Mail Scanner and nothing about a log file.....

Rick O'Dell
Net Work Administrator
Bakersfield R4 School Dst.
Phone (417)284-7333 ext 303
rodell at bakersfield.k12.mo.us





-----Original Message-----
From: k12osn-bounces at redhat.com [mailto:k12osn-bounces at redhat.com]On Behalf
Of Yancey B. Jones
Sent: Wednesday, June 16, 2004 7:54 PM
To: 'Support list for opensource software in schools.'
Subject: 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


_______________________________________________
K12OSN mailing list
K12OSN at redhat.com
https://www.redhat.com/mailman/listinfo/k12osn
For more info see <http://www.k12os.org>
--
Incoming mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.251 / Virus Database: 263.3.2 - Release Date: 6/15/2004

--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.251 / Virus Database: 263.3.2 - Release Date: 6/15/2004





More information about the K12OSN mailing list