[FWD] Bug#300103: sa-exim: Greylisting.pm assumes that the connection IP is IPv4 only

Sander Smeenk <[email protected]> Mon, 21 Mar 2005 09:10:35 +0100
Newsgroups gmane.mail.exim.spamassassin
Message-ID <[email protected]>
Hello!

http://bugs.debian.org/300103

----- Forwarded message from Daniel Tryba <[email protected]> -----
Date: Thu, 17 Mar 2005 18:05:00 +0100
From: Daniel Tryba <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: Bug#300103: sa-exim: Greylisting.pm assumes that the connection IP is IPv4 only
Reply-To: Daniel Tryba <[email protected]>, [email protected]

Package: sa-exim
Version: 4.2-2
Severity: important

Greylisting.pm assumes that the connection ipaddress always is a ipv4
addr:

line 173: $connectip =~ /(\d+)\.(\d+)\.(\d+)\.(\d+)/;

When mail is getting deleiverd from an ipv6 capable smtpd filtering will
fail with following lines in syslog:
Mar 17 17:43:13 arrakis spamd[7065]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/Plugin/Greylisting.pm line 176. 
Mar 17 17:43:13 arrakis spamd[7065]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/Plugin/Greylisting.pm line 177.

It appears that the email that caused this error was silently discarded
(I can't find it anywhere).

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages sa-exim depends on:
ii  debconf [debconf-2.0]       1.4.30.11    Debian configuration management sy
ii  exim4-daemon-light          4.44-2       lightweight exim MTA (v4) daemon
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  spamc                       3.0.2-1      Client for SpamAssassin spam filte

-- debconf information excluded
----- End forwarded message -----

-- 
| Perfection doesn't end in .php
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8  9BDB D463 7E41 08CE C94D