bokysan / docker-postfix

Multi architecture simple SMTP server (postfix null relay) host for your Docker and Kubernetes containers. Based on Debian/Ubuntu/Alpine.
MIT License
526 stars 146 forks source link

Documentation: add example of persistent volume for Postfix queue #60

Open lesinigo opened 3 years ago

lesinigo commented 3 years ago

Following the current documentation the container will have ephemeral storage and could loose any unsent email if it gets stopped, removed and recreated.

Documentation should contain an example on how to keep Postfix queue on an externally provided volume to make it persistent.

bokysan commented 3 years ago

You are correct -- although the Dockerfile maps the /var/spool/postfix the documentation itself does not explicitly state this.

Merge requests are welcome :)

lesinigo commented 3 years ago

Yep I'm currently testing out your (really well made) container right now, so far without any volume mapped. I will test volume mapping and queue persistence and send an MR for the docs as soon as time permits 👍

Nuru commented 3 years ago

If you set persistence.enabled: true then it will use a Persistent Volume to store the queue