ix-ai / smtp

This is a SMTP docker container for sending emails. You can also relay emails to gmail and amazon SES.
MIT License
92 stars 14 forks source link

Persistance - what volumes? #17

Closed fliespl closed 1 year ago

fliespl commented 1 year ago

I can't find example as to which directories should be volumes to mount to server to keep message queue in case of restart.

Could this be added to documentation?

tlex commented 1 year ago

Never even thought about this, since this is the "standard" Debian exim4 installation.

The spool folder is /var/spool/exim4, the UID/GID 101 and the default permissions on the folder 0750. This is, assuming the user hasn't changed the location via a configuration file.

fliespl commented 1 year ago

@tlex Thank you for quick response. I am thinking...

Wouldn't it be a good idea to provide predefined VOLUME instruction in dockerfile the same way as mysql does for /var/lib/mysql or redis for /data?

Just thinking out loud :)

tlex commented 1 year ago

Your suggestion completely went unnoticed in my inbox.

I'm more than happy to accept a pull/merge request for this :slightly_smiling_face:

a.