mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
1286a1266b
check-for-changes.sh did not have a special case to handle lines in postfix-relaymap.cf consisting of only a domain (indicating that said domain should never be relayed). This case is handled by start-mailserver.sh so when such a line existed, things would work well until a config file update was detected by check-for-changes.sh. After that, the generated relayhost_map file would be corrupted. Fixed by factoring a 'populate_relayhost_map' function out of start-mailserver.sh and into helper_functions.sh and reusing it in check-for-changes.sh. Note: There are certainly quite a few more pieces of code that could be refactored in a similar fashion. Note2: check-for-changes.sh would previously never update the relayhost_map file when $ENABLE_LDAP was set to 1. I don't think this was intended —there is after all no such condition in start-mailserver.sh— and so this condition no longer applies. |
||
---|---|---|
.. | ||
bats@03608115df | ||
config | ||
docker-openldap | ||
test-files | ||
test_helper | ||
default_relay_host.bats | ||
helper_functions.bats | ||
mail_dhparams_default.bats | ||
mail_dhparams_manual_not_one_dir.bats | ||
mail_dhparams_manual_one_dir.bats | ||
mail_fail2ban.bats | ||
mail_fetchmail.bats | ||
mail_lmtp_ip.bats | ||
mail_pop3.bats | ||
mail_postfix_inet.bats | ||
mail_postscreen.bats | ||
mail_privacy.bats | ||
mail_quotas_disabled.bats | ||
mail_smtponly.bats | ||
mail_spam_bounced.bats | ||
mail_spam_junk_folder.bats | ||
mail_special_use_folders.bats | ||
mail_ssl_letsencrypt.bats | ||
mail_ssl_manual.bats | ||
mail_undef_spam_subject.bats | ||
mail_with_imap.bats | ||
mail_with_ldap.bats | ||
mail_with_mdbox.bats | ||
mail_with_postgrey.bats | ||
mail_with_postgrey_disabled_by_default.bats | ||
mail_with_relays.bats | ||
mail_with_sdbox.bats | ||
permit_docker.bats | ||
tests.bats |