1
0
mirror of https://github.com/tomav/docker-mailserver.git synced 2024-06-27 19:55:40 +02:00
docker-mailserver/target/bin
Brennan Kinney e807631a76
refactor: acme.json extraction (#2274)
Split into scoped commits with messages if further details are needed, view those via the associated PR :)

**Commit Summary:**

**`check-for-changes.sh`**

- Prevent `SSL_DOMAIN` silently skipping when value has wildcard prefix `*.` (_at least this was known as a bugfix when originally committed in linked PR_).
- Improved inlined docs for maintainers.
- Additional logging for debugging.

**`helper-functions.sh:_extract_certs_from_acme`**:

- Fail if the input arg (_`$CERT_DOMAIN`, aka the FQDN_) provided for extraction is empty.
- Use `$CERT_DOMAIN` in place of `$HOSTNAME` and `$1` for a consistent value (_previously could mismatch, eg with `SSL_DOMAIN` defined_).
- The conditional is now only for handling extraction failure (_key or cert value is missing from extraction_).
- Log an actual warning or success (debug) based on outcome.
- Don't use `SSL_DOMAIN` with wildcard value for the `mkdir` letsencrypt directory name (_wildcard prefix `*.` is first stripped instead_).

**`acme_extract`** (_new python utility for `acme.json` handling_):

- Extracted out into a python script that can be treated as a utility in the `$PATH` like other helper scripts. It can now be used and optionally tested directly instead of via `helper-functions.sh`.
-Made compatible with Python 3, as Python 2 is EOL and no longer in newer versions of Debian.
2021-11-04 09:28:40 +13:00
..
acme_extract refactor: acme.json extraction (#2274) 2021-11-04 09:28:40 +13:00
addalias start-mailserver.sh split (#1820) 2021-02-23 20:03:01 +01:00
addmailuser Lock file create and remove improvements (#2183) 2021-09-13 20:09:01 +12:00
addrelayhost start-mailserver.sh split (#1820) 2021-02-23 20:03:01 +01:00
addsaslpassword start-mailserver.sh split (#1820) 2021-02-23 20:03:01 +01:00
debug-fetchmail Complete Refactor for target/bin (#1654) 2020-10-21 18:16:32 +02:00
delalias start-mailserver.sh split (#1820) 2021-02-23 20:03:01 +01:00
delmailuser Fix delmailuser error handling (#2181) 2021-09-14 14:07:29 +02:00
delquota start-mailserver.sh split (#1820) 2021-02-23 20:03:01 +01:00
excluderelaydomain Final Migration Step (#6) 2021-01-16 10:16:05 +01:00
fail2ban Disable name resolution in iptables check (#2235) 2021-10-03 12:41:35 +02:00
fetchmailrc_split Solve Fetchmail imap idle issue (#10) 2021-01-17 10:39:09 +01:00
listalias start-mailserver.sh split (#1820) 2021-02-23 20:03:01 +01:00
listmailuser fix(listmailuser): Don't query quota, if ENABLE_QUOTAS is not 1 2021-11-01 12:09:47 +01:00
open-dkim chore: Housekeeping on the 'open-dkim' script (#2267) 2021-10-30 10:10:32 +00:00
postfix-summary Final Migration Step (#6) 2021-01-16 10:16:05 +01:00
print-environment fix(listmailuser): Don't query quota, if ENABLE_QUOTAS is not 1 2021-11-01 12:09:47 +01:00
report-pflogsumm-yesterday Final Migration Step (#6) 2021-01-16 10:16:05 +01:00
restrict-access Final Migration Step (#6) 2021-01-16 10:16:05 +01:00
sedfile sed wrapper (#2158) 2021-09-06 10:07:02 +12:00
setquota Lock file create and remove improvements (#2183) 2021-09-13 20:09:01 +12:00
setup docs(chore): Normalize for consistency (#2206) 2021-09-23 11:29:37 +12:00
setup-fetchmail Complete Refactor for target/bin (#1654) 2020-10-21 18:16:32 +02:00
updatemailuser Lock file create and remove improvements (#2183) 2021-09-13 20:09:01 +12:00
virus-wiper Improve VIRUSMAILS_DELETE_DELAY usage (#2281) 2021-11-01 22:13:14 +01:00