Commit graph

305 commits

Author SHA1 Message Date
Jarek
f65c22454f add k8s version min requirement 2024-04-30 22:35:01 +02:00
Jarek
86ee369d26 Add missing appProtocol 2024-04-30 22:35:01 +02:00
Bojan Čekrlić
fc5f540436 Fix #196: Remove duplicated 'name:' that caused helm chart to fail 2024-04-24 08:39:47 +02:00
Bojan Čekrlić
c50f864ed8 Fix #188: Create file /etc/default/locale
File is created "manually" to keep cron happy and prevent it from
spewing errors into the log. Hopefully this will be enough.
2024-04-23 07:23:57 +01:00
Bojan Čekrlić
95119aa607 Fix #169: Explicitly state different UIDs/GIDs across distros
This is a simple documentation update to notify users that UIDs/GIDs may
(and in fact are) different across distros.

The documentation now reflects the last known state od UIDs/GIDs.
Startup now announces specific UIDs/GIDs used to make sure people are
aware of any future changes.
2024-04-23 07:03:03 +01:00
Bojan Čekrlić
bd8c14c3bf Upt: Update GitHub actions to newer versions
Node 16 actions are deprecated. Hopefully this update will remove the
warning.
2024-04-21 18:02:00 +01:00
Bojan Čekrlić
aba3d60919 Fix: Update HorizontalPodAutoscaler to autoscaling/v2 2024-04-21 17:54:47 +01:00
shcherbak
55f2f71dd5 fix HorizontalPodAutoscaler apiVersion 2024-04-21 17:43:45 +02:00
shcherbak
e3898ed071 autoscaling.apiVersion 2024-04-21 17:43:45 +02:00
Bojan Čekrlić
4b46b1d173 Fix #180: Rename authentication methods
This is a really dirt fix for issue #180. It will replace "well-known"
enumerated plugin names with SASL mechanism names. While this is more of
a "bandage" than the actual proper fix, I have currently found no better
ways to do it.

Most likely this issue will rise up again with another SASL plugin and
we will deal with it then. At this stage, it should cover most of the
use cases transparently.
2024-04-21 16:38:54 +01:00
dependabot[bot]
a26f85d79d Build(deps): Bump WyriHaximus/github-action-helm3 from 3 to 4
Bumps [WyriHaximus/github-action-helm3](https://github.com/wyrihaximus/github-action-helm3) from 3 to 4.
- [Release notes](https://github.com/wyrihaximus/github-action-helm3/releases)
- [Commits](https://github.com/wyrihaximus/github-action-helm3/compare/v3...v4)

---
updated-dependencies:
- dependency-name: WyriHaximus/github-action-helm3
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-17 15:19:39 +02:00
Bojan Čekrlić
b358d71454 Fix for #192: Automatically add domains to provided usernames for SASL
So, according to the documentation, usernames must always include a
domain for SASL.

In other words. User cannot be `johhny` but `johhny@example.org`.
Further info can be found on this ticket: https://github.com/bokysan/docker-postfix/issues/192

This commit will automatically append domain if one is not provided in
`SMTPD_SASL_USERS`.
2024-04-16 22:11:34 +02:00
dependabot[bot]
bda13b30fa Build(deps): Bump peaceiris/actions-gh-pages from 3 to 4
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3 to 4.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-09 10:56:52 +02:00
Bojan Čekrlić
1e80626550 Upd: Update documentation - fix typos, make it more explicit we use Debian as default 2024-02-25 09:24:13 +01:00
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