2017-06-22 23:12:13 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-05-06 18:18:37 +08:00
|
|
|
mkdir -p /etc/rspamd/plugins.d \
|
|
|
|
/etc/rspamd/custom
|
|
|
|
|
|
|
|
touch /etc/rspamd/rspamd.conf.local \
|
|
|
|
/etc/rspamd/rspamd.conf.override
|
|
|
|
|
|
|
|
chown -R _rspamd:_rspamd /var/lib/rspamd \
|
|
|
|
/etc/rspamd/local.d \
|
|
|
|
/etc/rspamd/override.d \
|
|
|
|
/etc/rspamd/custom \
|
|
|
|
/etc/rspamd/rspamd.conf.local \
|
|
|
|
/etc/rspamd/rspamd.conf.override \
|
|
|
|
/etc/rspamd/plugins.d
|
|
|
|
|
2018-09-30 15:53:25 +08:00
|
|
|
chmod 755 /var/lib/rspamd
|
2019-05-06 18:18:37 +08:00
|
|
|
|
2018-02-09 05:57:17 +08:00
|
|
|
[[ ! -f /etc/rspamd/override.d/worker-controller-password.inc ]] && echo '# Placeholder' > /etc/rspamd/override.d/worker-controller-password.inc
|
2018-09-30 20:43:18 +08:00
|
|
|
chown _rspamd:_rspamd /etc/rspamd/override.d/worker-controller-password.inc
|
[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)
[Docker API] Create pipe to pass Rspamd UI worker password
[Dovecot] Pull Spamassassin ruleset to be read by Rspamd (MANY THANKS to Peer Heinlein!)
[Dovecot] Garbage collector for deleted maildirs (set keep time via MAILDIR_GC_TIME which defaults to 1440 minutes)
[Web] Flush memcached after mailbox item changes, fixes #1808
[Web] Fix duplicate IDs, fixes #1792
[Compose] Use SQL sockets
[PHP-FPM] Update APCu and Redis libs
[Dovecot] Encrypt maildir with global key pair in crypt-vol-1 (BACKUP!), also fixes #1791
[Web] Fix deletion of spam aliases
[Helper] Add "crypt" to backup script
[Helper] Override file for external SQL socket (not supported!)
[Compose] New images for Rspamd, PHP-FPM, SOGo, Dovecot, Docker API, Watchdog, ACME, Postfix
2018-09-30 04:01:23 +08:00
|
|
|
[[ ! -f /etc/rspamd/custom/sa-rules-heinlein ]] && echo '# to be auto-filled by dovecot-mailcow' > /etc/rspamd/custom/sa-rules-heinlein
|
2017-06-22 23:12:13 +08:00
|
|
|
|
2018-07-13 18:04:32 +08:00
|
|
|
exec "$@"
|