Hello

When moving postfix to docker, I run into the issue that when the
containers go away postfix queued mail will get lost unless I made an
effort to persist on the host.

A naive attempt to simply map an empty folder on the host as
`/var/spool/postifx` on the container does not work, because postfix
expects some empty folders there.

My first question is that given a postfix installation, is there a command
I can run to initialize the directory tree to be saved on a persisted
volume which is to be mounted in the container?

There may be a way to pre-create this folder structure on the host but it
can be hard to manage the user id mappings.  Will that be ok if all
subfolders are owned by say root inside the container?

z m wu

Reply via email to