How can I disable admin email notifications in Amavis?

Amavis has different default options for controlling where virus, spam, banned file attachments, or bad header notifications get sent to. The defaults look like:

# $newvirus_admin = undef;
# $virus_admin = undef;
# $spam_admin = undef;
# $banned_admin = undef;
# $bad_header_admin = undef;

Debian/Ubuntu sets virus notifications in /etc/amavis/conf.d/20-debian_defaults:

$virus_admin = "postmaster\@$mydomain"; # due to D_DISCARD default

To disable virus notifications on Centos/RHEL/CloudLinux/AlmaLinux edit the file /etc/amavisd/warden.conf or on Debian/Ubuntu edit the file /etc/amavis/conf.d/99-warden and add the line (before the last line 1;):

$virus_admin = undef;

After making the changes restart Amavis:

// Centos/RHEL/CloudLinux/AlmaLinux
systemctl restart amavisd

// Debian/Ubuntu
systemctl restart amavis
  • notifications, postmaster
  • 1 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

How can I change the interface language of the extension?

You can change the interface language under Settings -> Application Settings -> Locale...

How can I whitelist or blacklist a mail server from greylisting?

To Whitelist a Mail Server From Greylisting Navigate to Warden -> Settings ->...

How can I enable third party anti-virus signatures within Warden to improve the ClamAV detection rate?

Warden supports enabling third party anti-virus signatures to improve the detection rate. These...

How can I setup a local caching DNS resolver to speed up DNS queries used by Amavis?

Run the following command to check if local DNS caching is enabled: host -tTXT...

How can I enable the Rule2XSBody plugin to speed up anti-spam rules by compiling them into native code?

Install the required packages Install the required packages and compile our rules into native...