cache postgrey state

This commit is contained in:
Simon Bruder 2018-03-28 20:58:45 +00:00
parent 941f5266a0
commit 744b7b3bb0
2 changed files with 5 additions and 0 deletions

View file

@ -27,6 +27,8 @@ services:
postgrey: postgrey:
build: postgrey build: postgrey
restart: unless-stopped restart: unless-stopped
volumes:
- postgrey:/var/spool/postfix/postgrey/
networks: networks:
mail: mail:
@ -67,3 +69,4 @@ networks:
volumes: volumes:
postfix-dh: {} postfix-dh: {}
dovecot-dh: {} dovecot-dh: {}
postgrey: {}

View file

@ -4,4 +4,6 @@ RUN apk add --no-cache \
perl-netaddr-ip \ perl-netaddr-ip \
postgrey postgrey
VOLUME ["/var/spool/postfix/postgrey/"]
ENTRYPOINT ["postgrey", "--inet=0.0.0.0:25", "--auto-whitelist-clients"] ENTRYPOINT ["postgrey", "--inet=0.0.0.0:25", "--auto-whitelist-clients"]