Koozali.org: home of the SME Server

New CLAM , Amavis SME 5.5

Paul Wolsink

New CLAM , Amavis SME 5.5
« on: January 19, 2003, 02:35:54 AM »
Hi there
I installed Damiens Amavis/Clam setup and although it is installed OK, I get the following error message.
Almost the same as a previous user had, but he had a temporary qmail-queue failure which was due to rights on the amavis.conf file.

This is a "554 Permanent qmail-queue failure"
On Mail Client.

I tried the rpm --setperms.... on amavis.conf, but that did not work.

I have multiple virual domains. Could it be that? I had it as :
local domain = domain.com
local domain = domain2.com
etc in lines underneath each other in amavis.conf. Is that right?

I also use the SSL security setup of Damiens and I used the second option as described on the News page to run Amavis:
 I quote
"OR
 
alternatively you could use the amavis module I wrote for clamd itself.

Download http://www.pagefault.org/download/misc/Clamd.pm and install it in
/usr/lib/perl5/site_perl/5.6.1/AMAVIS/AV/

Then just add to /etc/amavis/amavis.conf:

; virus-scanner = CLAM
virus-scanner = Clamd                                                        

[Clamd]

socket = /var/lib/clamav/clamd.sock

"

I double checked everything, but dont see anything wrong.

The logs from server says the following:
--- cut here -----
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.6.1/AMAVIS.pm line 191
AMAVIS: Couldn't load AMAVIS::MTA:: at /usr/lib/perl5/site_perl/5.6.1/AMAVIS.pm line 194
smtp-front-qmail[2597]: Permanent qmail-queue failure.
LOG5[2578:1024]: Connection Closed
-------------------------------------------------------------

Any ideas/advise would great

thanks
Paul

Damien Curtain

Re: New CLAM , Amavis SME 5.5
« Reply #1 on: January 19, 2003, 03:47:26 AM »
Paul Wolsink wrote:
>
> Hi there
> I installed Damiens Amavis/Clam setup and although it is
> installed OK, I get the following error message.
> Almost the same as a previous user had, but he had a
> temporary qmail-queue failure which was due to rights on the
> amavis.conf file.
>
> This is a "554 Permanent qmail-queue failure"
> On Mail Client.
>
> I tried the rpm --setperms.... on amavis.conf, but that did
> not work.
>
> I have multiple virual domains. Could it be that? I had it as :
> local domain = domain.com
> local domain = domain2.com
> etc in lines underneath each other in amavis.conf. Is that
> right?
>
> I also use the SSL security setup of Damiens and I used the
> second option as described on the News page to run Amavis:
>  I quote
> "OR
>  
> alternatively you could use the amavis module I wrote for
> clamd itself.
>
> Download http://www.pagefault.org/download/misc/Clamd.pm and
> install it in
> /usr/lib/perl5/site_perl/5.6.1/AMAVIS/AV/
>
> Then just add to /etc/amavis/amavis.conf:
>
> ; virus-scanner = CLAM
> virus-scanner =
> Clamd
>
> [Clamd]
>
> socket = /var/lib/clamav/clamd.sock
>
> "
>
> I double checked everything, but dont see anything wrong.
>
> The logs from server says the following:
> --- cut here -----
> Use of uninitialized value in concatenation (.) or string at
> /usr/lib/perl5/site_perl/5.6.1/AMAVIS.pm line 191
> AMAVIS: Couldn't load AMAVIS::MTA:: at
> /usr/lib/perl5/site_perl/5.6.1/AMAVIS.pm line 194
> smtp-front-qmail[2597]: Permanent qmail-queue failure.
> LOG5[2578:1024]: Connection Closed
> -------------------------------------------------------------
>
> Any ideas/advise would great

You haven't defined an mta, see the sample amavis.conf file on the howto page.

--
 Damien

Paul Wolsink

Re: New CLAM , Amavis SME 5.5
« Reply #2 on: January 19, 2003, 02:41:36 PM »
Hi Damien

Thanks for your advise. That was indeed the answer and silly me, I later saw that another previous user had exactly the same error. The search I did didn't come up with his message, therefore I asked again. I downloaded the sample amavis.conf, but failed to copy it across to the correct directory.

I can now send mail because of this error which is now fixed.
(the mail still did not get out as the clamd.sock was not installed in the correct directory and I cannot find it with "find / -name clamd.sock -print" command.)
Reinstalling did not help either. I however did not remove the Clam*.rpm and reinstalled.
What I did was change the amavis.conf to use clam instead of clamd.
Now it is working and scanning and finding eicar in realtime.

Can you please advise which is
1. the better to use
2. the possible reason why the clamd.sock is not where it is suppose to be.
3. the difference between clamav-0.54-4.i386.rpm and clamav-0.54-5dc.i386.rpm
(I used the latter only)
4. how up to date are the virus dat files?
5. Can RAV and Clam work together on the same machine and if so, are there any peculiarities to watch out for?

thanks a mil for your advise and help and I as so many others are really greatfull for the expertise that you share with us.

regards
Paul

Damien Curtain wrote:
>
> Paul Wolsink wrote:

> > I installed Damiens Amavis/Clam setup and although it is
> > installed OK, I get the following error message.

> > This is a "554 Permanent qmail-queue failure"
> > On Mail Client.


> You haven't defined an mta, see the sample amavis.conf file
> on the howto page.
>  Damien