docker-mailserver/target
Georg Lauterbach b9dbec3276
scripts: refactored scripts located under target/bin/ (#2500)
* refactored scripts located under `target/bin/`

The scripts under `target/bin/` now use the new log and I replaced some
`""` with `''` on the way. The functionality stays the same, this mostly
style and log.

* corrected fail2ban (script and tests)

* corrected OpenDKIM log output in tests

* reverted (some) changes to `sedfile`

Moreover, a few messages for BATS were streamlined and a regression in
the linting script reverted.

* apple PR feedback

* improve log output from `fail2ban` script

The new output has a single, clear message with the '[  ERROR  ]  '
prefix, and then output that explains the error afterwards. This is
coherent with the logging style which should be used while providing
more information than just a single line about IPTables not functioning.

* simplified `setquota` script

* consistently named the `__usage` function

Before, scripts located under `target/bin/` were using `usage` or
`__usage`. Now, they're using `__usage` as they should.

* improved `sedfile`

With `sedfile`, we cannot use the helper functions in a nice way because
it is used early in the Dockerfile at a stage where the helper scripts
are not yet copied. The script has been adjusted to be canonical with
all the other scripts under `target/bin/`.

* fixed tests

* removed `__usage` from places where it does not belong

`__usage` is to be used on wrong user input, not on other failures as
well. This was fixed in `delquota` and `setquota`.

* apply PR review feedback
2022-03-26 09:30:09 +01:00
..
amavis/conf.d Improve fail2ban docs and fix a typo (#2126) 2021-08-13 10:30:39 +02:00
bin scripts: refactored scripts located under target/bin/ (#2500) 2022-03-26 09:30:09 +01:00
docker-configomat@4155504854 Updated submodule target/docker-configomat 2020-10-11 19:41:53 +02:00
dovecot refactoring: split helper functions into smaller scripts (#2420) 2022-02-21 11:56:57 +01:00
fail2ban Fail2Ban block behaviour (#1914) 2021-04-18 12:55:43 +02:00
fetchmail Implement fetchmail (#260) (#271) 2016-08-21 22:13:13 +02:00
logwatch Add logwatch maillog.conf file to support /var/log/mail/ (#2112) 2021-08-11 11:31:00 +02:00
opendkim Fixed KeyTable refile in opendkim.conf https://serverfault.com/a/861701/377751 (#2249) 2021-10-16 19:04:51 +02:00
opendmarc [opendmarc] Skip dmarc checks for email sent over authenticated sockets 2017-09-11 17:02:47 -07:00
postfix chore: Remove invalid config in Postfix master.cf (#2272) 2021-11-01 14:03:56 +13:00
postgrey housekeeping 2020-11-06 14:04:23 +01:00
postsrsd formatting files according to standard (#1619) 2020-09-24 14:54:21 +02:00
scripts scripts: refactored scripts located under target/bin/ (#2500) 2022-03-26 09:30:09 +01:00
shared init tests cases ffdhe4096 2020-04-26 22:23:51 +02:00
supervisor reverted stopwaitsecs for postfix (#2137) 2021-08-17 15:39:30 +02:00