How can I get the list of local domains from a forward file?
An example of /etc/exim4/forwards
:
a@test.com: a@lala.com
# ignore this line
b@test.com: a@example.com
b@hugo.com: hugo@example.com
Here the string expansion (or what ever it's called g) should return test.com : hugo.com
.
I assume it can be done with readfile
and map
, but I can't get it to work.
Comments
Post a Comment