diff --git a/faq/amavisd.sql.db.md b/faq/amavisd.sql.db.md index 9dc6d4d7..4666dba4 100644 --- a/faq/amavisd.sql.db.md +++ b/faq/amavisd.sql.db.md @@ -13,14 +13,24 @@ Amavisd has two settings to use its SQL tables: * quarantined mails. Note: it stores full message of quarantined mail, including mail body. - `@storage_sql_dsn` uses 4 sql tables: `msgs`, `msgrcpt`, `maddr`, `quarantine`. + `@storage_sql_dsn` uses 4 sql tables: + + * `msgs` + * `msgrcpt` + * `maddr` + * `quarantine` * `@lookup_sql_dsn`: used to store: * per-account spam policy * per-account white/blacklists - `@lookup_sql_dsn` uses 4 sql tables: `mailaddr`, `policy`, `users`, `wblist`. + `@lookup_sql_dsn` uses 4 sql tables: + + * `mailaddr` + * `policy` + * `users` + * `wblist` ## Details @@ -59,3 +69,15 @@ Amavisd has two settings to use its SQL tables: * `amavisd.policy`: used to define per-recipient spam policy, and max message size limit. + +### TODO: `@storage_sql_dsn` + +* `maddr` +* `msgs` +* `msgrcpt` +* `quarantine` + +Since Amavisd will store basic info of every inbound/outbound email, the SQL +database will grow bigger and bigger, iRedMail setups a daily cron job to +clean up old records with script shipped in iRedAdmin (available in both +iRedAdmin open source edition and iRedAdmin-Pro): `tools/cleanup_amavisd_db.py`. diff --git a/html/amavisd.sql.db.html b/html/amavisd.sql.db.html index bb0421e4..606fc29f 100644 --- a/html/amavisd.sql.db.html +++ b/html/amavisd.sql.db.html @@ -17,6 +17,7 @@
@storage_sql_dsn
uses 4 sql tables: msgs
, msgrcpt
, maddr
, quarantine
.
@storage_sql_dsn
uses 4 sql tables:
msgs
msgrcpt
maddr
quarantine
@lookup_sql_dsn
: used to store:
@lookup_sql_dsn
uses 4 sql tables: mailaddr
, policy
, users
, wblist
.
@lookup_sql_dsn
uses 4 sql tables:
mailaddr
policy
users
wblist
amavisd.policy
: used to define per-recipient spam policy, and max message
size limit.
Document published under a CC BY-ND 3.0 license. If you found something wrong, please do contact us to fix it.