Skip to content

Commit 482c87f

Browse files
committed
Adjust RELAY_FROM_HOSTS for IPv6 support
1 parent fc88ce0 commit 482c87f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ USER exim
2020
EXPOSE 8025
2121

2222
ENV LOCAL_DOMAINS=@ \
23-
RELAY_FROM_HOSTS=10.0.0.0/8:172.16.0.0/12:192.168.0.0/16 \
23+
RELAY_FROM_HOSTS="<; 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16; fc00::/7" \
2424
RELAY_TO_DOMAINS=* \
2525
RELAY_TO_USERS= \
2626
DISABLE_SENDER_VERIFICATION= \

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,11 @@ services:
104104

105105
###### RELAY_FROM_HOSTS
106106

107-
* A list (colon separated) of subnets to allow relay from
107+
* A list prefixed with `<; `, which contains `;`-separated IPv4/IPv6 subnets to allow relay from (see the default value below for an example)
108108
* Set to "\*" to allow any host to relay - use this with RELAY_TO_DOMAINS to allow any client to relay to a list of domains
109-
* Defaults to private address ranges: 10.0.0.0/8:172.16.0.0/12:192.168.0.0/16
109+
* Defaults value: `<; 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16; fc00::/7`
110+
111+
💡 Lists in exim use `:` as a value separator by default. Since IPv6 addresses are written with `:` inside them, we override the default separator by adding the `<; ` prefix. This allows for `:` to be used in IP address ranges without being interpreted as a separator.
110112

111113
###### RELAY_TO_DOMAINS
112114

0 commit comments

Comments
 (0)