diff options
author | Arthur Moore <Arthur.Moore.git@cd-net.net> | 2019-02-19 20:58:18 -0500 |
---|---|---|
committer | Arthur Moore <Arthur.Moore.git@cd-net.net> | 2019-02-20 01:58:06 -0500 |
commit | 8536a490ebb21b5a026a5b3c1f8176e29e18081d (patch) | |
tree | 4286377610fefd2df40166bfa932d0b0edb25858 /README.md | |
parent | Merge pull request #906 from EmperorArthur/docker (diff) | |
download | OpenSMTPD-8536a490ebb21b5a026a5b3c1f8176e29e18081d.tar.xz OpenSMTPD-8536a490ebb21b5a026a5b3c1f8176e29e18081d.zip |
Switch Dockerfile to using /etc/mail/ for all configuration
Some versions of docker have problems mounting single files.
Also include directions for using it in the Readme.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -200,3 +200,20 @@ Then: or in debug and verbose mode smtpd -dv + +# Docker version + +OpenSMTPD provides a convenient docker file for getting started quickly. However, there are a few minor quirks to know about. + +For ease of use, all configuration files live in '/etc/mail'. This means the two files to modify are: + + /etc/mail/smtpd.conf + /etc/mail/mailname + +Also, local deliveries are disabled by default. The nature of Docker makes interacting with local users a bit tricky, and requires a user to know the ins and outs of Docker. + + +To run the Docker version, create a '/etc/mail' directory, and add your own smtpd.conf file there. Next, run: +``` +docker run --name smtpd_server -p 25:25 -v /etc/mail:/etc/mail emperorarthur/opensmtpd +``` |