Replace postfix + postfix_milters with unified container#78
Open
Replace postfix + postfix_milters with unified container#78
Conversation
Migrate from two-container setup (postfix 2026-02-16.1 + postfix-milters 2023-01-22.1) to single unified container (postfix_for_postfixadmin 2026-04-04.1) that includes all milter services. Changes: - Remove postfix_milters service (now built into postfix container) - Remove postfix_staging service (validation complete) - Update postfix image to 2026-04-04.1 - Add milter env vars to postfix (POSTGREY/SPAMASS/DKIM/DMARC socket paths, DKIM_DOMAINS, DKIM_SELECTOR, DKIM_KEY_PATH, MAIL_HOSTNAME) - Add opendkim_key secret to postfix service - Add spamass_vhome volume to postfix service - Remove depends_on postfix_milters - Clean up staging volume from compose and Ansible tasks Deploy with: docker compose up -d --remove-orphans The --remove-orphans flag will stop the old postfix_milters and postfix_staging containers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0fe4341 to
6484d52
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
postfix2026-02-16.1 +postfix-milters2023-01-22.1) to single unified container (postfix_for_postfixadmin2026-04-04.1)postfix_miltersandpostfix_stagingservicesopendkim_keysecret, andspamass_vhomevolume topostfixserviceBehavior changes
POSTGREY_SOCKET_PATHandSPAMASS_SOCKET_PATHare now set on the postfix container, activating postgrey greylisting and spamassassin policy checks insmtpd_recipient_restrictions(these milters were running before but not wired into postfix)Deployment
The
--remove-orphansin the compose task will automatically stop the oldpostfix_miltersandpostfix_stagingcontainers.Validated on staging
All checks passed on
postfix_stagingcontainer on production server:postfix:opendkim 775Test plan
docker exec postfix supervisorctl statusecho QUIT | nc localhost 25🤖 Generated with Claude Code