mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
a7e6439a39
* fix: Workaround `postconf` write settle logic After updating `main.cf`, to avoid an enforced delay from reading the config by postfix tools, we can ensure the modified time is at least 2 seconds in the past as a workaround. This should be ok with our usage AFAIK. Shaves off 2+ seconds roughly off each container startup, reduces roughly 2+ minutes off tests. * chore: Only modify `mtime` if less than 2 seconds ago - Slight improvement by avoiding unnecessary writes with a conditional check on the util method. - Can more comfortably call this during `postfix reload` in the change detection cycle now. - Identified other tests that'd benefit from this, created a helper method to call instead of copy/paste. - The `setup email restrict` command also did a modification and reload. Added util method here too. * tests(fix): `mail_smtponly.bats` should wait for Postfix - `postfix reload` fails if the service is not ready yet. - `service postfix reload` and `/etc/init.d/postfix reload` presumably wait until it is ready? (as these work regardless) * chore: Review feedback - Move reload method into utilities |
||
---|---|---|
.. | ||
mail_changedetector.bats | ||
mail_fetchmail.bats | ||
mail_fetchmail_parallel.bats | ||
mail_hostname.bats | ||
mail_lmtp_ip.bats | ||
mail_pop3.bats | ||
mail_postfix_inet.bats | ||
mail_privacy.bats | ||
mail_quotas_disabled.bats | ||
mail_smtponly.bats | ||
mail_special_use_folders.bats | ||
mail_time.bats | ||
mail_tls_dhparams.bats | ||
mail_with_imap.bats | ||
mail_with_ldap.bats | ||
mail_with_mdbox.bats | ||
mail_with_postgrey_disabled_by_default.bats | ||
mail_with_relays.bats | ||
mail_with_sdbox.bats | ||
no_container.bats | ||
open_dkim.bats | ||
permit_docker.bats | ||
sedfile.bats | ||
setup-cli.bats | ||
test_helper.bats | ||
tests.bats |