when you add an IMAP account to Mail.app on macOS, it connects to some Apple configuration service (presumably leaking your imap server hostnames and/or domains to Apple) before connecting to your server.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!