You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-23 22:04:47 +02:00
Move the Mailu Docker network to a fixed subnet.
This will make network configuration and host based authentication more robust, across different deployment platforms. The options `RELAYNETS` and`POD_ADDRESS_RANGE` are kept for compatibility. However, their usage have become optional.
This commit is contained in:
@@ -14,7 +14,7 @@ queue_directory = /queue
|
||||
message_size_limit = {{ MESSAGE_SIZE_LIMIT }}
|
||||
|
||||
# Relayed networks
|
||||
mynetworks = 127.0.0.1/32 [::1]/128 {{ RELAYNETS }}
|
||||
mynetworks = 127.0.0.1/32 [::1]/128 {{ SUBNET }} {{ RELAYNETS }}
|
||||
|
||||
# Empty alias list to override the configuration variable and disable NIS
|
||||
alias_maps =
|
||||
@@ -32,7 +32,8 @@ relayhost = {{ RELAYHOST }}
|
||||
recipient_delimiter = {{ RECIPIENT_DELIMITER }}
|
||||
|
||||
# Only the front server is allowed to perform xclient
|
||||
smtpd_authorized_xclient_hosts={{ FRONT_ADDRESS }} {{ POD_ADDRESS_RANGE }}
|
||||
# In kubernetes and Docker swarm, such address cannot be determined using the hostname. Allow for the whole Mailu subnet instead.
|
||||
smtpd_authorized_xclient_hosts={{ POD_ADDRESS_RANGE or SUBNET }}
|
||||
|
||||
###############
|
||||
# TLS
|
||||
|
||||
Reference in New Issue
Block a user