Author Topic: avast mailscanner problem  (Read 6742 times)

0 Members and 1 Guest are viewing this topic.

GlowNDark

  • Guest
avast mailscanner problem
« on: November 14, 2006, 01:11:08 AM »
Hi

I installed avast unix.linux edition on my FreeBSD 6.1 server step by step folowing installation guide from avast4mail2.0.1.tar.gz arhive, but mail scanner not working...
I send to my mail file with test virus eicar.com and recieve this file to my inbox...
My mail server is qmail with vpopmail...

Dublin

  • Guest
Re: avast mailscanner problem
« Reply #1 on: November 14, 2006, 06:06:05 PM »
hi,
first, try standalone avast! mail filter - insert some mail message to avastfilter's STDIN
  % cat message.eml | avastfilter

avastfilter should output the message including 'X-Antivirus...' mail headers. If an error occure, alter /var/log/mail.log and/or /var/log/avast4/avastd.log files to find what is wrong.

GlowNDark

  • Guest
Re: avast mailscanner problem
« Reply #2 on: November 21, 2006, 02:38:49 AM »
I test scanner with % cat message.eml | avastfilter.... working
I put in /var/qmail/supervise/qmail-smtpd/run  this line:

QMAILQUEUE="/usr/bin/avastfilter" ; export QMAILQUEUE

But I brake therefore Receive emails...
(I used qmailrock configured at http://freebsd.qmailrocks.org/ and started by tcprules)

 With this line QMAILQUEUE="/usr/bin/avastfilter" ; export QMAILQUEUE i have message in maillog - message is clean, But I then do not receive the notes of my mail  box...

I trayning to put :allow,QMAILQUEUE="/usr/bin/avastfilter" in /etc/tcp.smtp
But I therefore again stopped to receive letters to his mail box

How to configure avast! so that yes it works?

Dublin

  • Guest
Re: avast mailscanner problem
« Reply #3 on: November 23, 2006, 12:15:47 PM »
please, edit src/avastfilter.c source file and modify line no.1091
original line is:
  if (FD_ISSET(fd1, &wfds))
to:
  if (0)

then recompile and reinstall fixed avastfilter binary
this is temporary fix for your qmail


my /etc/tcp.smtp file contains this line:
  :allow,QMAILQUEUE="/usr/bin/avastfilter"