Installation step of MailScanner to Exim 4.24

garyhui

Verified User
Joined
Jul 21, 2003
Messages
25
Location
Hong Kong
Dear All expert,

Before i was using exim 3.x and i installed it with the steps which found in the forum...it works before

now, the exim upgraded to 4.24 ....and my mailscanner doesn't work if i follow the installation instruction..

It will be good if you can give me a hand on the installation of the MailScanner on exim 4.24....since somebody sending virus to my server very very frequently.
 

garyhui

Verified User
Joined
Jul 21, 2003
Messages
25
Location
Hong Kong
do u know how to integrate with exim 4.24 ?
i think my problem is about how to configure it with exim 4.24.

i don't know how to adjust the /etc/init.d/exim
and /etc/exim.conf
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK

garyhui

Verified User
Joined
Jul 21, 2003
Messages
25
Location
Hong Kong
Actually i am getting confuse about reading the document.
The installation document in mailscanner web site. my config file is totally different than their file..
------------------------------------------------------------------------
E.g.
the document say.

change this (in /etc/init.d/exim)
/usr/exim/bin/exim -bd -q15m

to
/usr/exim/bin/exim -bd
/usr/exim/bin/exim -q15m -C /usr/exim/configure.out

but my /etc/init.d/exim is :

daemon /usr/sbin/exim $EXIM_OPTS -oP /var/run/exim.pid
------------------------------------------------------------------------
my rpm package version is da_exim-4.24-1
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
DA Staff, does the DA version of exim have a customized /etc/init.d/exim file?

also, what you could do is make a backup of the file and add the extra lines :)

Chris
 
Last edited:

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,033
Hello,

The path to exim is:

/usr/sbin/exim

so if you want to add "-C /usr/exim/configure.out" .. it would look like:

Code:
#!/bin/sh
#
# exim      This shell script takes care of starting and stopping
#               exim.
#
# chkconfig: 2345 80 30
# description: Mail Transfer Agent

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

EXIM_OPTS=
DAEMON=
QUEUE=
[ -f /etc/sysconfig/exim ] && . /etc/sysconfig/exim
[ "$DAEMON" = yes ] && EXIM_OPTS="$EXIM_OPTS -bd"
[ -n "$QUEUE" ] && EXIM_OPTS="$EXIM_OPTS -q$QUEUE"

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting exim: "
        daemon "/usr/sbin/exim $EXIM_OPTS -oP /var/run/exim.pid -C /usr/exim/configure.out"
        echo
        touch /var/lock/subsys/exim
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down exim: "
        if [ -e /var/run/exim.pid ]; then kill `cat /var/run/exim.pid`; fi
        echo
        rm -f /var/lock/subsys/exim
        ;;
  restart)
        $0 stop
        sleep 3
        $0 start
        ;;
  reload)
        if [ -e /var/run/exim.pid ]; then kill -HUP `cat /var/run/exim.pid`; fi
        ;;
  condrestart)
        if [ -f /var/lock/subsys/exim ] ; then
            $0 restart
        fi
        ;;
  status)
        status exim
        ;;
  *)
        echo "Usage: exim {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit 0
John
 

different

Verified User
Joined
Nov 17, 2003
Messages
17
I just do the step follow in exim 4.24..Redhat 9 newset DA
but some error happened

router defer_router: cannot find router driver "domainlist"

Any one have the same problem as me?
 

garyhui

Verified User
Joined
Jul 21, 2003
Messages
25
Location
Hong Kong
Dear All expert,

I've tried many times on the installation of the MailScanner to exim.
Seems not successful to me...

Anyone can give me some clue or give me some tips on that ?
 

icepick

Verified User
Joined
Aug 19, 2005
Messages
122
Location
Auckland, New Zealand
nod32

Hey guys,

I've installed nod32 as per the instructions provided from them, however when i start nod32d and restart exim with the changes, I receive the following error looping in my exim logs:

2005-08-25 12:48:26 1E85us-0003nM-Cm == admin@aaa.co.nz R=nod32 T=nod32_transport defer (0): Child process of nod32_transport transport returned 75 (could mean temporary error) from command: /usr/bin/nod32mda


The following changes were made to exim.conf:
begin routers

# ROUTER CONFIGURATION
nod32:
driver = accept
domains = +local_domains
condition = "${if eq {$received_protocol}{virus-scanned} {0}{1}}"
transport = nod32_transport
verify = false



begin transports

# TRANSPORTS CONFIGURATION
nod32_transport:
driver = pipe
command = /usr/bin/nod32mda $local_part@$domain
user = mailnull
group = mail



root@web:/usr/local/src# ls -al /usr/bin/nod32mda
-rwxr-xr-x 1 mailnull mail 13244 Apr 13 19:43 /usr/bin/nod32mda



following change was made to nod32.cfg"

root@web:/usr/local/src# cat /etc/nod32/nod32.cfg | grep deliver
mda_path = "/usr/local/sbin/deliver"


root@web:/usr/local/src# ls -al /usr/local/sbin/deliver
-rwxr-xr-x 1 mailnull mail 47 Aug 24 23:15 /usr/local/sbin/deliver


root@web:/usr/local/src# cat /usr/local/sbin/deliver
#!/bin/sh
/usr/sbin/exim -oMr virus-scanned $*


Please any help would be appreciated.

Thanks
Barry
 
Top