docker-mailserver/target/bin
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
..
acme_extract.py acme_extract -> acme_extract.py + F_BIN to avoid .py 2022-03-06 22:17:29 -05:00
addalias docs(bin/setup): Add an example for an alias with multiple recipients (#3600) 2023-10-26 13:22:36 +13:00
adddovecotmasteruser Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
addmailuser Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
addrelayhost Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
addsaslpassword Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
debug-fetchmail scripts: housekeeping & cleanup setup (2/2) (#3123) 2023-02-28 10:25:23 +01:00
debug-getmail Change 'for' style (#3368) 2023-05-26 14:00:40 +02:00
delalias Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
deldovecotmasteruser Change 'for' style (#3368) 2023-05-26 14:00:40 +02:00
delmailuser Change 'for' style (#3368) 2023-05-26 14:00:40 +02:00
delquota Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
excluderelaydomain Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
fail2ban feat(setup): Add fail2ban sub-command status <JAIL> (#3455) 2023-08-02 12:09:01 +12:00
getmail-cron Change 'for' style (#3368) 2023-05-26 14:00:40 +02:00
listalias Change 'while' style (#3365) 2023-05-26 01:39:39 +02:00
listdovecotmasteruser Change 'while' style (#3365) 2023-05-26 01:39:39 +02:00
listmailuser Change 'while' style (#3365) 2023-05-26 01:39:39 +02:00
open-dkim ci(fix): Normalize for .gitattributes + improve eclint coverage (#3566) 2023-10-04 12:53:32 +02:00
postfix-summary change if style (#3361) 2023-05-24 09:06:59 +02:00
print-environment Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00
quota-warning Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00
report-pflogsumm-yesterday Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00
restrict-access change if style (#3361) 2023-05-24 09:06:59 +02:00
rspamd-dkim Rspamd: add check for DKIM private key files' permissions (#3627) 2023-11-13 12:34:46 +01:00
sedfile change if style (#3361) 2023-05-24 09:06:59 +02:00
setquota Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
setup feat(setup): Add fail2ban sub-command status <JAIL> (#3455) 2023-08-02 12:09:01 +12:00
updatedovecotmasteruser Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
updatemailuser Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
virus-wiper Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00