On 11/23/2014 1:46 AM, Peter wrote:
On 11/23/2014 02:10 PM, Wietse Venema wrote:
It could be kludged together with a transport map based on tcp_table
or socketmap, plus some clever scripting to generate the right
transport map responses.
I think a more elegant solution that should work would be to create a
policy daemon that would be coded to look up MX records for the
recipient domain and return a result based on a table match (could stub
postmap -q for the table lookups). This could be made as a simple
add-on to postfix that doesn't require any patching or new code to
implement so it would work on older versions of postfix as well as new.
You can't use policy services with the smtp client, only the smtp server.