Commit graph

310 commits

Author SHA1 Message Date
Bojan Čekrlić e325d45d51 Fix: replace deprecated ::set-output with piping to $GITHUB_OUTPUT 2023-02-09 10:20:27 +01:00
Bojan Čekrlić e0e5942fad Fox for #102: Setup proper configuration for chrooting Postfix 2023-02-09 09:55:44 +01:00
dependabot[bot] 1deff42ed9 Bump docker/build-push-action from 3 to 4
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-09 09:45:35 +01:00
Bojan Čekrlić 1be2c20b89 Fix Ubuntu build and upgrade to latest Ubuntu LTS release 2023-02-09 09:22:59 +01:00
Bojan Čekrlić 3eac3f42ae Fix for #118: Properly indent securityContext 2023-02-09 09:02:28 +01:00
vcazsdk fc7ed0b391 Fix bad sasldb2 path with alpine image 2022-09-13 08:24:26 +02:00
vcazsdk 075a99f6fd Fix sasl-xoauth2 alpine build error: basename was not declared 2022-09-13 08:24:26 +02:00
vcazsdk 38d767c55d Remove duplicate var 2022-09-13 08:24:26 +02:00
vcazsdk ff50aac2ab Add SMTPD_SASL_USERS option to README.md 2022-09-13 08:24:26 +02:00
vcazsdk 7390fa9e4f Fix stuck kubernetes pod shutdown 2022-09-13 08:24:26 +02:00
vcazsdk f2daefd7e1 Add smtpd sender sasl authentication 2022-09-13 08:24:26 +02:00
vcazsdk b6eaa3e838 Fix run error: dependency missing 2022-09-13 08:24:26 +02:00
vcazsdk 5776119ef3 Fix network error: disable postfix chroot 2022-09-13 08:24:26 +02:00
vcazsdk a142b4547f Update ubuntu and sasl_xoauth2 version 2022-09-13 08:24:26 +02:00
Boky 4feeb2290e
Fix: Add GitHub stars info 2022-07-10 14:33:20 +02:00
Bojan Čekrlić 2ba5cc752b Fix: Depend on successful builds before releasing a new version 2022-06-19 12:42:02 +02:00
Bojan Čekrlić 470990fe14 Fix: Fix building releases with the new actions structure 2022-06-19 12:37:21 +02:00
Bojan Čekrlić e145f8761e Fix: Fix build issue with Alpine and Caching 2022-06-16 12:36:30 +02:00
Bojan Čekrlić 06db8fb392 Fix for #106: Removed xouath2 from authentication methods if not used 2022-06-16 10:46:26 +02:00
Bojan Čekrlić 42078d5017 Fix: Fix multiplatform build caching issues
So, alpine will download platform-specific cache files, meaning that
when another platform tries to use the cache, it will fail with
packages not being found.
2022-06-09 15:32:07 +02:00
Bojan Čekrlić ce640e1cd3 Fix: Make sure builds for Alpine are not failing (remove linux/386) 2022-06-09 11:20:35 +02:00
dependabot[bot] 371a4ac567 Bump docker/build-push-action from 2 to 3
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-27 15:05:42 +02:00
Bojan Čekrlić cb9ab38d1f Upd: Simplify GitHub actions 2022-04-13 13:54:28 +02:00
Bojan Čekrlić f4e2fea734 Upd: Simplify GitHub actions 2022-04-13 13:49:31 +02:00
Bojan Čekrlić 48a752b344 Upd: Simplify GitHub actions 2022-04-13 13:46:15 +02:00
Bojan Čekrlić 26a784ec68 Upd: Simplify GitHub actions 2022-04-13 13:45:06 +02:00
Bojan Čekrlić f3554a3eb4 Upd: Simplify GitHub actions 2022-04-13 13:37:45 +02:00
Bojan Čekrlić a74d681dd9 Upd: Simplify GitHub actions 2022-04-13 13:30:05 +02:00
Bojan Čekrlić 18c6ac17ae Upd: Simplify GitHub actions 2022-04-13 13:27:51 +02:00
Bojan Čekrlić 5bcaa63f8f Upd: Simplify GitHub actions 2022-04-13 13:23:43 +02:00
Bojan Čekrlić 81eb4eaef7 Upd: Simplyfy GitHub actions 2022-04-13 13:19:58 +02:00
Bojan Čekrlić 7a22e1817d Fix: Run update before installing Alpine packages 2022-04-13 12:51:39 +02:00
Bojan Čekrlić 71c6c075e1 Fix: Try clearing the GitHub cache
Maybe this will help with builds.
2022-04-13 12:33:58 +02:00
Bojan Čekrlić 6d538bed66 Upd: Fix building on GitHub
Apparently the issue is not with Alpine. Next suspect: cache.
2022-04-13 11:34:37 +02:00
Bojan Čekrlić fb19630c2a Upd: (Temporarily?) remove linux/386 build
Seems that there's an issue with Alpine `linux/386` repo which
produces an error `UNTRUSTED signature` while trying to install
packages.

Temporarily removing this platform make the build pass.
2022-04-13 11:09:05 +02:00
Bojan Čekrlić 3385de7fca Upd: Fix integration tests with the latest refactor 2022-04-13 10:16:42 +02:00
Bojan Čekrlić a6d10e6a13 Upd: Refactor Dockerfile and cache local builds
This refactor simplifies the `Dockerfile` by considerable amount:
new features of mobykit buildkit allow us to cache `apt`/`apk`
folder (so no need to delete `/var/lib/cache`) as well as extract
the build / install logic into separate files, which removes the
need for `&& \` and makes the code *much more* readable.

`build.sh` script has been updated as well to allow caching local
builds when testing, making it much more easier to test.
2022-04-13 09:57:46 +02:00
Bojan Čekrlić 9178904f47 Fix: Remove unneccessary unit tests
`paranoid` and `smart` analyzers were testing for message-ids. As it
turns out, these are not as simple as we thought. Detecting message ids
has been changed and, consequentially, this test methods are no longer
neccessary.
2022-04-12 16:21:10 +02:00
Bojan Čekrlić c7c56d3ff1 Upd: Add new integration and unit tests
Test a few more functionalities in the image. Change how postfix
message IDs are detected. Message ID can be set by the client and
hence detecting them via regex is not the best way to go around it.

This fix will actually look at the log line and try to determine
if we're looking at the message ID or not.
2022-04-10 17:52:12 +02:00
Antoine GC 81a600db10 Update README.md 2022-04-10 17:33:19 +02:00
Antoine GC 3fb5844bb3 Update email-anonymizer.py
fix regex to avoid '>' at the end of email
set default prefix & suffix to '' have a clean email in logs
update hmac hashing to use the same function as others programming languages
fix typos
2022-04-10 17:33:19 +02:00
Boky 4d11bc1974
Upd: Fix typos, addd explanation 2022-04-04 08:29:31 +02:00
Boky ad9c7cea3a
Upd: Fix typos in the documentation 2022-04-04 08:25:39 +02:00
Bojan Čekrlić 0310983060 Upd: Upgrade XOAUTH2 to 0.11
Hopefully this should reduce issues like #101.
2022-03-28 20:25:52 +02:00
Bojan Čekrlić 2717970c72 Fix: Fix issues found after integration tests 2022-03-28 20:15:20 +02:00
Bojan Čekrlić 2593172f87 Fix #97: Allow skipping reown and don't die on reown failure 2022-03-28 20:10:44 +02:00
Bojan Čekrlić 3d750cfb6a Fix #95: Make grep quiet
Grep was missing the quiet (`-q`) option which made it echo the
password to postfix logs.
2022-03-28 19:51:47 +02:00
Bojan Čekrlić 156b45d9f7 Fix #104: Inproper usage of sed
A small error where sed was called wrongly ('s/.../d') instead of
'/.../d' was causing an error `sed: unmatched '/' on configuration
change`.

This commit should fix the issue.
2022-03-28 19:49:31 +02:00
Bojan Čekrlić fd5c00c1bc Merge branch 'master' of github.com:bokysan/docker-postfix 2022-03-28 19:44:09 +02:00
Bojan Čekrlić f5d0e56b1b New: Add smart email anonymizer
This email anonymizer tries to be a bit more smart about how it goes
about anonymizing email addresses, by providing as much as possible
information while still making sure to respect user's privacy.

More info available in `README.md`.
2022-03-28 19:42:56 +02:00