let mailoney run on tcp/25 within container

This commit is contained in:
Marco Ochse 2018-05-23 07:58:01 +00:00
parent 4e8d629b63
commit fbe1fff088
2 changed files with 4 additions and 2 deletions

View file

@ -6,6 +6,7 @@ RUN apk -U --no-cache add \
automake \ automake \
build-base \ build-base \
git \ git \
libcap \
libtool \ libtool \
py-pip \ py-pip \
python \ python \
@ -30,6 +31,7 @@ RUN apk -U --no-cache add \
addgroup -g 2000 mailoney && \ addgroup -g 2000 mailoney && \
adduser -S -H -s /bin/ash -u 2000 -D -g 2000 mailoney && \ adduser -S -H -s /bin/ash -u 2000 -D -g 2000 mailoney && \
chown -R mailoney:mailoney /opt/mailoney && \ chown -R mailoney:mailoney /opt/mailoney && \
setcap cap_net_bind_service=+ep /usr/bin/python2.7 && \
# Clean up # Clean up
apk del --purge autoconf \ apk del --purge autoconf \
@ -44,4 +46,4 @@ RUN apk -U --no-cache add \
# Set workdir and start glastopf # Set workdir and start glastopf
USER mailoney:mailoney USER mailoney:mailoney
WORKDIR /opt/mailoney/ WORKDIR /opt/mailoney/
CMD ["/usr/bin/python","mailoney.py","-i","0.0.0.0","-p","2525","-s","mailserver","-t","schizo_open_relay"] CMD ["/usr/bin/python","mailoney.py","-i","0.0.0.0","-p","25","-s","mailserver","-t","schizo_open_relay"]

View file

@ -14,7 +14,7 @@ services:
networks: networks:
- mailoney_local - mailoney_local
ports: ports:
- "25:2525" - "25:25"
image: "dtagdevsec/mailoney:1804" image: "dtagdevsec/mailoney:1804"
read_only: true read_only: true
volumes: volumes: