Ok…
So if I have the following:
example.com OK
example.com REJECT
Then the correct Postfix lookup behavior is to return OK,REJECT
Do I understand correctly?
Also, I do understand that this type of config would be a corner case
and likely not really something to be used so this is really more
negative testing…
- - -
On 19 Feb 2021, at 15:33, Viktor Dukhovni wrote:
On Fri, Feb 19, 2021 at 11:13:57PM +0000, Antonio Leding wrote:
I wanted to ask about the expected behavior if there are multiple
entries in an SQL table for the same lookup (IP address, network,
domain, etc.) which specify either the same or different actions
(REJECT, OK, etc.).
As documented, the LDAP, Posgresql and MySQL table drivers combine
multiple answers by intercalating commas between the individual
values.
This works sensibly for e.g. returning multiple email addresses, but
not
in contexts where comma-separated values are not expected.
It is your responsibility to write queries that return an answer that
conforms to the expected value syntax.
--
Viktor.