Topic: Quarantine and whitelisting a recipient
==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): postgreSQL
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: Ubuntu 14.04.2 LTS
- Related log if you're reporting an issue:
====
Hi,
I'd like to understand how the quarantine mechanism works in iRedmail.
I have a particular recipient that receives automated email from remote devices (printers). Some headers are incorrect and thus those emails are detected as SPAM.
In order to bypass spam detection for the user reports@mydomain.com, I tried the following settings in /etc/amavis/conf.d
```
@bad_header_lovers_maps = ( ['reports@mydomain.com'], );
@spam_lovers_maps = @bad_header_lovers_maps;
@bypass_header_checks_maps = @bad_header_lovers_maps;
@bypass_banned_checks_maps = @bad_header_lovers_maps;
```
However spam detection still occurs and valid email gets marked as SPAM. Do you have another suggested setting I could try?
Also some emails are not delivered to the mailbox, although I can clearly see in the logs the email in question "got through" amavis:
```
mail amavis[2234]: (02234-06) Passed CLEAN {RelayedInternal}, MYUSERS LOCAL ...
```
I noticed the following in psql:
```psql
postgres=# \c amavisd
You are now connected to database "amavisd" as user "postgres".
amavisd=# SELECT COUNT(*) FROM maddr;
count
-------
200
(1 row)
amavisd=# SELECT COUNT(*) FROM msgrcpt;
count
-------
7719
(1 row)
amavisd=# SELECT COUNT(*) FROM msgs;
count
-------
7720
(1 row)
amavisd=# SELECT COUNT(*) FROM quarantine;
count
-------
0
```
I am not sure I understand the responsibilities of each table. Do you have a document explaining this.
Also how may I (manually) release a supposedly quarantined email, so that it gets delivered in the appropriate mailbox.
Thanks for your help.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.