Koozali.org: home of the SME Server

Amavis-ng on SME 5.1.2

Kelvin

Amavis-ng on SME 5.1.2
« on: October 14, 2002, 11:58:53 AM »
Hi,

Has anyone managed to get Amavis-ng working on SME 5.1.2 ? Damien Curtin has done great work in coming up with a contrib for SME 5.5 to use Amavis-ng with ClamAV. Unfortunately, I am unable to get his version of Amavis-ng to work on SME 5.1.2. Trying to compile the amavis-ng source files on my development SME 5.1.2 PC results in errors that I don't understand (don't have development PC handy - can't cut and paste at the moment).

The problem, I suspect, with using Damien's Amavis-ng is that SME 5.5 uses Perl-5.6.1 while SME 5.1.2 uses Perl-5.6.0. Rebuilding Damien's Amavis-ng from his source RPM with rpm --rebuild did not help.

Any help greatly appreciated.

Kelvin

Damien Curtain

Re: Amavis-ng on SME 5.1.2
« Reply #1 on: October 14, 2002, 12:16:15 PM »
Kelvin wrote:
>
> Hi,
>
> Has anyone managed to get Amavis-ng working on SME 5.1.2 ?
> Damien Curtin has done great work in coming up with a contrib
> for SME 5.5 to use Amavis-ng with ClamAV. Unfortunately, I am
> unable to get his version of Amavis-ng to work on SME 5.1.2.
> Trying to compile the amavis-ng source files on my
> development SME 5.1.2 PC results in errors that I don't
> understand (don't have development PC handy - can't cut and
> paste at the moment).

Sorry I meant to reply to your email but my work work randomly gets in the way of my other activities.

> The problem, I suspect, with using Damien's Amavis-ng is that
> SME 5.5 uses Perl-5.6.1 while SME 5.1.2 uses Perl-5.6.0.
> Rebuilding Damien's Amavis-ng from his source RPM with rpm
> --rebuild did not help.

Yes thats the exact problem, but all the perl rpms need to be rebuilt. They also need the build dependencies installed in specific order to actually be able to rebuild them correctly.

I just managed to allocate myself another machine today and have stuck redhat 7.1 on it so I am now in a position to rebuild all the rpms, Ill post a 5.1.2 link once this is done.
--
 Damien

Damien Curtain

Re: Amavis-ng on SME 5.1.2
« Reply #2 on: October 14, 2002, 12:19:57 PM »
The other thing to always be aware is that amavis-ng/clamav are not a perfect solution. At times they can barf in very bad ways, usually when resources are lacking, memory in particular.

But you get what you pay for.
--
 Damien

Kelvin

Re: Amavis-ng on SME 5.1.2
« Reply #3 on: October 14, 2002, 12:55:39 PM »
G'Day Damien,

Thanks for the reply. Did not mean to pre-empt any work you may be doing on this, just thought I'd ask to see if anyone else already has a working amavis-ng for 5.1.2 (so as not to re-invent the wheel and all that :-)).

> But you get what you pay for.

Yep, touche ! Then again, I dare say no software solution is perfect (Hah ! Try telling the customers that !). As soon as things appear to go south, all the why ? Why ? Whys ?! starts up.

With MS products, I sometimes resort to telling them to ask Uncle Bill. Can't say the same about open source products without shooting myself in the foot !

Cheers and thanks for your efforts !

Kelvin

Damien Curtain

Re: Amavis-ng on SME 5.1.2
« Reply #4 on: October 15, 2002, 11:36:18 AM »

Kelvin

Re: Amavis-ng on SME 5.1.2
« Reply #5 on: October 15, 2002, 11:39:14 AM »
Thanks Damien.

I'll give it a shot tonight.

Kelvin

Kelvin

Re: Amavis-ng on SME 5.1.2
« Reply #6 on: October 15, 2002, 01:14:27 PM »
Hi Damien,

There is one failed dependency :-

/pkgs/perl-5.6.0/bin/perl   is needed by perl-Archive-Tar-0.22-1

Oh yes, I'm testing on a freshly loaded SME 5.1.2 test server (no updates or Blades).

Regards,

Kelvin

Damien Curtain

Re: Amavis-ng on SME 5.1.2
« Reply #7 on: October 15, 2002, 01:23:05 PM »
Kelvin wrote:
>
> Hi Damien,
>
> There is one failed dependency :-
>
> /pkgs/perl-5.6.0/bin/perl   is needed by
> perl-Archive-Tar-0.22-1

Just refetch that rpm that was one I built before I set my path to an e-smith compatible path. The one on there now should be fine.
--
 Damien

Kelvin

Re: Amavis-ng on SME 5.1.2
« Reply #8 on: October 15, 2002, 01:33:17 PM »
Hi again Damien,

Sorry to do this to you but, issuing rpm -Uvh *.rpm from the folder of the downloaded files gives this error :-

file /usr/lib/perl5/5.6.0/i386-linux/perllocal.pod from install of amavis-ng-0.1.4.1-01dc conflicts with file from package perl-5.6.0-12

Trying rpm -ivh *.rpm produces even more error messages.

Kelvin

Kelvin

Re: Amavis-ng on SME 5.1.2
« Reply #9 on: October 15, 2002, 03:47:23 PM »
More to report.

I can install all packages using rpm -Uvh *.rpm, except for the amavis-ng rpm which I forced install with rpm -Uvh --force amavis*.rpm.

Testing by calling qmail-queue.amavis results in the following error :-
/^\x{FEFF}/: Can't use \x{} without 'use utf8' declaration at /usr/lib/perl5/site_perl/5.6.0/Config/IniFiles.pm line 518.
Compilation failed in require at /usr/lib/perl5/site_perl/5.6.0/AMAVIS.pm line 40.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.6.0/AMAVIS.pm line 40.
Compilation failed in require at /usr/sbin/qmail-queue.amavis line 5.
BEGIN failed--compilation aborted at /usr/sbin/qmail-queue.amavis line 5.


Edited the said IniFiles.pm and added use itf8; near the beginning of the file and rerand qmail-queue.amavis. This time I get :-

[root@testpc Config]# qmail-queue.amavis
Illegal hexadecimal digit '}' ignored at /usr/lib/perl5/site_perl/5.6.0/Config/IniFiles.pm line 519.
Illegal hexadecimal digit '}' ignored at /usr/lib/perl5/site_perl/5.6.0/Config/IniFiles.pm line 519.
Use of uninitialized value in string ne at /usr/lib/perl5/site_perl/5.6.0/AMAVIS/Logging.pm line 85.
Use of uninitialized value in concatenation (.) at /usr/lib/perl5/site_perl/5.6.0/AMAVIS/Logging.pm line 90.
Use of uninitialized value in concatenation (.) at /usr/lib/perl5/site_perl/5.6.0/AMAVIS/Logging.pm line 90.
Warning: No logging enabled.Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.6.0/AMAVIS.pm line 133.
Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.6.0/AMAVIS.pm line 185.
Use of uninitialized value in concatenation (.) at /usr/lib/perl5/site_perl/5.6.0/AMAVIS.pm line 191.
AMAVIS: Couldn't load AMAVIS::MTA:: at /usr/lib/perl5/site_perl/5.6.0/AMAVIS.pm line 194.

And decided it was time to stop as I obviously don't know what I'm doing !

Kelvin

Bob King

Re: Amavis-ng on SME 5.1.2
« Reply #10 on: October 16, 2002, 03:30:48 AM »
Please let us know when this is working. I am very interested in it also.

Steve Garratt

Re: Amavis-ng on SME 5.1.2
« Reply #11 on: October 18, 2002, 04:31:10 AM »
Damien,

I have installed a fresh installation of SME 5.5 and have tried using your amavis-ng rpm module.  I am using Nai uvscan rather than the clam virus scanner...is there some way to configure it to use the uvscan engine?

- Steve

Bob King

Re: Amavis-ng on SME 5.1.2
« Reply #12 on: October 18, 2002, 02:05:24 PM »
Look at the amavis.config file, there you will fine the following:

;; Which virus scanner to use. Use more than one if you desire
; virus-scanner = FSAV
; virus-scanner = AVP
; virus-scanner = FSP
; virus-scanner = hbEDV
; virus-scanner = Sophos
; virus-scanner = Sophie
; virus-scanner = Bitdefender
; virus-scanner = FPROT
; virus-scanner = MKS
; virus-scanner = NAI
; virus-scanner = NVC
; virus-scanner = Panda
virus-scanner = CLAM
; virus-scanner = Trend
; virus-scanner = OpenAntiVirus

Comment out virus-scanner = CLAM and uncomment virus-scanner = NAI

You may have to change a few other things also but that should get you close anyway.

You can get more info at http://www.amavis.org/

Sean Bofinger

Re: Amavis-ng on SME 5.1.2
« Reply #13 on: October 25, 2002, 06:09:08 AM »
Hi,

I have been following all the instruction, but i have one little problem...
when i run rpm -ivh on the amavis-ng package, i get the following error.

           "file /usr/lib/perl5/5.6.0/i386-linux/perllocal.pod from install of amavis-ng-             0.1.4.1-01dc conflicts with file from package perl-5.6.0-12"

i haven't installed any of the blades.  its a brand new installation.

cheers
Sean

Kelvin

Re: Amavis-ng on SME 5.1.2
« Reply #14 on: October 25, 2002, 12:35:58 PM »
Sean,

Look at

http://forums.contribs.org/index.php?topic=15358.msg58983#msg58983

and

http://forums.contribs.org/index.php?topic=15358.msg58983#msg58983

Unfortunately, this is not the only problem. So far, I've not had any success in getting it to work under 5.1.2.

Kelvin