Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] invalid IPv6 address

2004-10-12 by Hajimu UMEMOTO

Hi,

>>>>> On Tue, 12 Oct 2004 18:39:25 -0000
>>>>> "scoost" <scotto5@...> said:

scotto5> 64.106.137.140  <mmreturn@...>        
scotto5> <smtp:simmons_st@...>        1097598374 # 2004-10-12 
scotto5> 09:26:14

scotto5> It appears to be the smtp: part.
scotto5> The error message I get is  
scotto5> invalid IPv6 address line 147647

This patch should fix it for workaround:

Index: dump_lex.l
diff -u dump_lex.l.orig dump_lex.l
--- dump_lex.l.orig	Sun Aug  1 18:27:03 2004
+++ dump_lex.l	Wed Oct 13 04:04:19 2004
@@ -6,7 +6,7 @@
 num		[0-9]{1,}
 byte		[0-9]{1,3}
 ipaddr		{byte}"."{byte}"."{byte}"."{byte}
-ip6addr		([0-9a-fA-F]*:)+[0-9a-fA-F]*(%[0-9a-zA-Z]+)?
+ip6addr		([0-9a-fA-F]*:){2,}[0-9a-fA-F]*(%[0-9a-zA-Z]+)?
 atext		[A-Za-z0-9!#$%&'*+/=?$^_`}{|~.-]{1,}
 qtext		"\""[!-~]{1,}"\""
 mailbox		{atext}|{qtext}

Actual fix should be don't match ip6?addr within a line.

Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@...  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/

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.