Amavisd-new is an anti-virus and anti-spam combination. It's job is to read a mail and check it against ClamAV and Spamassassin to decide if it should be accepted as-is, marked as probable spam or simply dropped. It is a daemon process that accepts mail then re-sends it using SMTP. The key to getting amavisd into the mail loop lies in /etc/postfix/master.cf. master.cf specifies which postfix componants should run, where they should listen and what command line options to pass to the componant. This is a flexible system that allows us to redirect all incoming mail (recieved by smtpd) through amavisd and then accept processed mail back from amavisd for final delivery or relay (if applicable). ======Installing amavisd-new====== First, we grab amavisd-new and a few recommended helper packages apt-get install amavisd-new spamassassin clamav clamav-freshclam bzip2 ======Configuring====== All of the packages except for amavis itself are fine with the default configurations in Etch :-) Amavisd is configured in __/etc/amavisd/conf.d__. First, edit 05-domain-id. Change @local_domains_acl = ( ".$mydomain" ); to @local_domains_acl = ( ` sed -e 's/^.*\$/".&",/'