Clamdmail assumes that you have a working qmail, ripmime, clamav, and if used, spamassassin and clamd-greylist installation. In general, similar programs could be substituted for any one of these, but specific instructions are not provided for any other installations.
Thanks to the wonder of autotools:
./configure make make install (as root)
This will install clamd-queue and clamd-greylist (if built) into the sbin directory setup in the configure step (default: /usr/local/sbin).
Configure takes the usual path options as well as these clamdmail-specific options:
You'll probably want to provide clamdmail with some environmental variables -- see README for specifics. If you're using tcprules you can simply add environmental variables to your SMTP rules file. Otherwise export them in the script you use to launch your SMTP server.
Please note that you must either specify a valid PATH environmental variable or specify the ripmime, clamav, spamassassin, qmail-queue, and clamd-greylist programs by their full name for clamdmail. If you'd like clamdmail to use full paths by default simply modify src/init.h with the correct paths for your programs and recompile.
If you have the qmail alternate queue patch installed, be sure to tell call clamd-queue rather than qmail-queue. You can do this by passing qmail-smtpd the environmental variable:
If you don't have the alternate queue patch installed, first move these files:
mv qmail-queue qmail-queue.real mv clamd-queue qmail-queue
Then pass clamdmail the environmental variable: