Your message dated Mon, 03 Dec 2012 06:17:31 +0000
with message-id <[email protected]>
and subject line Bug#693181: fixed in qpsmtpd 0.84-9
has caused the Debian Bug report #693181,
regarding qpsmtpd: sender_permitted_framework plugin hangs on IPv6 clients
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
693181: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=693181
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: qpsmtpd
Version: 0.84-8
Tags: patch

The debian version of qpsmtpd has its own modified version of the
SPF plugin, therefore this problem (which also exists in the upstream
version) needs to be fixed in debian.

The SPF plugin will hang on IPv6 clients because the code does not
handle themn correctly and will end in a endless loop.

Patch attached fixes this problem.


Regards,
Michael
diff -Naur qpsmtpd-0.84.orig/plugins/sender_permitted_from qpsmtpd-0.84/plugins/sender_permitted_from
--- qpsmtpd-0.84.orig/plugins/sender_permitted_from	2012-11-14 02:46:02.000000000 +0100
+++ qpsmtpd-0.84/plugins/sender_permitted_from	2012-11-14 02:53:23.000000000 +0100
@@ -68,7 +68,12 @@
           if exists $relay_clients{$client_ip};
         return (DECLINED, "SPF - relaying permitted")
           if exists $more_relay_clients->{$client_ip};
-        $client_ip =~ s/\d+\.?$//;    # strip off another 8 bits
+        if ( $client_ip =~ /:/ ) {
+          $client_ip =~s /[0-9a-f]+:*$//; # strip off another segment
+        }
+        else {
+          $client_ip =~ s/\d+\.?$//;      # strip off another 8 bits
+        }
     }
 
     my $scope = $from ? 'mfrom' : 'helo';

--- End Message ---
--- Begin Message ---
Source: qpsmtpd
Source-Version: 0.84-9

We believe that the bug you reported is fixed in the latest version of
qpsmtpd, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Devin Carraway <[email protected]> (supplier of updated qpsmtpd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 02 Dec 2012 21:34:02 -0800
Source: qpsmtpd
Binary: qpsmtpd
Architecture: source all
Version: 0.84-9
Distribution: unstable
Urgency: low
Maintainer: Devin Carraway <[email protected]>
Changed-By: Devin Carraway <[email protected]>
Description: 
 qpsmtpd    - Flexible SMTP daemon for network-level spam detection
Closes: 686156 693103 693181
Changes: 
 qpsmtpd (0.84-9) unstable; urgency=low
 .
   * Apply patch to prevent hang in SPF plugin under IPv6 (Closes:
     #693181)
   * Declare missing dependency on libio-socket-inet6-perl (Closes:
     #693103)
   * Add Slovak translation; thanks to Slavko (Closes: #686156)
Checksums-Sha1: 
 b0d5d01bf84d7a6d772ba06c5e41aca1dcb71fc2 1001 qpsmtpd_0.84-9.dsc
 52bc54e584d59a68b5c64daf972f081cf4b29b6e 50980 qpsmtpd_0.84-9.debian.tar.gz
 7790aad75223dfe515731e2c6bc81d6fe37331cb 216532 qpsmtpd_0.84-9_all.deb
Checksums-Sha256: 
 30b3946d218ed2b1b6913b39900f49c0f47641c8cfbed32e3bf7c79db5cef6ec 1001 
qpsmtpd_0.84-9.dsc
 937a8b965ef67eaf59f5c649d589550522fe97f028d2a603bf21e5064c2467ed 50980 
qpsmtpd_0.84-9.debian.tar.gz
 11ac498b881cf3d98dc8e3d2337561f1f4f3b406883ff04546ec67d67a42b95a 216532 
qpsmtpd_0.84-9_all.deb
Files: 
 76cd1158a5a2a0b84d6ef2ce1bed39d7 1001 mail extra qpsmtpd_0.84-9.dsc
 f1e5557c23adbf04d04f67c13f236d57 50980 mail extra qpsmtpd_0.84-9.debian.tar.gz
 135953c6c2b5a4d20fc68c2551d43c1c 216532 mail extra qpsmtpd_0.84-9_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iD8DBQFQvEFDU5XKDemr/NIRAmWpAJ0dUdLFFGJUkS3Y4TKlBiYSm7yKzwCfWW+q
OOlOMYmRUFcdzeILNTUIxwc=
=U525
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to