Configure Amavis with Postfix

Notes

Read first Create Postfix Relay Server, this documentation here required a running postfix configuration on a Debian Wheezy system.

Installation

First install amavis, clamav and required archive tools to scan archive file content:

Configuration

Discard bad header, virus and banned mail content, so set the three variables to undef, you can also configure other option like an e-mail address or folder.

Enable antivirus check on content filter:

Set $final_banned_destiny to D_REJECT Set $virus_admin to your postmaster mail address Set $X_HEADER_LINE to emtpy, to disable the X-Header TAG




Configure Amavis with Postfix

Add amavis group to clamav user

Restart services