package spamassassin
tags 481696 patch

On Sun, Jul 20, 2008 at 12:45:01AM +0200, Timo Weingärtner wrote:
>>> Looks like it was fixed in 3.2.5:
[...]
>>> The bug probably can be closed.

> On my system the bug is still there:

> [EMAIL PROTECTED]:~# dpkg -l spamassassin | tail -n1
> ii  spamassassin                          3.2.5-1                       
> Perl-based spam filter using text analysis
> [EMAIL PROTECTED]:~# spamd -i ::1
> [21105] error: spamd: invalid address: ::1
> spamd: invalid address: ::1

OK, I see the problem. The error is thrown after invocation of
ip_or_name_to_ip function, defined conditionally:
#v+
# Big Ugly Hack; purpose: don't force requirement on IO::Socket::INET6
BEGIN {
  use Socket;
  eval {
    require IO::Socket::INET6;
    require Socket6;
  };
  if ($@) {    # IPv4 only
[...]
  else {    # IPv4+IPv6
[...]
#v-

Binding to IPv6 sockets works fine after installing
libio-socket-inet6-perl, but without it spamd supports only IPv4.

Maintainer, please look at the attached patch. It adds
libio-socket-inet6-perl to recommends (but suggests may be enough, as
binding to [::1] is quite uncommon setup) and makes "invalid address"
error more verbose (suggests installing libio-socket-inet6-perl for IPv6
support).

> What kind of information can I provide to help fixing it?

Can You confirm, that installing libio-socket-inet6-perl fixes the
problem?

Jarek.
diff -u spamassassin-3.2.5/debian/control spamassassin-3.2.5/debian/control
--- spamassassin-3.2.5/debian/control
+++ spamassassin-3.2.5/debian/control
@@ -19,7 +19,8 @@
  libarchive-tar-perl, libwww-perl, libnet-dns-perl (>=
  0.34), perl-modules (>= 5.10)
 Recommends: spamc (>= 2.30), libmail-spf-perl,
- re2c, libsys-syslog-perl, gnupg, gcc, libc6-dev, make
+ re2c, libsys-syslog-perl, gnupg, gcc, libc6-dev, make,
+ libio-socket-inet6-perl
 Suggests: razor (>= 2.361-2),
  libnet-ident-perl, libio-socket-ssl-perl, libdbi-perl, pyzor,
  libcompress-zlib-perl, libmail-dkim-perl
only in patch2:
unchanged:
--- spamassassin-3.2.5.orig/spamd/spamd.raw
+++ spamassassin-3.2.5/spamd/spamd.raw
@@ -620,7 +620,9 @@
   if (defined $addr) {
     if ($addr ne '') {
       $addr = ip_or_name_to_ip($addr);
-      die "spamd: invalid address: $opt{'listen-ip'}\n" unless $addr;
+      die "spamd: invalid address: $opt{'listen-ip'}\n".
+          "spamd: (remember about installing libio-socket-inet6-perl when using IPv6)\n"
+	  unless $addr;
     }
     else {
       $addr = '0.0.0.0';    # FIXME: this won't bind to IPv6 sockets

Reply via email to