Skip to content

Commit

Permalink
opensmtpd config from master
Browse files Browse the repository at this point in the history
  • Loading branch information
rwblair committed Jan 4, 2016
1 parent 19038e2 commit a31bb7a
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ postgres:
env_file: .env
expose:
- "5432"

uwsgi:
build: .
restart: always
Expand Down Expand Up @@ -44,3 +45,13 @@ nginx:
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"

opensmtpd:
build: ./opensmtpd/
volumes:
- ./opensmtpd/smtpd.conf:/etc/smtpd.conf
- ./opensmtpd/authinfo:/etc/authinfo
ports:
- "0.0.0.0:25:25"


16 changes: 16 additions & 0 deletions opensmtpd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu:trusty

# Install opensmtpd
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y opensmtpd\
ca-certificates && \
rm -rf /var/lib/apt/lists/*

# The spool should be a volume
VOLUME [ "/var/spool/smtpd" ]

# Expose the mail port
EXPOSE 25

# Run the smtpd server in the foreground
CMD [ "/usr/sbin/smtpd", "-dv" ]
1 change: 1 addition & 0 deletions opensmtpd/authinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label AKIAI5IJ3VSWVNI4ZNOQ:Akdoz1TB+l5b3joBGOVneYzR0i/Zw1JoyEPAvmJ/s2cZ
1 change: 1 addition & 0 deletions opensmtpd/forward
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rosswilsonblair@gmail.com
7 changes: 7 additions & 0 deletions opensmtpd/smtpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
listen on 0.0.0.0 port 25

table authinfo {label=>"AKIAI5IJ3VSWVNI4ZNOQ:Akdoz1TB+l5b3joBGOVneYzR0i/Zw1JoyEPAvmJ/s2cZ"}

accept from any for any virtual { "@" => root } forward-only
accept from any for domain "openfmri.org" recipient "@openfmri.org" relay via \
tls+auth://label@email-smtp.us-west-2.amazonaws.com auth <authinfo>

0 comments on commit a31bb7a

Please sign in to comment.