[Avcheck] Please help.

Melekhov Alexandre A. amel at df.ru
Sun Jan 9 14:21:58 MSK 2005


Hi!

Need to make friends Postfix & Clamav by Avcheck.

Set up in master.cf

smtp      inet  n       -       y       -       -       smtpd -o content_filter=avcheck
[..]
localhost:1025 inet n   -       n       -       -       smtpd -o content_filter=
avcheck    unix -       n      n      -       5      pipe
        flags=q user=avclient argv=/var/spool/av/avcheck
        -d /var/spool/av/tst -s AVP:/var/clamd/clamd.sock
        -t 3 -f ${sender} -S :1025 -- ${recipient}
        -h Message checked by Clamav-0.8

1025 port opens and mail from localhost relays, but on telnet to 25 port in maillog i receive error like this:

[zorg at shadow zorg]$ telnet mail10 25
Trying mail10...
Connected to mail10.
Escape character is '^]'.
220 mail10 ESMTP Postfix (2.1.5) NO UCE/UBE
helo amel
250 mail10.dataforce.net
mail from: <amel at df.ru>
250 Ok
rcpt to: <amel at df.ru>
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
123
..
250 Ok: queued as 76F5313895
quit
221 Bye
Connection closed by foreign host.


Jan  9 14:07:18 mail10 postfix/smtpd[8739]: connect from hq[]
Jan  9 14:07:37 mail10 postfix/smtpd[8739]: 76F5313895: client=hq[]
Jan  9 14:07:42 mail10 postfix/cleanup[8742]: 76F5313895: message-id=<20050109110730.76F5313895 at mail10>
Jan  9 14:07:42 mail10 postfix/qmgr[8707]: 76F5313895: from=<amel at df.ru>, size=327, nrcpt=1 (queue active)
Jan  9 14:07:42 mail10 postfix/pipe[8743]: 76F5313895: to=<amel at df.ru>, relay=avcheck, delay=12, status=deferred (temporary failure. Command output: avcheck: unexpected AVP return code 69 (0x4e55) (kavdaemon av bases not found) )
Jan  9 14:07:44 mail10 postfix/smtpd[8739]: disconnect from hq[]

In /var/spool/av/:

mail10!root:/var/spool/av# ls -la
итого 48
drwxr-xr-x    7 root     root         4096 Янв  9 14:10 .
drwxr-xr-x    7 root     root         4096 Янв  9 12:49 ..
-rwxr-xr-x    1 root     root        17368 Янв  9 12:56 avcheck
lrwxrwxrwx    1 root     root           15 Янв  9 12:59 bases -> /var/lib/clamav
drwxr-x---    2 avdaemon avgroup      4096 Янв  9 12:49 ctl
drwxr-xr-x    2 root     root         4096 Янв  9 12:50 dev
drwxr-xr-x    2 root     root         4096 Янв  9 12:49 proc
drwx------    2 avdaemon root         4096 Янв  9 12:49 tmp
drwxr-x---    2 avclient avgroup      4096 Янв  9 14:10 tst

Socket /var/clamd/clamd.sock is availavle (to any user) and clamd running. /var/lib/clamav - also available to read.

Does anyone of you resolved this problem?

--
===========================
Best regards, SKYDIVER-RIPN
amel at df.ru


More information about the Avcheck mailing list