Allow dashes in DKIM selectors
(when they're not the first character) * Fixes #68
This commit is contained in:
parent
fc04c8d723
commit
09cf3b3755
1 changed files with 1 additions and 1 deletions
|
@ -878,7 +878,7 @@ def smtp_relay_set():
|
|||
if sel is None or sel.strip() == "":
|
||||
config["SMTP_RELAY_DKIM_SELECTOR"] = None
|
||||
config["SMTP_RELAY_DKIM_RR"] = None
|
||||
elif re.fullmatch(r"[a-z\d\._]+", sel.strip()) is None:
|
||||
elif re.fullmatch(r"[a-z\d\._][a-z\d\._\-]*", sel.strip()) is None:
|
||||
return ("The DKIM selector is invalid!", 400)
|
||||
|
||||
# DKIM selector looks good, try processing the RR
|
||||
|
|
Loading…
Reference in a new issue