Commit Graph

18 Commits (814ed77d7f3276c0ee6e799c3dec38cac1b7ba50)

Author SHA1 Message Date
kaiyou 814ed77d7f Add data structure for authentication tokens
kaiyou eb40ea830f Make users and aliases email case insensitive
kaiyou a96478c496 Fix remaining migration scripts and remove initdb/flushdb from manage.py
kaiyou b5c55d10d3 Add the relay concept to the model
kaiyou f823f1e8a5 Add the ability to configure alternative domains
kaiyou 07c789fc8b Add a button to keep forwarded messages
Pierre Jaury 25d8b9e614 Add a keep option per fetch, fixes
Pierre Jaury 38f291bc5d Implement a maximum quota per domain, fixes
Pierre Jaury a9cb1e2d11 Change the spam threshold to an integer, related to
Pierre Jaury 013286b8e1 Rename the freeposte/mailu directory and database
Christoph Rissner b9de28e910 dovecot: use rspamd X-Spamd-Result percentage to evaluate spam
- configures dovecot to use the spamtest sieve plugins
- configures sieve to read the score from X-Spamd-Result: headers
- before.sieve applies the ${spam_threshold} to the spamtest percentage
- freeposte.db stores a percentage for ${spam_threshold}
- migrate freeposte.db spam_threshold from X/15 to percentages

the filter investigates the overall ratio of the `rspamd` header
`X-Spamd-Result` that looks something like this:

X-Spamd-Result: default: True [12.36 / 15.00]
 RBL_SPAMHAUS_XBL(4.00)[]
 BAYES_SPAM(3.06)[92.67%]
 RBL_SPAMHAUS_XBL_ANY(4.00)[]
 ONCE_RECEIVED_STRICT(4.00)[]
 HFILTER_HELO_BAREIP(3.00)[]
 RBL_SORBS_DUL(2.00)[]
 HFILTER_HOSTNAME_UNKNOWN(2.50)[]
 RBL_SPAMHAUS_PBL(2.00)[]
 RBL_SORBS_RECENT(1.50)[]
 MIME_UNKNOWN(0.10)[application/x-rar-compressed]
 RDNS_NONE(1.00)[]
 RBL_SORBS(0.00)[]
 R_SPF_NEUTRAL(0.00)[?all]
 ONCE_RECEIVED(0.10)[]
 RBL_SEM(1.00)[]
 MIME_HTML_ONLY(0.20)[]
 RBL_UCEPROTECT_LEVEL1(1.00)[]
 MIME_GOOD(-0.10)[multipart/mixed]

the sieve `spamtest :percent :value` in this case would be
   100*12.36/15 = 82.4%
Pierre Jaury 2cb4a44b5a Display fetchmail errors to the user, fixes
Pierre Jaury 6dc9131b97 Fix the wildcard migration script, fixes
Pierre Jaury 0d3c75aa89 Fix a migration issue with wildcard aliases
Pierre Jaury 58337d7dd6 Set a proper default for spam thresholds
Pierre Jaury 0371da6307 Add the migration script for wildcard aliases, related to
Pierre Jaury ec12ee9703 Fix a last typo in the migration script, fixes
Pierre Jaury cca6eee8db Add the first database revision