Importing into a fresh repository.
Showing
4 changed files
with
51 additions
and
0 deletions
Dockerfile
0 → 100644
docker-compose.yml
0 → 100644
1 | #!/bin/bash | ||
2 | |||
3 | HOSTNAME=$(hostname -f) | ||
4 | |||
5 | postconf -e \ | ||
6 | "myhostname = $HOSTNAME" \ | ||
7 | "mydestination = $HOSTNAME, localhost.localdomain, localhost" \ | ||
8 | "mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.0.0.0/8 172.0.0.0/8"\ | ||
9 | "inet_protocols = all" \ | ||
10 | "relayhost = $POSTFIX_RELAYHOST" \ | ||
11 | "virtual_maps = hash:/etc/postfix/virtual, regexp:/etc/postfix/virtual-regexp" \ | ||
12 | "home_mailbox = Maildir/" \ | ||
13 | && true | ||
14 | |||
15 | touch /etc/postfix/virtual | ||
16 | postmap /etc/postfix/virtual | ||
17 | |||
18 | if [[ $POSTFIX_REDIRECT_MAIL_LOCALHOST ]]; then | ||
19 | echo "/.+@.+/ $POSTFIX_REDIRECT_MAIL_LOCALHOST@localhost" > /etc/postfix/virtual-regexp | ||
20 | if ! getent passwd $POSTFIX_REDIRECT_MAIL_LOCALHOST > /dev/null; then | ||
21 | adduser --disabled-password --gecos "$POSTFIX_REDIRECT_MAIL_LOCALHOST" $POSTFIX_REDIRECT_MAIL_LOCALHOST | ||
22 | fi | ||
23 | echo "$POSTFIX_REDIRECT_MAIL_LOCALHOST:$POSTFIX_REDIRECT_MAIL_LOCALHOST" | chpasswd | ||
24 | else | ||
25 | : > /etc/postfix/virtual-regexp | ||
26 | fi | ||
27 |
overlay/etc/dovecot/conf.d/99-docker.conf
0 → 100644
-
Please register or sign in to post a comment