Project

General

Profile

Task #7568

Incoming SMTP IPv4 proxy

Added by Moris Jones over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Target version:
-
Start date:
01/05/2020
Due date:
% Done:

0%

Estimated time:
PM Check date:

Description

Should allow relaying messages to any domain whose primary MX AAAA record is in our IPv6 range.

  • Setup
  • Domain IN MX <mailrelay>
  • mailrelay IN AAAA <IPv6 address of the real host>
  • mailrelay IN A <IPv4 addres of a "proxy")>

History

#1

Updated by Moris Jones over 1 year 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.

Also available in: Atom PDF