On 12 Mar 2019, at 11:39, Wietse Venema wrote:
Bill Cole:
On 12 Mar 2019, at 10:29, Wietse Venema wrote:
Bill, I think that an IPv6 address ending in 0000 will work only in
a cidr access map, because all other maps use string comparison.
Did you notice the demo I included, using a hash map?
The postmap command does not know how the Postfix SMTP daemon converts
an IPv6 address to string, which means that IPv6 address tests with
the postmap command are valid only when using cidr maps.
I suspected that might be the case...
The Postfix SMTP daemon looks up the same address form as the form
that it logs in information about the remote SMTP client. For
example, 2604:8d00:0:1::4 or 2001:41d0:1:88ce:: (these are real
samples from my maillog files).
Also (as I discovered by testing) smtpd does not canonicalize
ADDR=IPv6:* strings given to it by XCLIENT, so testing that way requires
the tester to know how to canonicalize an address.
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Available For Hire: https://linkedin.com/in/billcole