From feb97c32649dfaa7c98283423125283a53d5dd09 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Sun, 17 May 2015 00:56:57 +0200 Subject: Improved UX, security and presentation. --- server.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'server.go') diff --git a/server.go b/server.go index 387b5b6..975b549 100644 --- a/server.go +++ b/server.go @@ -25,9 +25,13 @@ func CreateNewEntry(email, password string) error { // Checks for correct DNS if !vD.ValidateDomainMX(server) { - if !vD.ValidateDomain(server) { - return errors.New("Neither the MX record nor the domain itself point to this server. Please fix your DNS.") - } + return errors.New("Wrong DNS setup. The MX record does not point to this server. Please fix your DNS.") + + // We require the correct MX entry, not just a A record. + // + //if !vD.ValidateDomain(server) { + // return errors.New("Neither the MX record nor the domain itself point to this server. Please fix your DNS.") + //} } if !vD.DomainExists() { -- cgit v1.2.3