I've managed to get the Exim + Pgsql setup working.
For the domains I'm hosting I have a set of records which contain an email address within the domain and an delivery email address, e.g.
user@hosted.domain -> gary.stainburn@ringways.co.uk
When I test this using
exim -bt user@hosted.domain
it works fine, but when I try to send an email it fails
relay not permitted.
Obviously i do not want to turn on relaying, so how can I configure Exim to allow emails that have matched a record in the user table to be forwarded?
Allegedly, on or about 26 March 2013, Gary Stainburn sent:
When I test this using
exim -bt user@hosted.domain
it works fine, but when I try to send an email it fails
relay not permitted.
Obviously i do not want to turn on relaying, so how can I configure Exim to allow emails that have matched a record in the user table to be forwarded?
Bearing in mind your bowlderised example, my simplistic answer would be to use real domain names (that you own) in your network. Things work a lot easier when you don't use fake domain names. Being able to email between machines, for just one example.