HowTo: MailScanner 4.24 for Exim 4.24

This HOWTO looks great, but I'm wondering if it works on FreeBSD too. My servers are running FreeBSD not RedHat, but I want to install a mailscanner and spamfilter for my emails.

Can anyone tell me what the main differences are when using this howto while installing on FreeBSD.

Thanks in advance! :)
 
Hello,

The big difference is the rpm packages. Since they are compiled for redhat, you won't be able to use them. You will need to compile your own package from the source.
 
nebukazar said:
Hello,

The big difference is the rpm packages. Since they are compiled for redhat, you won't be able to use them. You will need to compile your own package from the source.

That's a quick reply :D

So you meen I need to install the software in the way the manual provide for FreeBSD? That would not be a problem!

Any other differences? I was thinking that maybe some paths are different...
 
well,

I think DA paths are the same for redhat and freebsd. So you won't have any problems with paths (I'm not 100% sure tho)

As for the software, you will need to install them but using either, a FreeBSD package-port or compile it from the source.
 
At this moment, I'm trying to follow the howto. The installation of the software is done, but when I want to edit the mentioned files, I can't find them.

For example: # pico -w /etc/init.d/exim

In FreeBSD the startup works with /etc/rc files, I don't know in which file I must edit it. I can't even find it in de rc files.

Maybe some FreeBSD freak can help me out here :(
 
Flydesign.nl said:
At this moment, I'm trying to follow the howto. The installation of the software is done, but when I want to edit the mentioned files, I can't find them.

For example: # pico -w /etc/init.d/exim

In FreeBSD the startup works with /etc/rc files, I don't know in which file I must edit it. I can't even find it in de rc files.

Maybe some FreeBSD freak can help me out here :(

Is there no locate of find in FreeBSD ?

locate exim | grep etc or something should output the location of the config files, i guess... (Never worked with FreeBSD before, assuming that part works the same as RH)
 
Yes, the locate works with FreeBSD. I found the directory /usr/local/etc in which the directory rc.d is placed, with exim in it. But I can't find the string I need to replace.

Code:
#!/bin/sh
#
# 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.
. /usr/local/etc/rc.d/functions

# Source exim configureation.
if [ -f /etc/sysconfig/exim ] ; then
        . /etc/sysconfig/exim
else
        DAEMON=yes
        QUEUE=1h
fi

[ "$DAEMON" = yes ] && EXIM_OPTS="$EXIM_OPTS -bd"
[ -n "$QUEUE" ] && EXIM_OPTS="$EXIM_OPTS -q$QUEUE"

[ -f /usr/sbin/exim ] || exit 0

start() {
        # Start daemons.
        echo -n "Starting exim: "
        daemon /usr/sbin/exim $EXIM_OPTS -oP /var/run/exim.pid
        RETVAL=$?
        if [ $RETVAL = 0 ] && touch /var/spool/lock/exim
        then
                echo -e "\t\t[ OK ]";
        else
                echo -e "\t\t[ FAILED ]";
        fi
}

stop() {
        # Stop daemons.
        echo -n "Shutting down exim: "
        killall exim 2> /dev/null
        RETVAL=$?
        if [ $RETVAL = 0 ] && rm -f /var/spool/lock/exim
        then
                echo -e "\t[ OK ]";
        else
                echo -e "\t[ FAILED ]";
        fi
}

restart() {
        stop
        start
}

# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  condrestart)
        [ -f /var/lock/subsys/exim ] && restart || :
        ;;
  status)
        status exim
        ;;
  *)
        echo "Usage: exim {start|stop|restart|status|condrestart}"
        exit 1
esac

exit $RETVAL

The file looks like this, maybe someon knows were to place the string mentioned in the howto.
 
I did change
Use SpamAssassin = yes
it looks ok

but a have a another thing:::

[root@seleen init.d]# ./MailScanner start
Starting MailScanner daemons:
incoming sendmail: [ OK ]
outgoing sendmail: [ OK ]
MailScanner: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.WINDOWS-1251"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

does anyone knows how to resolve this problem??

many thanks
 
when i run:

# service exim stop
# service MailScanner stop
# service MailScanner start

my exim keep failed?

[root@kaka input]# service exim stop
Shutting down exim:
[root@kaka input]# service MailScanner stop
Shutting down MailScanner daemons:
MailScanner: [ OK ]
[ OK ] incoming exim: [ OK ]
outgoing exim: [ OK ]
[root@apple input]# service MailScanner start
Starting MailScanner daemons:
incoming exim: [FAILED]
Could not find Exim installation, see /etc/sysconfig/MailScanner
outgoing exim: [FAILED]
Could not find Exim installation, see /etc/sysconfig/MailScanner
MailScanner: [ OK ]
 
Can you possible to re-write this updated HOWTO please?

I can see alot of users here having problem to follow this howto and fail to work at the end?.

Cheers! :)
 
koos said:
i did have the same on RH9:

Good. You have the patch command.

Your /usr/src/redhat, /usr/src/RPM or /usr/src/packages
tree is missing.
If you have access to an RPM called rpm-build
install it first and come back and try again.
This is fixed by RH9 just following the instructions by other members.

But you must use the Fedora-rpm and Fedora-rpmbuild if you want this rpm to work on Fedora as well.

Thanks Icheb :)
 
MailScanner & Email In & Out problems

Hi, I have Redhat9.0 with DA. I installed Spamdassassin, MailScanner, and Clamav following this instruction. I checked all again and again going one by one.

1) Issues - with MailScanner running, I can not send and receive emails. When I check processors. it shows.

mail 21950 0.0 0.1 6216 1792 ? S 08:34 0:00 [exim]
mail 21953 0.0 0.1 6216 1764 ? S 08:34 0:00 [exim]
mail 21983 0.0 1.6 21080 16836 ? S 08:34 0:00 [MailScanner]
root 22196 0.0 0.0 1636 172 ? S 08:34 0:00 [vm-pop3d]
root 22206 0.0 0.0 1636 172 ? S 08:35 0:00 [vm-pop3d]
root 22208 0.0 0.0 1636 172 ? S 08:35 0:00 [vm-pop3d]
mail 22210 5.1 0.0 0 0 ? Z 08:36 0:02 [MailScanner <defunct>]
mail 22214 5.9 0.0 0 0 ? Z 08:36 0:02 [MailScanner <defunct>]
mail 22215 9.1 0.0 0 0 ? Z 08:36 0:02 [MailScanner <defunct>]
mail 22216 16.1 0.0 0 0 ? Z 08:36 0:02 [MailScanner <defunct>]
mail 22217 35.5 0.0 0 0 ? Z 08:36 0:02 [MailScanner <defunct>]

2) However, if I kill all MailScanner and just keep exim, then all work just fine.

Any idea what could go wrong or what I have done not right ?? MailScanner zombie consumes big CPU timeas shown above.

Thanks

Sun Joo
 
Back
Top