Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Submitter DNS name resolution and forgery detection

2013-08-15 by Jim Klimov

On 2013-08-15 06:52, manu@... wrote:
> Jim Klimov <jimklimov@... <mailto:jimklimov%40cos.ru>> wrote:
>
>  > > I was reading it and it seemed a bit overkill to me to do the
>  > > a.b.c.d -> d.c.b.a.in-addr.arpa transformation on your own. That adds
>  > > many lines and still fail to support IPv6. Is your system able to use
>  > > getnameinfo(), which is part of POSIX1?
>  >
>  > Well, we are only as crafty as the tools we know about ;)
>
> Here is a patch that does it using getaddrinfo/getnameinfo
> http://ftp.espci.fr/shadow/manu/unbracket.patch
>
> Please tell me if it fits your needs.

Addon to previous review: I do not quite see how this routine does
NOT change the original string in addr in case of any lookup errors?
Did I miss something (i.e. maybe getnameinfo() does not modify it
upon failure - always on all platforms)?

//Jim

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.