Skip to content

fix(smtp): build Postfix on Linux 7.x kernel hosts - #43

Open
maneesha-xyz wants to merge 1 commit into
mainfrom
fix/postfix-kernel-7
Open

maneesha-xyz wants to merge 1 commit into
mainfrom
fix/postfix-kernel-7

Conversation

@maneesha-xyz

Copy link
Copy Markdown
Member

Problem

The `v0.2.2` "Publish container images" run failed on `pingmailer-smtp` (run):

ATTENTION: Unknown system type: Linux 7.0.0-1017-azure
make: *** [Makefile.in:34: Makefiles] Error 1

GitHub runners moved from kernel 6.17 to 7.0. Postfix 3.7.11's `makedefs` takes SYSTYPE from the host's `uname -r` (which Docker builds inherit) and only matches `Linux.[3456].*`. `src/util/sys_defs.h` likewise only accepts `LINUX2`–`LINUX6`. Upstream 3.9/3.10 have the same patterns, so upgrading Postfix doesn't fix it.

Fix

Add a 4th patch step to the rootless smtp Dockerfile: accept `Linux.[34567].*` in `makedefs` and add `defined(LINUX7)` to the Linux block in `sys_defs.h`. Each change has a `grep -q` guard, so the build fails loudly if the patch no longer applies.

Testing

  • Ran both seds against the upstream v3.7.11 `makedefs` and `sys_defs.h`; each changes exactly the intended line.
  • The container build on this PR is the end-to-end check on a kernel 7.x runner.

After merge, re-tag or cut `v0.2.3` to publish the smtp image.

🤖 Generated with Claude Code

GitHub runners now run kernel 7.0. Postfix 3.7's makedefs derives
SYSTYPE from the host `uname -r` and only knows Linux 1-6, so the
rebuild aborted with "Unknown system type: Linux 7.0.0-1017-azure".
Accept 7.x in makedefs and add LINUX7 to the sys_defs.h Linux block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Nov 9, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants