Commit graph

341 commits

Author SHA1 Message Date
Bojan Čekrlić
025cb58d0e Upt: Add postfix-pcre, add additional checks for sanity and mount /tmp to emptydir 2024-02-25 09:12:28 +01:00
Filipe
5ea8c32ffa Expand volumeClaimTemplates spec
Use the full volumeClaimTemplates spec to avoid manifest diffs when using ServerSideApply/Diff
2024-02-07 13:47:18 +01:00
Sébastien De Marchi
bf84322ca6 Fix sasldb with SMTPD_SASL_USERS env variable
We encountered an issue where the script common-run.sh would fail if the SMTPD_SASL_USERS environment variable was defined. The failure occurred immediately after displaying the "Enable smtpd sasl auth" message, preventing the container from starting correctly.

The root cause was traced to a conditional check for the existence of the /etc/sasl2/sasldb2 file. When the file did not exist, the subsequent `chown` operation was skipped as intended, but the script would still fail due to an undefined behavior in the shell context.

The addition of a debug message "Sasldb configured" before the closing `fi` statement has resolved the issue. This change appears to stabilize the script execution, allowing the container to start as expected.

While the underlying cause is not fully understood and warrants further investigation, this commit serves as a temporary workaround to ensure functionality in environments where SMTPD_SASL_USERS is set.
2024-01-19 10:36:33 +01:00
dependabot[bot]
6f0831fc91 Build(deps): Bump actions/cache from 3 to 4
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-18 09:18:12 +01:00
Bojan Čekrlić
a1b30f31f9 Fix for #174: Incrase healthcheck timeout
Default timeout for healthcheck by kubernetes is too low. As we wait up
for 2 seconds for the Postfix and DKIM to respond, this exceeds the
threshold and the healthcheck fails with:

```
Readiness probe failed: command "sh -c /scripts/healthcheck.sh" timed out
```

By simply increasing `timeoutSeconds` this issue is resolved.
2024-01-09 17:00:04 +01:00
Bojan Čekrlić
83b9af5c9b Fix for #174: Try to refactor healthcheck 2024-01-09 10:59:04 +01:00
Bojan Čekrlić
df9771b6e2 Fix for #172: Change order of parameters for netcat 2024-01-07 16:51:33 +01:00
Henry Thasler
9b2d54f15e improved healthcheck with proper command sequence 2024-01-06 11:59:50 +01:00
Bojan Čekrlić
1c71da7adc Upd: Explicitly link timezone to folder 2023-12-29 15:20:50 +01:00
Bojan Čekrlić
b56239bb74 Upd: Add docket to dependabot. 2023-12-29 15:20:15 +01:00
Bojan Čekrlić
72988ddf47 Fix #158: Add copytruncate to logrotate.conf.
From lograte man pages:

> `copytruncate`: Truncate the original log file to zero size in place after creating a copy, instead of moving the old log file and optionally creating a new one.

Why? Because file might be followed by file descriptior (and not name).
So when logrorate rotates the file, Prometheus will follow the old file
(thus receiving no metrics).

By using `comytruncate` we ensure that the followed file is always the
proper one.
2023-12-29 14:39:21 +01:00
Bojan Čekrlić
4b4524940e Fix #160: Update documentation, add info about smtpd_tls_security_level change 2023-12-29 14:37:05 +01:00
Joe Krill
553874a056 Fix ServiceMonitor selector 2023-12-29 08:56:58 +01:00
Bojan Čekrlić
b317e68e28 Fix for #163: Remove NodePort from headless service 2023-12-29 08:51:20 +01:00
Bojan Čekrlić
806eef5bb9 Fix for #154: Allow different labels for regular and headless service 2023-11-01 15:38:53 +01:00
Bojan Čekrlić
dcf80ccda3 Fix for #154 2023-11-01 15:04:15 +01:00
Bojan Čekrlić
cccbf7ea65 Fix for #151 2023-11-01 14:33:44 +01:00
Bojan Čekrlić
81e900b3e1 Fix for #152 2023-11-01 12:06:01 +01:00
Bojan Čekrlić
c161f5d018 Fix: Creation of tag for gh-pages on release 2023-10-29 23:58:02 +01:00
Bojan Čekrlić
743d3a0a86 Fix for #147: Update daemon_directory based on running distribution
This image will now automatically reconfigure `daemon_directory` in case
of distrubution switching.

Alpine and Debian/Ubuntu will use different directly layout and if the
user persists `/etc/postfix`, this image will not start if the
distribution changes.
2023-10-29 23:42:37 +01:00
Bojan Čekrlić
5206257d2a Fix: (TEmporary) remove the tests for daemon_directory 2023-10-29 19:50:45 +01:00
Bojan Čekrlić
4b2f48157b Fix: Fix unit tests 2023-10-29 19:25:40 +01:00
Bojan Čekrlić
1d74829eaa Fix: Try fixing the #147 issue and conver it by unit tests 2023-10-29 16:24:22 +01:00
Bojan Čekrlić
25e919644f Fix for #147
This will change the `deamon_directory` if it detects a distribution
change. Some distributions will by default set the `deamon_directory` in
`main.cf` and they differentiate between distributions. Hence, updating
to another distribution causes Postfix to fail starting.
2023-10-29 09:09:51 +01:00
Filipe
f679500d9b Install procps 2023-10-29 08:44:10 +01:00
Bojan Čekrlić
cd8147a55c Fix: Fix building of release 2023-10-27 19:02:22 +02:00
Kroese
fef288268e Use Debian Slim as base image 2023-10-27 19:02:08 +02:00
Bojan Čekrlić
58f20bddcd Upd: Add schemas so we can work (a bit more) offline 2023-10-27 18:16:56 +02:00
Bojan Čekrlić
7ad03edccf Fix: Quote "no" so that it doesn't get interpreted as something else 2023-10-27 18:08:45 +02:00
Bojan Čekrlić
e8c6cd5332 Fix: Make sure to use the proper name for pluginviewer based on distro
Debian/Ubuntu use 'saslpluginviewer`, so we should check for that.
2023-10-27 18:04:36 +02:00
Bojan Čekrlić
945add7f9d Fix: Fix for #144 2023-10-27 17:45:06 +02:00
Bojan Čekrlić
0ff0e80707 Fix: Fix for #146. 2023-10-27 17:44:20 +02:00
Bojan Čekrlić
3370a9d1bc Fix: helm template fixes for prometheus monitoring 2023-10-27 16:02:32 +02:00
Bojan Čekrlić
bcf7dcbfcb Fix: Fix syslog logging to stdout + fix starting of exporter 2023-10-27 15:31:54 +02:00
Bojan Čekrlić
5a09ee5a45 Fix: Fix a typo -> 'reowing' to 'reowning' 2023-10-27 13:48:46 +02:00
Bojan Čekrlić
696422015a Fix: Update how SASL-XOAUTH2 is build (without DOCS) to (re)enable more architectures 2023-10-27 13:47:37 +02:00
Bojan Čekrlić
888ec87871 Fix: Do not build exporter for linux/386
Building fails with a really bad exception:

```
=> ERROR [linux/386 builder 5/8] RUN go mod download                                                                                                         0.5s
------
 > [linux/386 builder 5/8] RUN go mod download:
```
2023-10-27 13:09:54 +02:00
Bojan Čekrlić
33dec82e83 Fix: Refactor build to use native (platform) images and try rebuilding.
Consequentially, `linux/arm/v6` and `linux/riscv6` are not built, as
there are no go images for these.
2023-10-27 13:04:04 +02:00
Bojan Čekrlić
0fcfdcef4b Fix: Remove build for linux/mips64le and linux/arm/v5 for postfix-exporter
There's some weird bug where building the exporter for `linux/mips64le`
and `linux/arm/v5` has go complaining how
(go-systemd)[https://github.com/coreos/go-systemd/tree/main] has no
linux packages.

We're taking a quick-and-ditry route here and hope that nobody's going
to use the postfix-exporter on MIPS / ARMv5, which hopefully won't be such a big
issue.
2023-10-27 12:59:59 +02:00
Bojan Čekrlić
a2ee7e72bb Fix: Remove linux/arm/v6 from Alpine build, as it doesn't have the PANDOC or CABAL packages 2023-10-27 12:44:54 +02:00
Bojan Čekrlić
b3c6fafa4d Fix: Fix integration tests with the new sasl-build script 2023-10-27 12:39:06 +02:00
Bojan Čekrlić
bb5a9f3e24 Fix: Mising pipe (|) symbol in the translation of TARGETVARIANT to GOARM 2023-10-27 12:28:18 +02:00
Bojan Čekrlić
b343a7b3cd Fix: Return from trying to build pandoc if install is successful 2023-10-27 12:27:13 +02:00
Bojan Čekrlić
a23f0a34ed Fix: Backslashes need to be double-escaped in Dockerfile 2023-10-27 12:25:07 +02:00
Bojan Čekrlić
c60c65cfd4 Fix: Fix syntax error in sasl-build.sh 2023-10-27 12:23:56 +02:00
Bojan Čekrlić
19dd690641 Fix: Fix build for differrent archs, make Debian default image 2023-10-27 12:21:57 +02:00
Bojan Čekrlić
335c7e949a Fix: Fix building of Postfix exporter with newer version of Go and other architectures
Build should be faster now as well, as it's being built on the build
platform and not through QEMU.
2023-10-27 11:24:40 +02:00
Bojan Čekrlić
2082f159f8 Fix: Remove MIPS64LE from postfix-exporter build
It fails with:
> `.0.175 /bin/sh: 1: go: Exec format error`
2023-10-27 11:01:04 +02:00
Bojan Čekrlić
09b3eb651b Fix: Do not build for RISC V ATM 2023-10-27 10:56:03 +02:00
Bojan Čekrlić
c3f909f2ec Fix: Fix DNS examples and tests 2023-10-27 10:53:59 +02:00