Re: [Exim] SRV support through queryprogram router?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Nico Erfurth
Ημερομηνία:  
Προς: everton
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] SRV support through queryprogram router?
Everton da Silva Marques wrote:
> 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:


...

> 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?


I think the better way to do this is a manualroute router that uses
${run} or ${readsocket} (i would prefer readsocket, because it should be
faster) in its route_data option.

ciao