docker-mailserver/target/scripts/helpers
Georg Lauterbach 5f2fb72c9c
Rspamd: add check for DKIM private key files' permissions (#3627)
* added check for Rspamd DKIM on startup

The newly added function `__rspamd__check_dkim_permissions` performs a
check on DKIM private key files. This is useful to prevent issues
like #3621 in the future. The function is deliberately kept simple and
may not catch every single misconfiguration in terms of permissions and
ownership, but it should be quite accurate.

Please note that the Rspamd setup does NOT change at all, and the checks
will not abort the setup in case they fail. A simple warning is emmited.

* add more documentation to Rspamd functions

* Apply suggestions from code review

* improve `__do_as_rspamd_user`

* rework check similar to review suggestion

see https://github.com/docker-mailserver/docker-mailserver/pull/3627#discussion_r1388697547

---------

Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
2023-11-13 12:34:46 +01:00
..
database Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
accounts.sh feat: Allow changing the Dovecot vmail UID/GID via ENV (#3550) 2023-10-01 00:20:03 +13:00
aliases.sh scripts: add wrapper to update Postfix configuration safely (#3484) 2023-08-22 08:03:41 +00:00
change-detection.sh misc: final Rspamd adjustments for v13 (#3599) 2023-10-30 10:20:37 +01:00
dns.sh Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
error.sh Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
index.sh misc: final Rspamd adjustments for v13 (#3599) 2023-10-30 10:20:37 +01:00
lock.sh Change 'while' style (#3365) 2023-05-26 01:39:39 +02:00
log.sh Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
network.sh Change 'for' style (#3368) 2023-05-26 14:00:40 +02:00
postfix.sh scripts: add wrapper to update Postfix configuration safely (follow up) (#3503) 2023-08-28 09:40:24 +12:00
relay.sh scripts: add wrapper to update Postfix configuration safely (#3484) 2023-08-22 08:03:41 +00:00
rspamd.sh Rspamd: add check for DKIM private key files' permissions (#3627) 2023-11-13 12:34:46 +01:00
ssl.sh Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
utils.sh chore: Add debug group (packages.sh) + more resilient rspamd setup (#3578) 2023-10-16 09:51:48 +02:00