Skip to content

Add postfix-runtime volume for queue_directory/data_directory - #57

Open
chrisblech wants to merge 1 commit into
springcomp:mainfrom
chrisblech:postfix-data-volume
Open

Add postfix-runtime volume for queue_directory/data_directory#57
chrisblech wants to merge 1 commit into
springcomp:mainfrom
chrisblech:postfix-data-volume

Conversation

@chrisblech

Copy link
Copy Markdown
Contributor

Postfix's queue_directory (/var/spool/postfix) and data_directory (/var/lib/postfix) previously had no persistent storage, so the mail queue and TLS session caches were lost on every container recreate. Point both at a single postfix-runtime named volume instead, and have the entrypoint create the directory tree and fix ownership on every start via "postfix check" + "postfix set-permissions" (idempotent, so it's safe on both first run and subsequent restarts).

Should be merged before integrating #55 , so states of all clients (i.e. temp-whitelists) for postscreen survive container restarts, rebuilds, crashes.

Postfix's queue_directory (/var/spool/postfix) and data_directory
(/var/lib/postfix) previously had no persistent storage, so the mail
queue and TLS session caches were lost on every container recreate.
Point both at a single postfix-runtime named volume instead, and have
the entrypoint create the directory tree and fix ownership on every
start via "postfix check" + "postfix set-permissions" (idempotent, so
it's safe on both first run and subsequent restarts).
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