How can I change the reject message when a message is rejected from the spam kill level?

When a message is rejected by the spam kill level Amavis will normally respond with the reply "spam":

554 5.7.0 Reject, id=27440-12 - spam (in reply to end of DATA command)

If you want to change this to something more descriptive 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:

$smtp_reason_by_ccat{&CC_SPAM} = 'id=%n - rejected for policy reasons';

After making these changes restart Amavis:

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

// Debian/Ubuntu
systemctl restart amavis
  • spam kill level
  • 0 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel

How can I change the interface language of the extension?

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

How can I disable admin email notifications in Amavis?

Amavis has different default options for controlling where virus, spam, banned file attachments,...

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...