Validators::isEmail: Add check for DNS nameservers.#269
Validators::isEmail: Add check for DNS nameservers.#269janbarasek wants to merge 15 commits intonette:masterfrom
Conversation
…turn objects Type (BC break)
|
You don't need MX record. A, or AAAA is sufficient to deliver e-mails. |
|
Also I think Ideal would imho be to support only fully FQDN - if trailing dot is missing, add it. It should prevent multiple lookups with relative domain name. So instead of |
|
Part after To IDN - yes, |
|
@janbarasek can you update PR please? |
|
There was forum post about this 8 years ago https://forum.nette.org/en/1293-mail-adress-validation-mx-records and it contains good points which needs to be solved. |
|
I don't think so
We only want to check that domain/hostname exists, not that they has correctly configured mail delivery. If domain/hostname is wrong, MTA fails immediately (that's what we want to prevent). If domain/hostname is correct, but MX records are incorrect or host is down, MTA will use queue and will try to deliver later. |
8cb1b67 to
5002ffb
Compare
a7a3cf1 to
3698c0c
Compare
6307c27 to
fac1f2b
Compare
edc34c3 to
7c2a4de
Compare
bfae9e7 to
c567207
Compare
46e8fe1 to
489126b
Compare
db81e54 to
27251ce
Compare
E-mail should be valid only in case of domain name use valid
MXDNS record.Examples: