Clamdmail is a qmail-queue replacement that allows mail to be filtered, greylisted, or rejected before queuing based on connection information and/or message content by providing an interface for programs like clamd-greylist, clamdscan and SpamAssassin.