--- On Wed, 8/15/12, Noel Jones <njo...@megan.vbhcs.org> wrote: > From: Noel Jones <njo...@megan.vbhcs.org> > Subject: Re: Transport Maps and TCP Table -> How to realize that postfix > queries for recipient AND sender ? > To: postfix-users@postfix.org > Date: Wednesday, August 15, 2012, 12:26 PM > On 8/15/2012 10:53 AM, Harakiri > wrote: > > Ive implemented a TCP table which will tell postfix > which destination IP should be used for internal relay. > > > > A TCP Table lookup only works with GET > <recipient> > > Correct. The lookup key for transport_maps is the > recipient address > regardless of table type. > > > > - is it somehow possible to have all the information > provided similar to the check_policy_service ? > > No. The use-case for transport_maps and > smtpd_*_restrictions > check_policy_service is very different.
Is there an alternative way to have a custom TCP service answer to postfix requests to where a mail should be relayed too - when postfix supplies all the transport information (sender,recipient, sending IP) ? Postfix already has nice table lookup and policy services - i dont see a reason why something like this couldnt be part of postfix lookup mechanism.