Your message dated Thu, 16 Nov 2006 10:47:13 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#392182: fixed in swaks 0+20061116.0-1
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

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

Package: swaks
Version: 20040404.1-1

swaks' handling of SMTP Authentication assumes the mechanisms shown
available by the MTA are displayed in upper case.  We are running a
server with Sendmail, Inc's Sendmail Switch 8.12.  It displays the
available AUTH mechanisms in lowercase (i.e. AUTH login plain).

When attempting to use swaks' SMTP-AUTH handling capabilities with this
server, swaks reports that the designated AUTH mechanism isn't support
by the server.  I traced this to the do_smtp_helo routing where the AUTH
mechanisms are collected, and was easily fixed by converting the
mechanisms to upper case as they were being collected from the MTA's
ehlo response.


Here is an example of the error that would result from our tests:

$ swaks -a login -ssl -s devmail.jpl.nasa.gov -p 465 -t
[EMAIL PROTECTED] -f [EMAIL PROTECTED] -h neutron.jpl.nasa.gov -au
dev-sysmail -ap test1234

=== Trying devmail.jpl.nasa.gov:465...
Secure SMTP Session (SSL)
=== Connected to devmail.jpl.nasa.gov.
<-  220 dev-mprox1.jpl.nasa.gov ESMTP READY; Tue, 10 Oct 2006 08:42:34 -0700
 -> EHLO neutron.jpl.nasa.gov
<-  250-dev-mprox1.jpl.nasa.gov Hello neutron.jpl.nasa.gov
[128.149.196.69], pleased to meet you
<-  250-ENHANCEDSTATUSCODES
<-  250-PIPELINING
<-  250-8BITMIME
<-  250-SIZE 26214400
<-  250-DSN
<-  250-AUTH login plain
<-  250-DELIVERBY
<-  250 HELP
*** PLAIN authentication not supported
 -> QUIT
<-  221 2.0.0 dev-mprox1.jpl.nasa.gov closing connection


This fix was made to the do_smtp_helo subroutine.  Here is the modified
code:

<<<
        map { $e->{AUTH}{$_} = 1 } (split(' ', $1));
>>>
        map { $e->{AUTH}{uc($_)} = 1 } (split(' ', $1));


Note:  I also added an SSL capability to swaks.


<<<
     $s = IO::Socket::INET->new( PeerAddr  => $host, PeerPort => $port,
                               Proto     => 'tcp', Timeout  => $timeout,

                               LocalAddr => $lint);
>>>
  if (defined $ssl) {
     print "Secure SMTP Session (SSL)\n";

     $s = IO::Socket::SSL->new( PeerAddr  => $host, PeerPort => $port,
                             Proto     => 'tcp', Timeout  => $timeout,
                             LocalAddr => $lint);
  }
  else {
     $s = IO::Socket::INET->new( PeerAddr  => $host, PeerPort => $port,
                             Proto     => 'tcp', Timeout  => $timeout,

                             LocalAddr => $lint);
  }

[Other changes include the loading of the IO::Socket::SSL module and
adding -ssl to the program's argument handling.]


I am using Ubuntu: Debian GNU/Linux 2.6, kernel 2.6.15-27-386 and perl
v5.8.7.

Thank you for the otherwise great program.

Thomas Berry
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFK8t5rcz+zzgsZqwRAqZPAJ4+VJj0EXvh8/jSnnwVv7d60+hxUQCgvXZm
8p0h7C8QIMuRTBj1eOXNzP0=
=qtTo
-----END PGP SIGNATURE-----


--- End Message ---
--- Begin Message ---
Source: swaks
Source-Version: 0+20061116.0-1

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

swaks_0+20061116.0-1.diff.gz
  to pool/main/s/swaks/swaks_0+20061116.0-1.diff.gz
swaks_0+20061116.0-1.dsc
  to pool/main/s/swaks/swaks_0+20061116.0-1.dsc
swaks_0+20061116.0-1_all.deb
  to pool/main/s/swaks/swaks_0+20061116.0-1_all.deb
swaks_0+20061116.0.orig.tar.gz
  to pool/main/s/swaks/swaks_0+20061116.0.orig.tar.gz



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.
Andreas Metzler <[EMAIL PROTECTED]> (supplier of updated swaks 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.7
Date: Thu, 16 Nov 2006 19:25:43 +0100
Source: swaks
Binary: swaks
Architecture: source all
Version: 0+20061116.0-1
Distribution: unstable
Urgency: low
Maintainer: Andreas Metzler <[EMAIL PROTECTED]>
Changed-By: Andreas Metzler <[EMAIL PROTECTED]>
Description: 
 swaks      - SMTP command-line test tool
Closes: 381222 392182
Changes: 
 swaks (0+20061116.0-1) unstable; urgency=low
 .
   *  New upstream version 20061116.0.
      - swaks will now interact correctly with a server that advertised auth
        types in non-caps. (Closes: #392182)
      - New --protocol option allows specifying transaction protocols.
        --protocol smtp uses HELO instead of EHLO. (Closes: #381222)
   * Update debian/copyright.
Files: 
 e2739b10fd2cbfc03f80513ea6f8d537 603 mail optional swaks_0+20061116.0-1.dsc
 e48d33973ed87aeda66b8ed87a16e88a 24371 mail optional 
swaks_0+20061116.0.orig.tar.gz
 8853ac0f614439ad2b99325f6eda6111 2934 mail optional 
swaks_0+20061116.0-1.diff.gz
 89c477b925bf1fd6a5702803a06cea1f 38902 mail optional 
swaks_0+20061116.0-1_all.deb

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

iD8DBQFFXK+CHTOcZYuNdmMRAj6fAJ9j2vtp1eoaBU0nuyliOnhqTr+AywCgmaIY
Hb/owU5Ntaf+OX/rTHFFVXY=
=0Bnv
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to