[exim] Complex file parsing into IP address list

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tim Jackson
Dátum:  
Címzett: exim-users
Tárgy: [exim] Complex file parsing into IP address list
I'm using an extended variation of Tony F's brilliant "personalities"
configuration
(http://www-uxsup.csx.cam.ac.uk/~fanf2/hermes/doc/talks/2005-02-eximconf/
) with a plain text file like the following defining IP addresses and
ports, and their respective associated "personalities":

127.0.0.1/25 name=local acl=local
1.2.3.4/25 name=mx.example.com acl=mx
1.2.3.4/587 name=relay.example.com acl=submit

This works fine, but I'd like to get the unique IP addresses listed in
this file into a local_interfaces option. In the above example I would
like a local_interfaces option which expands as follows:

local_interfaces = 127.0.0.1 : 1.2.3.4

Unfortunately parsing this file in an Exim string expansion is beyond me
and so my best solution is to parse it via an external script into a
more usable format. Can any string-expansion-experts suggest any
alternatives that don't involve an extra file?

Tim