[K12OSN] Postfix Mail Server tutorial

jim at winonacotter.org jim at winonacotter.org
Mon Jun 21 22:09:02 UTC 2004


If you follow the tutorial I posted a week or so ago step by step you should
have no problems.  I do remember that when you reach the step of installing
MailScanner you have to cp /var/spool/postfix /var/spool/postfix.in and then
shutdown the postfix service from starting, then change some settings in each
of the new and old main.cf files to reflect the changes.  From then on
MailScanner starts everything.

I have installed 4 servers now with that same tutorial, I skip the last step of
installing mysql for squirrelmail address books.  I also do my standard server
installs with whatever options I want instead of the "Minimal Install" that
they call for.  It works flawless, just make sure to follow every step by the
book.  There are a few steps that are easy to miss if you breeze through the
tutorial so I recommend reading every part carefully and at least twice.

Good Luck

Quoting Rick O'Dell <rodell at bakersfield.k12.mo.us>:

> 	I have had to back up and start over...  My clamav starts from MailScanner,
> but I have found a log file, and it says "File containing list of incoming
> queue dirs (/var/spool/postfix.in/defered)" does not exist. Then starts the
> MailScanner E-Mail Virus scanner over again...
> 	any ideas?????
> 
> 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.3 - Release Date: 6/18/2004
> 
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
> 







More information about the K12OSN mailing list