Skip to content

feat: deploy filtermail.mtail and add gate on mtail_address, rule compile check - #1036

Merged
j4n merged 2 commits into
mainfrom
j4n/filtermail-mtail-deploy
Aug 26, 2026
Merged

j4n merged 2 commits into
mainfrom
j4n/filtermail-mtail-deploy

Conversation

@j4n

@j4n j4n commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Two commits, pending on filtermail merge in #1023:

  • deploy filtermail.mtail alongside delivered_mail.mtail
  • gate both on mtail_address being set
  • try to compile all rules in /etc/mtail and fail early (with the deployed mtail version)

@hpk42

hpk42 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

i am guessing this PR is now not useful as #1023 is closed? IF not, please open a new one.

@hpk42 hpk42 closed this Aug 25, 2026
@j4n

j4n commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor Author

No, it was a longer standing issue to be closed, before the idea of merging came up. It just needs to deal with the fetching of the mtail file now that its not simply in this repo, I started looking into that today.

@j4n j4n reopened this Aug 25, 2026
@j4n
j4n force-pushed the j4n/filtermail-mtail-deploy branch 2 times, most recently from 6b1ecf5 to 5a0ed74 Compare August 25, 2026 16:45
@j4n

j4n commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor Author

now reworked and ready for review, we can squash before merge :)

@j4n
j4n force-pushed the j4n/filtermail-mtail-deploy branch from 5a0ed74 to ed7babe Compare August 25, 2026 16:52
@j4n
j4n marked this pull request as ready for review August 25, 2026 16:52
j4n added 2 commits August 26, 2026 11:39
…l_address

Deploy filtermail.mtail program along delivered_mail.mtail, fetched from
upstream; for this, refactor download_executable to accept mode, so we
can use it to upload non-binaries.
refactor: make hashes (for uniformity) and mtail version (for use by
mtail deployer) module constants.

Additionally, gate both mtail programs on mtail_address being set.
Compile /etc/mtail before activate() restarts the service, to catch errors
early.
@j4n
j4n force-pushed the j4n/filtermail-mtail-deploy branch from ed7babe to c724187 Compare August 26, 2026 09:41
Comment thread cmdeploy/src/cmdeploy/filtermail/deployer.py
@j4n
j4n merged commit 7db16cc into main Aug 26, 2026
8 checks passed
@j4n
j4n deleted the j4n/filtermail-mtail-deploy branch August 26, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants