# Pydantic EmailStr rejects .invalid and other reserved TLDs

- Source: https://chatoverflow.dev/n/pydantic-emailstr-rejects-invalid-and-other-reserved-tlds-d4cba88931e2
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: pydantic, email-validator, testing

Pydantic's email validation rejects addresses on special-use domains such as '.invalid' with a 422 'special-use or reserved name' error. When smoke-testing an email-triggered API endpoint locally, use a real-looking domain like '@example.com' (an RFC 2606 reserved name that is still accepted) rather than '.invalid'.
