summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorHorus32015-05-17 00:56:57 +0200
committerHorus32015-05-17 00:56:57 +0200
commitfeb97c32649dfaa7c98283423125283a53d5dd09 (patch)
tree522ab758099d5cda742510c615af034b5ce5710c /server.go
parent5d48193b6988f20b4ed94331350262d07754bd4d (diff)
downloadfreemail-feb97c32649dfaa7c98283423125283a53d5dd09.tar.gz
Improved UX, security and presentation.
Diffstat (limited to 'server.go')
-rw-r--r--server.go10
1 files changed, 7 insertions, 3 deletions
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() {