1 (edited by jusis 2011-04-04 03:06:52)

Topic: [SOLVED] Fresh install and (ClamAV-clamd) FAILED - unexpected

Can`t send email, I got this error:

Apr  3 21:40:21  postfix/smtpd[20771]: connect from mail.!replaced!.com[127.0.0.1]
Apr  3 21:40:21  postfix/smtpd[20771]: DFAD4127D38: client=mail.!replaced!.com[127.0.0.1], sasl_method=LOGIN, sasl_usern
ame=!user_replaced!@!replaced!.com
Apr  3 21:40:21  postfix/cleanup[20777]: DFAD4127D38: message-id=<8a36bd2393ef0baef0beea70d260ad73@!replaced!.com>
Apr  3 21:40:21  roundcube: User !user_replaced!@!replaced!.com [!replaced!]; Message for !user_replaced!@!replaced!.com; 250: 2.0.0 Ok: queue
d as DFAD4127D38
Apr  3 21:40:21  postfix/qmgr[18450]: DFAD4127D38: from=<!user_replaced!@!replaced!.com>, size=559, nrcpt=1 (queue active)
Apr  3 21:40:22  postfix/smtpd[20771]: disconnect from mail.!replaced!.com[127.0.0.1]
Apr  3 21:40:22  amavis[20458]: (20458-03) (!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/amavis/tmp/am
avis-20110403T214022-20458/parts: lstat() failed: Permission denied. ERROR\n"
Apr  3 21:40:22  amavis[20458]: (20458-03) (!)ClamAV-clamd av-scanner FAILED: CODE(0xa6bc094) unexpected , output="/
var/amavis/tmp/amavis-20110403T214022-20458/parts: lstat() failed: Permission denied. ERROR\n" at (eval 104) line 594.
Apr  3 21:40:22  amavis[20458]: (20458-03) (!!)WARN: all primary virus scanners failed, considering backups
Apr  3 21:40:22  amavis[20458]: (20458-03) (!)run_av (ClamAV-clamscan) FAILED - unexpected exit 2, output="WARNING:
Ignoring deprecated option --disable-summary\nERROR: Option --tempdir requires a non-empty string argument\nERROR: Can't pa
rse command line options"
Apr  3 21:40:22  amavis[20458]: (20458-03) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 2
, output="WARNING: Ignoring deprecated option --disable-summary\nERROR: Option --tempdir requires a non-empty string argume
nt\nERROR: Can't parse command line options" at (eval 104) line 594.
Apr  3 21:40:22  amavis[20458]: (20458-03) (!!)TROUBLE in check_mail: virus_scan FAILED: AV: ALL VIRUS SCANNERS FAIL
ED                                                                                                                         Apr  3 21:40:22  amavis[20458]: (20458-03) (!)PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20110403T214022-20458
Apr  3 21:40:22  postfix/smtp[20782]: DFAD4127D38: to=<!user_replaced!@!replaced!.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.
23, delays=0.1/0.01/0/0.12, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=2
0458-03, virus_scan FAILED: AV: ALL VIRUS SCANNERS FAILED (in reply to end of DATA command))

Is there any way to fix that?

-------------------------SOLVED---------------------------------------

Permission problems - is clamd running as user clamav? If so, make sure
user clamav is in group amavis (or whatever group owns those
directories, and add AllowSupplementaryGroups to clamav.conf

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.