Bastian Blank: > On Mon, Nov 08, 2010 at 03:13:45PM -0500, Wietse Venema wrote: > > Postfix CIDR support uses standard system library routines such as > > inet_pton(). I am reluctant to re-invent Postfix-specific versions. > > Maybe there is some other library that does not barf on this? > > The only parts of the glibc using this scope syntax are > getaddrinfo/getnameinfo. This two functions are contrary according to > the documentation and works on struct sockaddr. inet_pton however does > not fit in this and only works on the sin6_addr member of the structure. > > The sin6_scope_id field is documented in RFC 3493. The scoped addresses > are specified in RFC 4007.
There is code all over Postfix that sanity checks the syntax of domains and address literals, and that code just cannot ever accept datalink suffix junk. That means having to strip off the junk where it gets into Postfix, in smtpd_peer.c. Wietse