SA Bugzilla – Bug 4673
IPs not parsed properly
Last modified: 2006-03-08 15:25:15 UTC
The header X-Originating-IP: 10.0.0.101 via proxy [193.125.195.178] leads to the following in the log: originating: 10.0.0.101, , , , a, , , , , , , , , 193.125.195.178, , , and an error message: [496] warn: Argument "a" isn't numeric in pack at /PerlApp/Mail/SpamAssassin/Util.pm line 713. It looks like it has something to do with the definition of IP_ADDRESS in Mail::SpamAssassin::Constants, since it thinks that "a" is an IPv6 address.
I am not sure about the logic, but it seems like there are actually two bugs here. The first one is the definition of IP_ADDRESS, where "pure-IPv6 address" section should probably be something like (?<!:)[2-3][a-f0-9]{3}\:[a-f0-9]{0,4}\:(?:[a-f0-9]{0,4}\:){0,5}[a-f0-9]{0,4} This bug leads to the weird "originating: ..." line above. Second, either Mail::SpamAssassin::EvalTests::check_rbl_backend or Mail::SpamAssassin::NetSet::contains_ip assumes that IPs are always of the form IPV4_ADDRESS rather than IP_ADDRESS. This bug generates an error message in Mail::SpamAssassin::Util::my_inet_aton about non-numeric argument in pack.
we kluged around the Util error in bug 4485, but this would better fix the issue it looks like.
I fixed this, specifically, in bug 4780. *** This bug has been marked as a duplicate of 4780 ***