

In case of connection errors or failures reported by the external service, the fail symbol (e.g. If this symbol is set, the reject action will be triggered. If the service detects one or more threats, the configured symbol (such as ICAP_VIRUS) will be set with a description of the threats. To configure an external service, rules must be defined.

To finalize changes: service amavis restart Postfix configĬonfiguring amavis alone won’t work. If you are getting too many false positives, you may change $sa_tag_level_deflt to a positive value.įor lookup_sql_dsn, please make sure your mysql database details matches one that is used by postfix & dovecot. $sql_select_policy = 'SELECT domain FROM domain WHERE IN (%k)' # We need to provide list of domains for which filtering need to be = ( # Prevent spams from automatically rejected by mail-server Set filtering preference:Īdd following: $sa_spam_subject_tag = undef Also note that these checks delays mail delivery (generally by few seconds). ClamAV consumes considerable CPU resources.

If your server has less spare CPU power, you may leave virus-checking disabled. \%bypass_spam_checks, \$bypass_spam_checks_re) Enable virus & spam checking: vim /etc/amavis/conf.d/15-content_filter_mode

Amavis Configurationīy default, amavis comes with all kind of checks disabled! Might sound strange but we need to enable everything. So we need to configure amavis only to spam & virus filtering implemented. It uses spamassassin for spam-testing and clamav for virus-testing. Please note that amavis itself doesn’t do any kind of spam-checking or virus-checking.
Spamassassin setup install#
Installing packages amavis, clamav, spamassassin apt-get install amavisd-new spamassassin clamav clamav-daemon arj zoo nomarch cpio lzop cabextract apt-listchanges libauthen-sasl-perl libdbi-perl libmail-dkim-perl p7zip rpm unrar-free libsnmp-perl Spam filtering setup using spamassassin.
