[Exim] Exim (for MailScanner) on SuSe 8.2 Professional

Top Page
Delete this message
Reply to this message
Author: Stefan Merfort
Date:  
To: exim-users
Subject: [Exim] Exim (for MailScanner) on SuSe 8.2 Professional
Hello,

I can't get exim to start with 2 processes, so that MailScanner can get the mails from the 'incoming process', scan them and then deliver them to the 'outgoing process'... Here is the standard start-script from etc/init.d/:

------------------------------------------------------------------------

! /bin/sh
# Copyright (c) 1996-2002 SuSE Gmbh Nuernberg, Germany.
#
# Author: Florian La Roche, 1996, 1997
#         Werner Fink <feedback@???>, 1996, 1999-2002
#
### BEGIN INIT INFO
# Provides:                     exim
# Required-Start:               $local_fs $remote_fs $network
# X-UnitedLinux-Should-Start:   $named $time
# Required-Stop:
# Default-Start:                3 5
# Default-Stop:                 0 1 2 6
# Short-Description:            exim MTA
# Description:                  Start the exim MTA (mail transfer agent)
### END INIT INFO


EXIM_PID=/var/run/exim.pid
EXIM_BIN=/usr/sbin/exim

if [ -s /etc/sysconfig/exim ]; then

        . /etc/sysconfig/exim


else
        # pre 8.0


        # Source SuSE config
        . /etc/rc.config


        # Determine the base and follow a runlevel link name.
        base=${0##*/}
        link=${base#*[SK][0-9][0-9]}


        # Force execution if not called by a runlevel directory.
        test $link = $base && START_EXIM=yes
        test "$START_EXIM" = yes || exit 0


fi

. /etc/rc.status
rc_reset

case "$1" in
    start)
        # create logfiles if missing
        for i in /var/log/exim/main.log /var/log/exim/panic.log /var/log/exim/reject.log; do
                if ! test -e $i; then touch $i; chown mail.mail $i; chmod 640 $i ; fi
        done


        echo -n "Initializing SMTP port (exim)"
        startproc    -p $EXIM_PID $EXIM_BIN $EXIM_ARGS
        rc_status -v
 ;;
    stop)
        echo -n "Shutting down SMTP port"
        killproc -p $EXIM_PID -TERM $EXIM_BIN
        rc_status -v
        ;;
    test)
        echo -n "Testing exim configuration"
        $EXIM_BIN -bV
        ;;
    try-restart)
        $0 stop && $0 start
        rc_status
        ;;
    restart)
        $0 stop
        $0 start
        rc_status
        ;;
    reload|force-reload)
        echo -n "Reload service exim"
        kill -HUP `cat $EXIM_PID* 2>/dev/null` 2> /dev/null || true
        rc_status -v
        ;;
    status)
        echo -n "Checking for service exim: "
        checkproc -p $EXIM_PID $EXIM_BIN
        rc_status -v
        ;;
    probe)
        test /etc/exim.conf -nt $EXIM_PID \
        && echo reload
        ;;
    *)
        echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
        exit 1
esac
rc_exit


------------------------------------------------------------------------

What do I have to change to get it work?
Till now I neither have changed the configuration file in /etc/sysconfig/ nor did I made changes to the spool directory in /var/spool/

Many thanks for your help!

- Stefan