Hi,
I'm trying to implement F-Secure Linux Security version 11.x with amavisd-new on fedora. I've read that it doesn't work very well with amavisd-new, but that's what we've implemented on the servers in our organization, so I'd like to try.
I've tried using the following:
['F-Secure Antivirus for Linux servers',
['/opt/f-secure/fssp/bin/fsav', 'fsav'],
'--virus-action1=report --archive=yes --auto=yes '.
'--usedaemon --socketname=/tmp/.fsav-0-fsav --dumb=yes --list=no --mime=yes {}', [0], [3,4,6,8],
qr/(?:infection|Infected|Suspected|Riskware): (.+)/m ],
Running that same command-line manually results in:
# /opt/f-secure/fssp/bin/fsav --virus-action1=report --archive=yes --auto=yes --usedaemon --dumb=yes --list=no --mime=yes --socketname=/tmp/.fsav-0-fsav /root/macro-virus
EVALUATION VERSION - FULLY FUNCTIONAL - FREE TO USE FOR 30 DAYS.
To purchase license, please check http://www.F-Secure.com/purchase/
F-Secure Anti-Virus CLI version 1.0 build 0060
Connect to fsavd failed: Connection to fsavd failed.
I've also tried without the socketname and usedaemon options and it produces the following error:
Aug 30 03:29:50 alex amavis[733]: (00733-01) (!)run_av (F-Secure Antivirus) FAILED - unexpected exit 1, output="Something wrong in initializing backend. Code:256\nFATAL: Failed to get configuration"
Aug 30 03:29:50 alex amavis[733]: (00733-01) (!)F-Secure Antivirus av-scanner FAILED: /opt/f-secure/fssp/bin/fsav unexpected exit 1, output="Something wrong in initializing backend. Code:256\nFATAL: Failed to get configuration" at (eval 87) line 905.
There are also the following errors in /var/opt/f-secure/fsav/fsoasd.log:
1472664157 | ERROR | 0xf7241b40 | fsoasd/AvJudge.c:0334 | Allowing access on error: '/var/spool/postfix/incoming/7FB5522120'
1472664685 | ERROR | 0xf709bb40 | fsoasd/AvJudge.c:1210 | Session to secondary scanner at /tmp/fsav-postfix/fsavd failed
1472664685 | ERROR | 0xf709bb40 | fsoasd/AvJudge.c:0794 | Error in scanning file '/var/spool/postfix/incoming/4838025B6A': Could not open the file
Any ideas greatly appreciated. I don't fully understand how it should be implemented.
Thanks,
Alex