Expand description
§Account discovery
This module contains everything needed to discover account configuration from a simple email address, heavily inspired by the Thunderbird Autoconfiguration standard.
NOTE: only IMAP and SMTP configurations can be discovered by this module.
Discovery performs actions in this order:
- Check ISP databases for example.com
- Check main ISP <autoconfig.example.com>
- Check alt ISP <example.com/.well-known>
- Check Thunderbird ISPDB <autoconfig.thunderbird.net/example.com>
- Check example.com DNS records
- If example2.com found in example.com MX records
- Check ISP databases for example2.com
- Check for mailconf URI in example2.com TXT records
- Check mailconf URI in example.com TXT records
- Build autoconfig from imap and submission example.com SRV records
- If example2.com found in example.com MX records
Modules§
Enums§
- Error
- The global
Error
enum of the module.
Functions§
- from_
addr - Discover configuration associated to a given email address using ISP locations then DNS, as described in the Mozilla wiki.
- get_
config - Send a GET request to the given URI and try to parse response as autoconfig.
Type Aliases§
- Result
- The global
Result
alias of the module.