Commit graph

179 commits

Author SHA1 Message Date
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
dependabot[bot] 2cb9cdd1a5 Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-28 19:37:44 +02:00
dependabot[bot] d8fcf8b376 Bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-28 19:37:24 +02:00
Bojan Čekrlić b4c0f2650e Upd: Fix typos and add hashing email obfuscation 2022-01-08 15:52:58 +01:00
Bojan Čekrlić 16b19d59e8 Upgrade Ubuntu Focal -> Impish
This allows us to build `arm/v7` which should hopefully fix #90.
2021-12-14 16:10:19 +01:00
Bojan Čekrlić 571b794794 Fix integration tests after refactoring of scripts 2021-12-07 13:53:43 +01:00
Sergio Del Río Mayoral a1a2082ae1 Add email anonymizer option in case is needed for GDPR
This new feature will anonymize emails in the Postfix logs. This allows
you to keep them indefinetely while being compliant with GDPR.

Based on excellent work on [this pull request](https://github.com/bokysan/docker-postfix/pull/91).

Check `README.md` for more details.
2021-12-07 13:43:13 +01:00
Justin Zandbergen 370c126b43 Updated documentation and added test 2021-12-01 10:03:23 +01:00
Justin Zandbergen 7d884e4d32 Add feature to bring your own secret resource 2021-12-01 10:03:23 +01:00
sdelrio 88c94f979a Fix for #69: Disable healthcheck logs 2021-11-08 09:45:48 +01:00
Bojan Čekrlić 266bfb1ba0 New: Add a bunch of examples
Hopefully this exampels will help people get up to speed and deploy the
solution faster.

They show how the image can be used in different scenarios, e.g.:

- as a MTA for Dovecot with `docker-compose`
- as an outgoing queue towards AWS SES or Google Mail through `helm`
- as an outgoing queue towards Sendgrid through `helm`
2021-09-30 12:57:15 +02:00
Pando85 90eafda79e Fix: README POSTFIX_myhostname envar name 2021-09-23 17:08:25 +02:00
Bojan Čekrlić a489b4c113 Move build of sasl-xoauth2 to the main file
Some users have reported issues with GCE and how sasl-xoauth2 was
built. Moving the building process back into the main part of the
`Dockerfile` should hopefully prevent similar issues.
2021-09-06 11:25:10 +02:00
Bojan Čekrlić fab1b33b48 Fix for #83: Add the possibility to mount files from secret 2021-08-22 18:07:45 +02:00
Bojan Čekrlić 331e25899d Fix for #82: Wrong mount name used 2021-08-22 17:50:50 +02:00
Bojan Čekrlić 3cb19e7c13 Fix for #84: Do not set storageClassName if not set in values.yml 2021-08-22 17:49:29 +02:00
Boky ddc147f734
Fix: Fix missing word in README.md
...apparently I forgot a key word.
2021-06-21 19:05:37 +02:00
Bojan Čekrlić 956caf3fa4 Upd #63: Gracefully scaledown Postfix
Make sure the queue is flushed when the Postfix container is
shutdown through Kubernetes lifecycle hooks.
2021-06-05 21:07:54 +02:00
Bojan Čekrlić aed5624d36 Upd: Fix documentation for recreateOnRedeploy. 2021-06-04 17:33:09 +02:00
Bojan Čekrlić 18e96b8e8d Upd: Implementation for #71, tests for extraContainers 2021-06-04 16:22:05 +02:00
Bojan Čekrlić 3ec47a147b Fix: Formatting and layout, update pull_request GitHub action 2021-06-04 16:00:29 +02:00
Koen 9a444d495f
Need to set LoadbalancerIP in Service specification. Patch to copy all specs over from Values files. (#72)
* copy other specs over

I want to copy over loadBalancerIP to grab a predefined static ip

* removed hardcoded LoadbalancerIP

* Set theme jekyll-theme-slate

* update README

* test service specs are copied over

* undo config changes

* remove config file
2021-06-04 15:52:49 +02:00
msvechla 02b1caa6e5
add SASL_RELAYHOST to overwrite RELATHOST in sasl_passwd file on demand (#77) 2021-06-04 15:52:19 +02:00
jaazmyn e0f7636a1c
Add option to have multiple containers (#79) 2021-06-04 15:50:02 +02:00
Bojan Čekrlić a695d05a7b Fix: Depricate RELAYHOST_TLS_LEVEL with Postfix equivivalent 2021-05-31 09:01:53 +02:00
Bojan Čekrlić 552d73c623 Fix. Fix typo 2021-05-30 13:34:52 +02:00
Bojan Čekrlić 5a176d1180 Upd: Simplify GitHub actions. 2021-05-29 21:42:24 +02:00
Bojan Čekrlić af7438a645 Upd: Simplify GitHub actions. 2021-05-29 21:23:03 +02:00
Bojan Čekrlić 15dab4cfbd Upd: Simplify GitHub actions. 2021-05-29 21:14:24 +02:00
Bojan Čekrlić c1be59d2f5 Upd: Simplify GitHub actions. 2021-05-29 21:05:30 +02:00
Bojan Čekrlić 4476cba5a5 Upd: Simplify GitHub actions. 2021-05-29 20:41:40 +02:00
Bojan Čekrlić bc84df98c5 Upd: Simplify GitHub actions. 2021-05-29 20:41:36 +02:00