From 7e388e472a3aa31f0870c5d44162b0cef8d65705 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 9 Dec 2018 16:54:54 +0100 Subject: [PATCH] Handle relay name as an Idna domain --- core/admin/mailu/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/models.py b/core/admin/mailu/models.py index 6cfe6a60..21a261e6 100644 --- a/core/admin/mailu/models.py +++ b/core/admin/mailu/models.py @@ -208,7 +208,7 @@ class Relay(Base): __tablename__ = "relay" - name = db.Column(db.String(80), primary_key=True, nullable=False) + name = db.Column(IdnaDomain, primary_key=True, nullable=False) smtp = db.Column(db.String(80), nullable=True) def __str__(self):