> O.K , here is the verdict :
>
> I originally intended to use Red Hat 8's 'redhat-switchmail' facility
to change to
> Exim 4.10 from sendmail without uninstalling anything , but that
simply did
> not work , because switchmail did not detect my installed exim.
>
> I figured that in Red Hat 8 you have a file called
/etc/alternatives/mta which is a
> symbolic link to the /usr/sbin/sendmail.sendmail file. I unlinked
this and pointed
> it to my exim binary. When restarting the system just to see how my
box
> would boot , I picked up the following in the boot log file :
>
> -----------
> Nov 26 17:45:00 blackhawk sendmail: exim abandoned: unknown,
malformed, or
> incomplete option -L
> Nov 26 17:45:00 blackhawk sendmail: sm-client startup failed
> -----------
>
> I *could* dig into all of the scripts and find out more about the '-L'
above and find it's
> exim equivalent , but I am considering uninstalling sendmail and
hoofing out all of
> it's spare parts , so that exim can run exclusively.
>
> Before I pull the plug , I am trying to find out if there are any
other services on
> Red Hat that rely in sendmail for their functioning and existence.
>
> What would be the best way to set up the system to start exim on
bootup ?
> Do I place a start up script in /etc/rc.d/init.d ?
>
> Thanks again !
>
> Regards , Jason
> --
>
>
The following script was included with the RH 7.1 Exim 3.36 (I think it
was 3.36) RPM. The file is called "exim" and it resides in the
directory "/etc/rc.d/init.d/" You also need to add the appropriate
links to the /etc/rc?.d/ directories, in order to get it to start at
boot time. See "man chkconfig" for details. Feel free to cut and paste
this. BTW I think I might have changed the default QUEUE value.
Whatever works for you.
I completely uninstalled Sendmail from my servers, and have not run into
any problems.
Jim Roberts
Punster Productions, Inc.
#!/bin/bash
#
# exim This shell script takes care of starting and stopping exim
#
# chkconfig: 2345 80 30
# description: Exim is a Mail Transport Agent, which is the program \
# that moves mail from one machine to another.
# processname: exim
# config: /etc/exim.conf
# pidfile: /var/run/exim.pid
# Source function library.
. /etc/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Source exim configureation.
if [ -f /etc/sysconfig/exim ] ; then
. /etc/sysconfig/exim
else
DAEMON=yes
QUEUE=15m
fi
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -f /usr/sbin/exim ] || exit 0
start() {
# Start daemons.
echo -n $"Starting $0: "
daemon /usr/sbin/exim $([ "$DAEMON" = yes ] && echo -bd) \
$([ -n "$QUEUE" ] && echo -q$QUEUE)
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/exim
}
stop() {
# Stop daemons.
echo -n $"Shutting down $0: "
killproc exim
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/exim
}
restart() {
stop
start
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
restart
;;
condrestart)
[ -f /var/lock/subsys/exim ] && {
stop
[ -x /bin/chown ] && /bin/chown mail.mail -R
/var/spool/exim
start
} || {
[ -x /bin/chown ] && /bin/chown mail.mail -R
/var/spool/exim
}
;;
status)
status exim
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|status|condrestart}"
exit 1
esac
exit $RETVAL