1

Topic: deleting quarantine spam mail without storing

==== Provide basic information to help troubleshoot and get quick answer ====
- iRedMail version:
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
====

Hi Zhang,

Can we configure amavisd to delete the spam mails directly without storing them in mysql? Can we achive that with D_REJECT? Currently we are using $final_spam_destiny = D_DISCARD; and storing spam in mysql. Daily more than 10000 spam mails are coming which making the server slower. So we would like to discard them directly.

Thanks.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: deleting quarantine spam mail without storing

You can achieve it with below Amavisd settings:

$final_spam_destiny = D_DISCARD;

#
# Comment out below two settings to use Amavisd default settings.
#
# Amavisd will store quarantined emails on file system instead of SQL database.
# Directory used to store quarantined mails is defined in Amavisd setting "$MYHOME",
# it's /var/amavis/ by default on RHEL/CentOS/Scientific Linux, it may be different
# on other Linux/BSD distros.

#$spam_quarantine_to = ...;
#$spam_quarantine_method = ...;

Restarting Amavisd service is required to make it work.