Add ALIAS_DOMAINS config
This commit is contained in:
parent
7d0ab3651f
commit
62017592e1
|
@ -86,7 +86,11 @@ else:
|
|||
OTHER_ALIAS_DOMAINS = []
|
||||
|
||||
# List of domains user can use to create alias
|
||||
ALIAS_DOMAINS = OTHER_ALIAS_DOMAINS + [EMAIL_DOMAIN]
|
||||
if "ALIAS_DOMAINS" in os.environ:
|
||||
ALIAS_DOMAINS = eval(os.environ["ALIAS_DOMAINS"]) # ["domain1.com", "domain2.com"]
|
||||
else:
|
||||
ALIAS_DOMAINS = OTHER_ALIAS_DOMAINS + [EMAIL_DOMAIN]
|
||||
|
||||
ALIAS_DOMAINS = [d.lower().strip() for d in ALIAS_DOMAINS]
|
||||
|
||||
# the alias domain used when creating the first alias for user
|
||||
|
|
|
@ -24,6 +24,9 @@ ENFORCE_SPF=true
|
|||
# other domains that can be used to create aliases, in addition to EMAIL_DOMAIN
|
||||
OTHER_ALIAS_DOMAINS=["domain1.com", "domain2.com"]
|
||||
|
||||
# domains that can be used to create aliases. If set, override OTHER_ALIAS_DOMAINS
|
||||
ALIAS_DOMAINS=["domain1.com", "domain2.com"]
|
||||
|
||||
# the alias domain used when creating the first alias for user, default to EMAIL_DOMAIN if not set
|
||||
# FIRST_ALIAS_DOMAIN = another-domain.com
|
||||
|
||||
|
|
Loading…
Reference in New Issue