docker-mailserver/target/bin
Brennan Kinney a7e6439a39
fix: Workaround postconf write settling logic (#2998)
* 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
2023-01-13 10:10:58 +13:00
..
acme_extract.py acme_extract -> acme_extract.py + F_BIN to avoid .py 2022-03-06 22:17:29 -05:00
addalias scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
adddovecotmasteruser scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
addmailuser scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
addrelayhost scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
addsaslpassword scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
debug-fetchmail Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00
delalias scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
deldovecotmasteruser scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
delmailuser scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
delquota scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
excluderelaydomain scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
fail2ban Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00
listalias Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00
listdovecotmasteruser Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00
listmailuser Bugfix: './setup.sh email list' does not display aliases correctly (#2881) 2022-11-04 22:39:05 +01:00
open-dkim scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
postfix-summary Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00
print-environment Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00
quota-warning Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00
report-pflogsumm-yesterday Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00
restrict-access fix: Workaround postconf write settling logic (#2998) 2023-01-13 10:10:58 +13:00
sedfile Fix several typos (#2993) 2023-01-11 13:31:21 +13:00
setquota scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
setup Follow up for #2849 (#2853) 2022-10-23 12:57:07 +02:00
updatedovecotmasteruser scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
updatemailuser scripts: Improve error handling, when parameters are missing (#2854) 2022-10-29 11:04:35 +02:00
virus-wiper Remove unusual space from shebang line (#2834) 2022-10-17 10:40:09 +02:00