current version
This commit is contained in:
parent
d1a8e36360
commit
015e934c4f
@ -5,7 +5,7 @@ COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
|
|||||||
|
|
||||||
# courier and pythonfilter install + activate + cleanup
|
# courier and pythonfilter install + activate + cleanup
|
||||||
RUN echo '=mail-filter/courier-pythonfilter-3.0.2-r1' > /etc/portage/package.accept_keywords && \
|
RUN echo '=mail-filter/courier-pythonfilter-3.0.2-r1' > /etc/portage/package.accept_keywords && \
|
||||||
emerge mail-mta/courier mail-filter/courier-pythonfilter dev-python/pyspf dev-python/pydns && \
|
emerge mail-mta/courier mail-filter/courier-pythonfilter dev-python/pyspf && \
|
||||||
ln -s /usr/bin/pythonfilter /usr/libexec/filters && \
|
ln -s /usr/bin/pythonfilter /usr/libexec/filters && \
|
||||||
filterctl start pythonfilter && \
|
filterctl start pythonfilter && \
|
||||||
rm -rf /var/db/repos/gentoo
|
rm -rf /var/db/repos/gentoo
|
||||||
|
@ -2,11 +2,10 @@
|
|||||||
Docker image providing full [Courier MTA](http://www.courier-mta.org/) suite (not just IMAP)
|
Docker image providing full [Courier MTA](http://www.courier-mta.org/) suite (not just IMAP)
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
1. `git clone https://github.com/tuxmainy/docker-courier.git`
|
1. `cp env.example .env`
|
||||||
2. `cp env.example .env`
|
2. edit .env
|
||||||
3. edit .env
|
3. make sure volume directories are present
|
||||||
4. make sure volume directories are present
|
4. `docker-compose up -d`
|
||||||
5. `docker-compose up -d`
|
|
||||||
|
|
||||||
# add users
|
# add users
|
||||||
1. `echo -n 'mypassword' |openssl sha256 -binary |base64`
|
1. `echo -n 'mypassword' |openssl sha256 -binary |base64`
|
||||||
|
@ -1,32 +1,38 @@
|
|||||||
version: "3.7"
|
version: "3.7"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
network_mode: bridge
|
container_name: mail.devloop.de
|
||||||
ports:
|
networks:
|
||||||
- "138.201.55.55:25:25"
|
- internal_mail
|
||||||
- "138.201.55.55:143:143"
|
ports:
|
||||||
- "138.201.55.55:993:993"
|
- "138.201.55.55:25:25"
|
||||||
- "2a01:4f8:172:101f::2:25:25"
|
- "138.201.55.55:143:143"
|
||||||
- "2a01:4f8:172:101f::2:143:143"
|
- "138.201.55.55:993:993"
|
||||||
- "2a01:4f8:172:101f::2:993:993"
|
- "2a01:4f8:172:101f::2:25:25"
|
||||||
volumes:
|
- "2a01:4f8:172:101f::2:143:143"
|
||||||
- conf:/etc/courier
|
- "2a01:4f8:172:101f::2:993:993"
|
||||||
- mail:/mail
|
volumes:
|
||||||
- /dev/log:/dev/log
|
- conf:/conf
|
||||||
hostname: devloop.de
|
- mail:/mail
|
||||||
restart: always
|
- /dev/log:/dev/log
|
||||||
volumes:
|
hostname: devloop.de
|
||||||
conf:
|
restart: always
|
||||||
driver_opts:
|
|
||||||
type: "none"
|
|
||||||
o: "bind"
|
|
||||||
device: "${DATA_BASE}/conf"
|
|
||||||
mail:
|
|
||||||
driver_opts:
|
|
||||||
type: "none"
|
|
||||||
o: "bind"
|
|
||||||
device: "${DATA_BASE}/mail"
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
internal_mail:
|
||||||
|
name: internal_mail
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
conf:
|
||||||
|
driver_opts:
|
||||||
|
type: "none"
|
||||||
|
o: "bind"
|
||||||
|
device: "${DATA}/conf"
|
||||||
|
mail:
|
||||||
|
driver_opts:
|
||||||
|
type: "none"
|
||||||
|
o: "bind"
|
||||||
|
device: "${DATA}/mail"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
COMPOSE_PROJECT_NAME=courier
|
COMPOSE_PROJECT_NAME=courier
|
||||||
DATA_BASE=/path/to/my/basedir/containing/maildirandconf
|
DATA=/path/to/my/basedir/containing/maildirandconf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user