docker-mailserver/test
mwnx 1286a1266b Fix/refactor relayhost_map update when dynamically adding account
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.
2020-08-28 15:03:51 +02:00
..
bats@03608115df Do not remove dh*.pem as they do not exist at this point in time 2019-08-12 19:31:24 +02:00
config revert nonsens changes 2020-07-14 15:23:36 +02:00
docker-openldap Fix linting errors reported by hadolint (#1211) 2019-08-13 11:41:38 +02:00
test-files improve dhe tests documentation 2020-04-27 09:57:36 +02:00
test_helper Tests: extract mail_privacy into own .bats file 2019-10-08 23:11:27 +02:00
default_relay_host.bats Make failed test output more readable 2019-08-21 21:16:39 +02:00
helper_functions.bats WIP: actually test PERMIT_DOCKER=connected-networks 2019-08-07 02:24:56 +02:00
mail_dhparams_default.bats Update test/mail_dhparams_default.bats 2020-04-27 10:42:24 +02:00
mail_dhparams_manual_not_one_dir.bats fix tests with space in path 2020-06-30 22:34:26 +02:00
mail_dhparams_manual_one_dir.bats Update test/mail_dhparams_manual_one_dir.bats 2020-04-27 10:42:39 +02:00
mail_fail2ban.bats Tests: Extract mail_fail2ban into own .bats file 2019-10-08 22:03:56 +02:00
mail_fetchmail.bats Tests: Extract mail_fetchmail into own .bats file 2019-10-08 21:45:05 +02:00
mail_lmtp_ip.bats Don't use run in repeat_until_success_or_timeout 2019-08-17 21:23:48 +02:00
mail_pop3.bats Modified letsencrypt support to add domain name checking in addition to 2020-05-15 04:52:26 +00:00
mail_postfix_inet.bats test postfix inet 2020-05-09 22:42:56 +02:00
mail_postscreen.bats Extract mail_postscreen into own test file 2019-08-17 20:58:33 +02:00
mail_privacy.bats Privacy test email no more tagged as SPAM. ClamAV and SA disabled to avoid time-out on low perf system 2019-10-14 13:25:44 +00:00
mail_quotas_disabled.bats Option to disable dovecot quota 2020-05-01 23:42:21 +02:00
mail_smtponly.bats added dovecot quota feature 2020-04-24 14:56:15 +02:00
mail_spam_bounced.bats raise a warning when SPAMASSASSIN_SPAM_TO_INBOX isn't explicitly defined 2020-05-03 10:33:50 +02:00
mail_spam_junk_folder.bats add test case no move to Junk 2020-05-03 10:33:28 +02:00
mail_special_use_folders.bats Test special-use folders are available in IMAP 2019-11-01 20:04:37 +00:00
mail_ssl_letsencrypt.bats Fix checksum race condition in check-for-changes.sh 2020-08-28 14:57:43 +02:00
mail_ssl_manual.bats Modified letsencrypt support to add domain name checking in addition to 2020-05-15 04:52:26 +00:00
mail_undef_spam_subject.bats Extract mail_undef_spam_subject into own test file 2019-08-17 20:58:33 +02:00
mail_with_imap.bats Extract mail_with_imap into its own test file 2019-08-17 20:58:33 +02:00
mail_with_ldap.bats #fix 1478 2020-04-30 12:47:12 +02:00
mail_with_mdbox.bats Test for DOVECOT_MAILBOX_FORMAT 2019-11-04 15:49:29 +00:00
mail_with_postgrey.bats Fix setup/teardown_file to work in full suite run 2019-08-17 20:58:33 +02:00
mail_with_postgrey_disabled_by_default.bats Use correct container name 2019-08-17 20:58:33 +02:00
mail_with_relays.bats Fix/refactor relayhost_map update when dynamically adding account 2020-08-28 15:03:51 +02:00
mail_with_sdbox.bats Test for DOVECOT_MAILBOX_FORMAT 2019-11-04 15:49:29 +00:00
permit_docker.bats Extract default relay host test 2019-08-17 20:58:33 +02:00
tests.bats Fix checksum race condition in check-for-changes.sh 2020-08-28 14:57:43 +02:00