1

Topic: Where is spam stored?

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Linux/BSD distribution name and version: Debian 7.1
- Related log if you're reporting an issue:
====

Emails that pass all spam and policy checks are stored in /var/vmail. What about emails that are flagged by Amavis as spam and thus not delivered -- are they kept anywhere on the file system?

----

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

2

Re: Where is spam stored?

*) If you choose to quarantine them on file system, it will be placed under /var/lib/amavis/ on Debian 7.
*) If you quarantine spam in to SQL database, it will be stored in SQL table "amavisd.quarantine".

3

Re: Where is spam stored?

OK. In /etc/amavis/conf.d/50.user, I see this:

# Quarantine SPAM.
#$spam_quarantine_to = 'spam-quarantine';

# Quarantine method. How to store mail body.
#   - 'local:spam-%i-%m', quarantine mail on local file system.
#   - 'sql:', quarantine mail in SQL server specified in @storage_sql_dsn.
#   - undef, do not quarantine mail.
#$spam_quarantine_method = 'sql:';
$spam_quarantine_method = undef;

To store on the file system, I would (1) uncomment the second line, and (2) change undef in the last line to local:spam-%i-%m, correct?

4

Re: Where is spam stored?

Yes. and restart Amavisd service.