1
0
mirror of https://github.com/tomav/docker-mailserver.git synced 2024-06-21 06:57:12 +02:00
docker-mailserver/target/scripts/startup/setup.d
Brennan Kinney ed84dca147
chore: LDAP config improvements (#3522)
* chore: Drop management of `SASLAUTHD_*` ENV

- `variables-stack.sh` does not need to manage all these extra ENV or store them. They're not used anywhere else.
- `saslauthd.sh` is the only consumer of these ENV which are effectively direct key/value mappings, with some defaults provided / inherited.

Instead of trying to conditionally support key/value pairs when ENV is set, we could instead use `sed` to delete lines with empty values.

* chore: Drop fallbacks + update configs to match docs

- Drop deprecated support:
  - `DOVECOT_HOSTS` is an ENV deprecated since v10.
  - Fallback for missing URI scheme introduced for Dovecot and SASLAuthd in v10.
  - Adding error log message when no LDAP URI scheme is detected for the supported ENV (when set).
- Docs updated for ENV to reflect the mandatory requirement. `mailserver.env` partially synced equivalent sections.
- Provided base LDAP configs (for overriding) likewise updated from `domain.com` to `example.com`.
- LDAP test updated for required `ldap://` URI scheme. Common ENV shared across LDAP configs hoisted out of the Postfix group.

* chore: Remove unset lines in generated `saslauthd.conf`
2023-09-02 22:07:02 +12:00
..
security scripts: add wrapper to update Postfix configuration safely (#3484) 2023-08-22 08:03:41 +00:00
dmarc_dkim_spf.sh scripts: add wrapper to update Postfix configuration safely (#3484) 2023-08-22 08:03:41 +00:00
dovecot.sh Change 'for' style (#3368) 2023-05-26 14:00:40 +02:00
fetchmail.sh Change 'for' style (#3368) 2023-05-26 14:00:40 +02:00
getmail.sh Change 'for' style (#3368) 2023-05-26 14:00:40 +02:00
ldap.sh chore: LDAP config improvements (#3522) 2023-09-02 22:07:02 +12:00
log.sh Change 'function' style (#3364) 2023-05-26 01:01:41 +02:00
mail_state.sh Change 'for' style (#3368) 2023-05-26 14:00:40 +02:00
networking.sh Change 'for' style (#3368) 2023-05-26 14:00:40 +02:00
postfix.sh Change 'while' style (#3365) 2023-05-26 01:39:39 +02:00
saslauthd.sh chore: LDAP config improvements (#3522) 2023-09-02 22:07:02 +12:00