-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consider localhost as invalid domain #255
Conversation
question, should localhost be considered valid for DMARC? It is called in 3 places lib/Mail/DMARC.pm I would argue that foo@localhost in the From header is an invalid header_from RFC7489 6.6.1 states o Messages with an RFC5322.From field that contains no meaningful I would argue that @localhost is not a meaningful domain in this context. we should also lc $domain before checking, to account for @localhost etc. It may also be worth covering .localdomain here too? |
|
Nope. I think a general rule might be, "if the domain doesn't resolve to public IPs, it's invalid." |
It turns out, I already have a commit for lower casing in my local repo. Landing soon in #256 |
- consider localhost as invalid domain #255 - add a stringify method to the Policy class #253 - lower case domains passed to is_valid_domain #252 - lower case match from and envelope-from domains #249 - Change validation result for RFC7489 6.6.3 step 6.2 #248 - point README links to search.cpan.org #240 - sender: set options when creating new sender object #239 - permit storage of UTF-8 chars in MySQL DB #238 - load report_store modules using Module::Load #237 - create an email message with a proper Message-ID #236 - imap: only use port 143 if requested #235 - find_psl_file: fix duplicate share in path #232
fix issue #254