DANE is incompatible with split DNS
Disclaimer: I have read the HNS + DANE issue but it seems more for Handshake/HNS rather than DANE specifically. So, I'm making this issue. Sorry if I'm mistaken and this is a duplicate.
Working setup without RethinkDNS
In the following, I use my VPN provider IVPN as an example but I'm pretty sure you could substitute any VPN provider whose DNS resolver is able to validate DANE responses. For instance, I experienced the same issue on ProtonVPN before.
With that out of the way, let's dive in.
- First, let's connect to IVPN using their app:
- Then, set up an IMAP account in FairEmail with DNSSEC and DANE enforcement enabled. Note: you must select an email provider, such as mailbox.org, who supports DANE for SMTP.
- Load your emails (head to the home page of FairEmail and pull down to reload your IMAP inbox)
To confirm, you can head to the Operations tab in the sidebar, where (unless the sync has ended before you enter this tab) you will see:
- The sync completes in some time and does not error out
With RethinkDNS + IVPN WireGuard proxies instead of IVPN app
Expected behavior
The above process works the same as with the IVPN/Proton VPN/etc apps.
Current behavior
- Connect to RethinkDNS and route FairEmail through an IVPN WireGuard proxy. Also, allow all DNS record types in
Configure > DNS > Filtering > Allowed DNS record types > Auto (all types)
2-4. Same as above.
5. The Operations tab does not empty out. Our DANE-enabled IMAP inboxes fail to sync:
A warning icon also appears in FairEmail's home page. When we click on it:
Edit
The experimental split DNS feature of RethinkDNS is the issue here.