r5 - 17 May 2007 - 04:45:41 - MrCYou are here: ClamAV Wiki >  Main Web  >  ClamAndPostfix > AmavisdNew

Generic info

amavisd-new is a rewritten version of amavis maintained by Mark Martinec. clamscan is enabled automatically if clamscan binary is found at amavisd-new startup time. clamd is activated by uncommenting its entry in the @av_scanners list, file /etc/amavisd.conf.

Testimony

In my compagny, I installed mail server (Postfix, Amavids-new, Spamassassin and ClamAV...). I'm very satisfied by performances. It's extremely rare that ClamAV don't detect virus.

-- HaveAnthony - 04 Mar 2007

Caveats

  • I'm running ClamAV + amavisd-new and get the following error in my mail log amavis: Clam Antivirus-clamd FAILED - unknown status:/var/lib/amavis/amavis-20060917T120205-21416/parts: lstat() failed. ERROR\n amavis: WARN: all primary virus scanners failed, considering backups . What's wrong? One of the reasons is that clamd cannot access the messages to scan because it is running as other user than amavis is. Such separation is a desirable approach and it is better not to remove that. In the following solution I assume that clamd is run as user clamav, group clamav and amavisd is run as user amavis, group amavis. Add user clamav to the group amavis (the corresponding entry in /etc/group looks like amavis:x:105:clamav", (105 is the example GID of group amavis)). Put AllowSupplementaryGroups? in clamd.conf and restart clamd. This way clamd will be able to read amavisd's files without giving to amavisd too much power over clamd.

  • In order to use amavisd-new with clamd, you have to add the clamav user to the amavis group, otherwise clamd won't be able to read/examine the temp. files created by amavisd-new.
  • In order to use clamd, amavisd-new needs to be able to communicate with clamd via socket. Typically, you will want to have the same path for the LocalSocket option in clamd.conf and for the clamd entry in @av_scanners inside amavisd.conf .

Add ons

You can generate some nifty stats from amavisd log files using parselog and amavis-logwatch.

Old versions/forks


</center-->

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding ClamAV Wiki? Send feedback