[Exim] SRV support through queryprogram router?

Etusivu
Poista viesti
Vastaa
Lähettäjä: Everton da Silva Marques
Päiväys:  
Vastaanottaja: exim-users
Aihe: [Exim] SRV support through queryprogram router?
Hello.

The issue at hand is to attach SRV support (RFC 2782)
to Exim 4.12 through the 'queryprogram' router. Yes, I'm
aware DNS SRV records aren't currently specified for SMTP.

I have the 'syncsolver' program (from http://www.nongnu.org/ruli/)
which fetches DNS SRV records and issues them to stdout:

$ cat queries.txt
_smtp._tcp.vanrein.org
_smtp._tcp.exim.org
_smtp._tcp.bad.tld

$ ./syncsolver < queries.txt
_smtp._tcp.vanrein.org target=phantom.vanrein.org. port=25 addresses=:217.120.133.159
_smtp._tcp.vanrein.org target=sitemail.everyone.net. port=25 addresses=:216.200.145.35
_smtp._tcp.exim.org empty
_smtp._tcp.bad.tld srv-query-failed: srv_code=7 rcode=3

Now I'd like to write a Perl script or something to parse syncsolver
output and generate the proper string to be issued to Exim's
queryprogram router.

But I can't see a way to:
1. Pass the SRV port parameter to Exim.
2. Make Exim to try every SRV record, until one which succeeds
(like the 2 records for _smtp._tcp.vanrein.org in the example above).

Does anyone know if it's possible to accomplish such task?

Maybe the queryprogram router could be extended a little?

Many thanks,
Everton