OK - put that baby to bed.
Think I've learned a thing or two about mail filtering (and some
scripting things too)
installed amavisd (but ended up not using it)
installed clamd (clamav and clamav-milter)
installed spamassassin (spamass-milter)
installed grelisting (from a perl script from projects.puremagic.com)
actually configured all of them to use sendmail milter (though on new
installs, I am starting to use postfix)
stuff seems to work well...have been monitoring it since Sunday night
it was a real PITA to get it all up and running
Created this new SysV script
# cat relay
#!/bin/sh
#
# chkconfig: - 98 28
# description: Starts and stops the Relay-Delay
# #
# pidfile: /var/run/relaydelay.pid
# config: /etc/mail/relaydelay.conf
# Check that relaydelay.conf exists.
[ -f /etc/mail/relaydelay.conf ] || exit 0
RETVAL=0
start() {
KIND="Relay Delay"
echo -n $"Starting $KIND services: "
# nohup /root/relaydelay-0.04/relaydelay.pl
# /root/relaydelay-0.04/relaydelay.pl & 2>&1
> /var/log/relaydelay.log
/root/relaydelay-0.04/relaydelay.pl 1>/var/log/relaydelay.log
2>&1 &
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/relaydelay ||
RETVAL=1
echo
return $RETVAL
}
stop() {
echo
KIND="Relay Delay"
echo -n $"Shutting down $KIND services: "
pkill -15 relaydelay
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/relaydelay
echo ""
return $RETVAL
}
restart() {
stop
start
}
reload() {
echo -n $"Reloading relaydelay.conf file: "
pkill relaydelay -HUP
RETVAL=$?
echo
return $RETVAL
}
rhstatus() {
status relaydelay
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
status)
rhstatus
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|status}"
exit 1
esac
exit $RETVAL
####
put this script in /etc/rc.d/init.d (that's longhand for redhat users)
and then #for emphasis on previous SysV discussions...
[root@mail root]# chkconfig --add relay
[root@mail root]# chkconfig relay on
[root@mail root]# chkconfig --list relay
relay 0:off 1:off 2:on 3:on 4:on 5:on 6:off
et voila - c'est magnifique
Thanks to all who helped or merely had to click delete to get through my
inanity.
Also - have the system down (at least sort of) for RHEL and clones. I do
plan to use my newly gained knowledge of cpan2rpm to roll rpms of the
perl modules that are needed for this.
One step was a bit unusual...I had to take the perl module
Sendmail::Milter tarball - download it, do the perl Makefile.PL but
locate the sendmail source - per the instructions...
** ** **
% perl Makefile.PL ../sendmail ../sendmail/obj.FreeBSD.4.0-RELEASE.i386
% make
% make install
The paths ../sendmail and ../sendmail/obj.FreeBSD.4.0-RELEASE.i386
should point to the sendmail source tree and the sendmail build
directory, respectively.
** ** **
which I did and I am looking for portability among RHEL (and clone)
systems. I did a tarball which included the sendmail source so I have a
modicum of portability but it would be way cool if I could just roll an
rpm with that but that is more work than I care to put in (unless
someone wants to point me to a simple betty crocker method of building
rpm's from compiled source).
Anyway, I have the system down for RHEL and clones if anyone needs the
help...the next time I do this - I will get the steps from history so I
can document it for repeatability.
other projects that I have done on RHEL that I can assist people on
include...
openldap/samba integration including doing vampire from Windows NT 4
Primary Domain Controller (before putting it to pasture) and even slurpd
replication of openldap to second samba machine to act as BDC.
installation from source -
cyrus-sasld/db-4.2.52/heimdal-0.63/openldap-2.2.19
(though I think 2.2.23 is now recommended) without tearing your hair out
or tearing up the system. This is all about having features from the
last 3 years of improvements in openldap since RHEL seems stuck on an
ancient version.
root backup scripts for daemons (config & data files)
dhcp/named/samba-no data/netatalk-no data/openldap/httpd
Craig
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss