Koozali.org: home of the SME Server

aMavis

brian read

aMavis
« on: July 30, 2002, 09:51:42 AM »
I've searched the forums, and aMavis gets mentioned occasionally, but I can't find any instructions.

Anyone sucessfully installed it for 5.1.2?

I am using ClamAv as the AV program.

Thanks in anticipation

Brian

Steven Thomson

Re: aMavis
« Reply #1 on: July 30, 2002, 05:42:43 PM »
Just letting you know that I use Avmailgate Antivir from hbedv.com
Very good mail scanning antivirus with auto-update and doesn't require amavis.
The best part is that it's FREE. Just email them for a reg key for linux.
Instructions are pretty easy to follow too.

I actually used a RPM made by someone else which makes a sever-manager panel and then upgraded manually to the latest version but you don't need the panel for it to run.

brian read

Re: aMavis
« Reply #2 on: July 30, 2002, 06:06:11 PM »
Steven

Yes I know about Avmailgate, but its is not free for commercial use (I sell servers with E-smith ready installed).  So I need something that is GPL.

Anyone else got any comments about aMavis?

Cheers

Brian

Steven Thomson

Re: aMavis
« Reply #3 on: July 30, 2002, 06:14:59 PM »
There is a RPM here:
Haven't installed it myself but thought it might help.

http://rpmfind.net//linux/RPM/PLD/dists/ra/PLD/i686/PLD/RPMS/amavis-11-2.i686.html

brian read

Re: aMavis
« Reply #4 on: July 30, 2002, 06:49:29 PM »
Thanks Steven, but that fails with lots of dependencies on Perl modules which are clearly not installed by miltel.

I was hoping to use aMavis-ng (which is recommended by the ClamAv site).

I guess I have to set-up an SME Server where I can do a makefile etc..

Cheers

Brian

Steven Thomson

Re: aMavis
« Reply #5 on: July 30, 2002, 07:02:42 PM »
Here are the required tools if you decide to go down that path:

http://myezserver.com/downloads/mitel/contrib/dev-tools/

Good luck.

Norrie

Re: aMavis
« Reply #6 on: July 30, 2002, 07:31:58 PM »
Brian,

I'm also interested in using amavis.  Couls you please post your progress / results?

N
8o)

brian read

Re: aMavis
« Reply #7 on: July 30, 2002, 07:47:28 PM »
ok, having downloaded the dev tools from the above URL, and read the howto, I am trying to get the tools installed.

However on the "source" RPM I get the following dependency failure:

file /usr/src/linux-2.2.19/configs/kernel-2.2.19-i386-smp.config from install of kernel-source-2.2.19-7.0.8 conflicts with file from package kernel-headers-2.2.19-7.0.8

all the other ones install OK.

What do I do now?

cheers

Brian

Steven Thomson

Re: aMavis
« Reply #8 on: July 30, 2002, 07:59:41 PM »
I think that the Kernel-Source really should be installed before the Headers.
You could simple "Force" the RPM to install the only implication is that removing it may not be so easy. I think its just -Uvhf not sure though.
Otherwise remove the headers rpm, install the source rpm, then reinstall the headers.
I'm really just guessing though. I actually haven't installed the source, just "make" and the related dependencies, and still am able to make/config things. Maybe you should try without it and see if you need it before wasting too much time.

brian read

Re: aMavis
« Reply #9 on: July 30, 2002, 08:31:03 PM »
After untarring the amavis tarball.

I went ahead with the "perl Makefile.PL" for aMavis,  it gave me:

>Couldn't open Makefile.PL in /usr/RPMs/amavis-ng-0.1.4/amavis-milter at >/usr/lib/perl5/5.6.0/ExtUtils/MakeMaker.pm line 152

Makefile.PL is in the "top" level dir, not the amavis-milter dir (which does exist however).

I ignored this (!), and tried the next command (make), which filed with the following:

>amavis-milter.c:53:29: libmilter/mfapi.h: No such file or directory.  

To be expected I suppose (given the previous command failed).

These are the perl modules the README says it needs:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
* File::MMagic (tested with 1.13, 1.15)

    Version 1.13 and prior detect some text/plain files which have
    mail headers _somewhere_ in them as message/rfc822. There is a
    workaround for this in AMAVIS.pm, but this may be removed in the
    future.

* Config::IniFiles (tested with 2.14)
* MIME::Tools (>= 5.411)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Is there someone who understands this stuff, 'cos I don't at the moment!

cheers

B.

Steven Thomson

Re: aMavis
« Reply #10 on: July 30, 2002, 09:05:16 PM »
try this (from italian howto):
I think this is in place of the pl script.

# cd /usr/src
# tar zxvf amavis-perl-11.tar.gz
# ./configure --prefix=/usr/local --with-runtime-dir=/var/local/amavis --enable-syslog --with-syslog-level=mail.info --with-virusdir=/var/local/virusmails
# make
# cp amavis /usr/local/sbin
# chown qmailq.qmail /usr/local/sbin/amavis
# /etc/init.d/qmail stop
# cd /var/qmail/bin
# mv qmail-queue qmail-queue-real
# ln -s /usr/local/sbin/amavis qmail-queue
# /etc/init.d/qmail start

brian read

Re: aMavis
« Reply #11 on: July 31, 2002, 01:55:33 PM »
Steven

I am afraid this fails on the "make" (as there is no makefile, until you run the "perl makefile.pl" bit).

Also this is for amavis-perl, and I am trying to use amavis-ng.

I'll look a bit harder at the previous failure, and perhaps do  bit more surfing..

cheers

Brian

Michael Jung

Re: aMavis
« Reply #12 on: August 22, 2002, 02:47:19 PM »
brian read wrote:
>
> I've searched the forums, and aMavis gets mentioned
> occasionally, but I can't find any instructions.
>
> Anyone sucessfully installed it for 5.1.2?
Not on the 5.1.2 but still running on a 4.1.2 successfully.
Its al ong time ago I installed it on the server, but will have a look on my notes and will them translate from german:

First I installed the virus scanner www.sophos.com.
Get the source of amavis from www.amavis.org, at that time only the perl version was in developing, I'm still using the amavis 0.2.1
I had to install all componets for compilation, make and configure !
After installed that equipment I used the INSTALL document from aMavis step by step for the installation process successfully. It was important to install ALL needed decompress programms for the different file formats BFEORE doing the ./configure

I used
./configure --enable-qmail --with-mailto=root --with-sophos-ide=/usr/local/sav

This all was about 2 years ago and it saved more than a few hours in the meantime ;-)

Now I'm going to upgrade our server to 5.5 and change from Windows NT Clients to Windows XP, hopefully I'm getting the virus scanning up and running again in the next few weeks.

Michael

brian read

Re: aMavis
« Reply #13 on: August 22, 2002, 02:55:43 PM »
I've sort of given up on this at the moment, but would be interested to hear of your success.  i was trying to use aMavis-ng.

cheers

Brian

Rien Lamsma

Re: aMavis
« Reply #14 on: October 08, 2002, 01:40:47 AM »
I have succeeded in running Amavis with SME 5.5

I used Amavis-perl-11 with MacAffee

First i have installed the developer rpm's
then untarred the amavis tarrball
installed the Perl modules as stated
installed the compression tools (found with rpmfind.net)
ran ./configure in the untarred amavis dir
ran make
ran make install

then stopped qmail
and ran the following commands:

mv /var/qmail/bin/qmail-queue /var/qmail/bin/qmail-queue-real
chown qmailq.qmail /usr/sbin/amavis
ln -s /usr/sbin/amavis /var/qmail/bin/qmail-queue
chown root.qmail /usr/bin/suidperl
chmod 4711 /usr/bin/suidperl

then i started qmail again

if you run the configure command, it will tell you what is missing

but if you follow the guidelines in the README's from amavis, you should be ok

Good Luck