diff options
| author | Horus3 | 2015-05-17 00:56:57 +0200 |
|---|---|---|
| committer | Horus3 | 2015-05-17 00:56:57 +0200 |
| commit | feb97c32649dfaa7c98283423125283a53d5dd09 (patch) | |
| tree | 522ab758099d5cda742510c615af034b5ce5710c /server.go | |
| parent | 5d48193b6988f20b4ed94331350262d07754bd4d (diff) | |
| download | freemail-feb97c32649dfaa7c98283423125283a53d5dd09.tar.gz | |
Improved UX, security and presentation.
Diffstat (limited to 'server.go')
| -rw-r--r-- | server.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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() { |
