Commit Graph

52 Commits (aac488d7e3aa0efd6d1c4c78d6a13ed738472b50)

Author SHA1 Message Date
kaiyou 8e25de6050 Fix vacation messages by setting the submission host properly
kaiyou a57096e613 Support specifyin multiple hostnames
kaiyou 1b13728df3 Fix the dovecot startup script
kaiyou 13b9a9207d Switch to python and Jinja2 for the dovecot container
kaiyou 7a4d3c0cb6 Generate Dovecot dh params locally until release 2.3
kaiyou 4e0bd32d50 Support using dhparam in Postfix and Dovecot
kaiyou 4ee086a52a Make the recipient delimiter customizeable, fixes and
Niels Keurentjes 010e5ca2a6 Perform read-only splits for the containers
The .gitsplit.yml file contains the configuration to be used by Jérémy
Derussé's docker-gitsplit container.

For usage instructions see https://github.com/jderusse/docker-gitsplit
Pierre Jaury 0cf1d82dde Use --no-cache when installing packages
Pierre Jaury b46433cabe Fix a typo in the repor-ham sieve script, fixes
Pierre Jaury 18834de56e Handle forwards as aliases with local copy
Pierre Jaury 456e2dcc05 Stat dirs in Dovecot to avoid issues with ext2/3/4, fixes
Pierre Jaury 692bcda868 Allow forward to multiple destinations, fixes
Pierre Jaury f2ff1eb955 Remove binary apk and use sieve_imap for antispam learning, fixes
Pierre Jaury 5906999909 Send vacation replies even for aliases, related to
Pierre Jaury cb73ca9383 Set an envelope address in vacation replies to get DKIM, related to
Pierre Jaury 54082140e1 Add pop3 and pop3 support to the dovecot container, related to
Pierre Jaury 013286b8e1 Rename the freeposte/mailu directory and database
Pierre Jaury 72c4d2c15b Disable access to extdata from user sieve scripts
Pierre Jaury c1f562edc3 Configure managesieve properly, related to
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 bfe9ededbc Fix spam filtering when the score is negative
Pierre Jaury e3e9012183 Add a link to the BetterCrypto reference
Pierre Jaury c0f6a3e387 Apply the BetterCrypto Dovecot configuration, related to
d-fens 62b1df04a0 Update dovecot SSL/TLS configuration
Ensure that RC4 and SSLv3 is not used. This is based off mailinabox project settings, while not the most ideal settings this improves the configuration from what it is currently.
Pierre Jaury 76c33df91f Flatten sieve imports
Pierre Jaury 93f33e956d Filter spam before forward and auto-reply
Pierre Jaury daf8c4bad3 Honor per-user spam settings, fixes
Pierre Jaury 8ab1134477 Remove shipped antispam plugin binary, related to
Pierre Jaury bbe637932e Implement Dovecot configuration overrides, related to
Pierre Jaury 41f343b1da Fix , mark junk messages as read
Pierre Jaury e471a252c8 Bump ABI version for shipped APKs
Pierre Jaury ddd20df866 Learn from spam automatically, fixes
Pierre Jaury 38cfc3c611 Mark spam messages as seen
Pierre Jaury a52218a8c4 Still a workaround for dovecot from alpine:edge
Pierre Jaury e3afa469e3 Use the latest reply_enabled and forward_enabled variables
Pierre Jaury b0a1848bb7 Substitute variables properly in dovecot configuration
Pierre Jaury 988f16f3a4 Change the spam header name
Pierre Jaury dbbad49f66 Handle vacation messages properly
Pierre Jaury 2396324e21 Temporary workaround for
The patch is still going through patchwork upstream (Alpine),
thus the auth-worker group was changed to 'mail' as a "temporary" workaround.
Pierre Jaury 9efc798246 Store the state of reply and forward settings being enabled
Pierre Jaury 3eca6864c3 Rename the generic 'address' to 'email'
Pierre Jaury 2d64ada2d6 Build the dovecot container from edge alpine
Pierre Jaury 90289f8b89 Build a proper version for extdata
Pierre Jaury 3a4703b764 Implement auto-forward and auto-reply
Pierre Jaury 719afcf0dd Switch to the new networking API
Pierre Jaury 18af763293 Store the full address as a computed field
Pierre Jaury 8d6a4cb654 Fix the dovecot SQL query
Pierre Jaury e1c34c5984 Update mail server configurations to match the database structure
Pierre Jaury f51180415c Put clamav and amavis togther, fix spam filtering