On Fri, 23 May 2025 14:25:17 +0200
Xavier Humbert via Postfix-users <[email protected]> wrote:
[snip]
>
> Hi Jim,
>
> May I suggest a patch I use from years to handle IPv6 addresses :
>
> --- pflogsumm-1.1.6/pflogsumm 2025-05-22 20:57:37.000000000 +0200
> +++ pflogsumm 2025-04-18 14:52:39.000000000 +0200
>
> @@ -1541,14 +1536,14 @@
> # split domain/ipaddr into separates
> # newer versions of Postfix have them "dom.ain[i.p.add.ress]"
> # older versions of Postfix have them "dom.ain/i.p.add.ress"
> - unless((($domain, $ipAddr) =
> /^([^\[]*)\[((?:\d{1,3}\.){3}\d{1,3})\]/) == 2||
> - (($domain, $ipAddr) = /^([^\/]*)\/([0-9a-f.:]+)/i) ==
> 2) {
> + unless((($domain, $ipAddr) =
> /^([^\[]+)\[((?:\d{1,3}\.){3}\d{1,3}|[0-9a-f:]+)\]/o) == 2 ||
> + (($domain, $ipAddr) = /^([^\/]+)\/([0-9a-f.:]+)/i) ==
> 2) {
Thanks for the suggestion, Xavier, but, as you'll see from the 1.1.7
ChangeLog, the function in which that was contained has since been
completely re-written.
Regards,
Jim
--
Note: My mail server employs *very* aggressive anti-spam
filtering. If you reply to this email and your email is
rejected, please accept my apologies and let me know via my
web form at <http://jimsun.LinxNet.com/contact/scform.php>.
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]