[Pkg-gnutls-maint] Help: Port nbsmtp to gnutls

James Westby jw+debian at jameswestby.net
Mon Jul 31 02:13:10 UTC 2006


On (31/07/06 00:35), Mario Iseli wrote:
> Hello gnutls-Maintainers,
> 
> I try to port nbsmtp to gnutls instead of openssl, it's already
> compiling without any errors but it seems not to work. I made an upload
> to my local repository[1] with all the patches i wrote. I would be
> thankful if someone could have a look at it and maybe help me with the
> port. I tought I ask first you because I think you have experience with
> gnutls, before I do an RFH.

Ok, a few points. 

1) It doesn't compile here. You need to add autoconf to the build
dependencies. You also need to modify the patch to fix the #include in
hmac_md5.c 

2) It would have been nice to tell us what the failure was, so that we
could try and reproduce it. What counts as success for you?

3) Here is a transcript from a session with a compiled version.

cat mail | nbsmtp -h 127.0.0.1 -p 25 -S -f jw2328 -d foo -N -n -V
Creating SSL connection to host (127.0.0.1:25)
[<-] 220 loser.MSHOME ESMTP Exim 4.62 Mon, 31 Jul 2006 02:49:55 +0100
[->] EHLO foo
[<-] 250-loser.MSHOME Hello foo [127.0.0.1]
[<-] 250-SIZE 52428800
[<-] 250-PIPELINING
[<-] 250-STARTTLS
[<-] 250 HELP
[->] STARTTLS
[<-] 220 TLS go ahead
[->] EHLO foo
[<-] [3 characters I can't paste in to vim]
EHLO command failed
Error after SSL connection was stablished
Error in send_mail
Mail NOT sent.

It would be good if the package could do something with errors it gets
from libraries, rather that silently eating them.

The other thing to say is that it is generally not recommended to use
the openssl compatibility layer, as it is not that well maintained. If
possible you should fully port the application to gnutls/gcrypt, but I
understand that you may not want to do this.

I hope you can get further with this information.

James

-- 
  James Westby
  jw+debian at jameswestby.net
  http://jameswestby.net/




More information about the Pkg-gnutls-maint mailing list