From 32f7f48f9cad917257d0be782a3d3fe1c4cab4a2 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 11 Jan 2018 11:43:03 +0100 Subject: [PATCH] mail/postfix: change FieldType of destination (#480) --- .../OPNsense/Postfix/forms/dialogEditPostfixDomain.xml | 2 +- .../src/opnsense/mvc/app/models/OPNsense/Postfix/Domain.xml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mail/postfix/src/opnsense/mvc/app/controllers/OPNsense/Postfix/forms/dialogEditPostfixDomain.xml b/mail/postfix/src/opnsense/mvc/app/controllers/OPNsense/Postfix/forms/dialogEditPostfixDomain.xml index ce4c6b020..128706a6c 100644 --- a/mail/postfix/src/opnsense/mvc/app/controllers/OPNsense/Postfix/forms/dialogEditPostfixDomain.xml +++ b/mail/postfix/src/opnsense/mvc/app/controllers/OPNsense/Postfix/forms/dialogEditPostfixDomain.xml @@ -15,6 +15,6 @@ domain.destination text - Set the IP or FQDN to where to send the mails to. Empty means MX will be used. + Set the IP or FQDN to where to send the mails to. Empty means MX will be used. You can also add custom ports via :225 or disable MX lookup via squared brackets. diff --git a/mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Domain.xml b/mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Domain.xml index 168fc7d19..9a14171d0 100644 --- a/mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Domain.xml +++ b/mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Domain.xml @@ -13,9 +13,11 @@ Y - + Y + /^([0-9a-zA-Z.:\-\[\]]){1,64}$/u + Only 64 of the following characters are allowed: 0-9a-zA-Z.:-[]