Incoming SMTP IPv4 proxy
Should allow relaying messages to any domain whose primary MX AAAA record is in our IPv6 range.
- Domain IN MX <mailrelay>
- mailrelay IN AAAA <IPv6 address of the real host>
- mailrelay IN A <IPv4 addres of a "proxy")>
Updated by Moris Jones over 2 years ago
This should not be so difficult.
The most basic exim setup using exim4-config allows supplying a list of domains to relay for.
This list needs to be created and provided to exim.
One approach would be for it to be done manually (user opt-in), whereby user adds their domain using a cmdline tool. This is probably fastest to implement and the best short-term solution.
Another approach would be to generate it automatically by crawling through all global DNS records and searching for MX records with AAAA in our range. This would need to be run repeatedly using a cron job, and would be intensive and slow to update.
A more combined approach would be to maintain an internal record of all relevant DNS info - list of domains owned by customers and copies of their respective zone files. These could then be used to generate the relay list for exim, and would be much less data to crawl through. This data will be necessary for the IPv4-to-IPv6 semi-recursive DNS proxy anyway.
Updated by Moris Jones 4 months ago
Instructions on an experimental implementation for this can be found here: