Skip to content

Keep Postfix stopped during rootfs configuration - #379

Open
lirazsiri wants to merge 1 commit into
19.xfrom
wish/tkldev-postfix-rootfs-repair
Open

Keep Postfix stopped during rootfs configuration#379
lirazsiri wants to merge 1 commit into
19.xfrom
wish/tkldev-postfix-rootfs-repair

Conversation

@lirazsiri

Copy link
Copy Markdown
Member

Summary

  • validate Postfix configuration during appliance rootfs assembly without starting its master process
  • enable the normal Postfix systemd unit for startup after boot
  • cover the build-time path with an occupied-port fixture that rejects daemon startup

Verification

  • tests/test-postfix-local-build.sh in LibreSBX as root with TCP port 25 occupied
  • real Debian Trixie /usr/sbin/postmulti -p check, followed by an assertion that no master process exists
  • bash -n conf/turnkey.d/postfix-local tests/test-postfix-local-build.sh
  • git diff --check b60dd230..650ae31

Validate the generated Postfix configuration without starting its master process while an appliance root filesystem is being assembled. This avoids colliding with an existing build-host listener on port 25 and leaves normal service startup to the enabled systemd unit after boot.

Add a focused fixture that holds port 25 open, verifies the listener survives configuration, requires postmulti check and service enablement, and fails if the Postfix command starts.
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.

1 participant