🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #208987

Problem with JBN(Panta Mod) and TLS/SMTP-Auth

#208987
From: George Orwell
Date: Mon, 21 Aug 2006 21:41
100 lines
4601 bytes
Hi,

I'm using JBN214 (Panta Mod) and have set it up to use STunnel/TOR to
send/retrieve mail from/to a Gmail account.

The retrieve part is fine and works without a hitch.  (Thanks again to
whoever pointed me at this method)

When I attempt to send I get a 'Unexpected result returned by server'
error.

Before I get the error message, the status line in JBN says 'Connecting
to...' and then it shows 'Sending 1 of 1'.

I have selected 'Perform SMTP Auth' in the Panta Mod window and have
entered the correct username/password combination for the Gmail account
with a Profile Name that matches (copy/pasted) that of the profile being
queued.

The STunnel config seems ok as I can use it to connect and queue mail from
a Telnet session.

The certs for Gmail seem to be ok as shown by being able to connect and
retrieve mail using POP, and connect and queue mail using a Telnet session.

STunnel pipes into TOR ok because the response to the EHLO command in a
Telnet session shows a TOR exit node's IP and not mine or my router's.

The relevant settings from my STunnel.conf are:

cert = stunnel.pem
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
options = all
CAfile = gmail.pem
RNDbytes = 2048
RNDfile = rand.bin
RNDoverwrite = yes
debug = 7
client = yes

[gmail_tls_smtp]
accept = 4650
connect = smtp.gmail.com:465
delay = no


The log output from STunnel is:

LOG7[2516:2492]: gmail_tls_smtp accepted FD=608 from 127.0.0.1:3860
LOG7[2516:2492]: Creating a new thread
LOG7[2516:2492]: New thread created
LOG7[2516:796]: gmail_tls_smtp started
LOG7[2516:796]: FD 608 in non-blocking mode
LOG7[2516:796]: TCP_NODELAY option set on local socket
LOG5[2516:796]: gmail_tls_smtp connected from 127.0.0.1:3860
LOG7[2516:796]: FD 636 in non-blocking mode
LOG7[2516:796]: gmail_tls_smtp connecting 0.0.0.1:465
LOG7[2516:796]: Remote FD=636 initialized
LOG7[2516:796]: TCP_NODELAY option set on remote socket
LOG7[2516:796]: SSL state (connect): before/connect initialization
LOG7[2516:796]: SSL state (connect): SSLv3 write client hello A
LOG7[2516:796]: SSL state (connect): SSLv3 read server hello A
LOG7[2516:796]: SSL state (connect): SSLv3 read server certificate A
LOG7[2516:796]: SSL state (connect): SSLv3 read server done A
LOG7[2516:796]: SSL state (connect): SSLv3 write client key exchange A
LOG7[2516:796]: SSL state (connect): SSLv3 write change cipher spec A
LOG7[2516:796]: SSL state (connect): SSLv3 write finished A
LOG7[2516:796]: SSL state (connect): SSLv3 flush data
LOG7[2516:796]: SSL state (connect): SSLv3 read finished A
LOG7[2516:796]:    1 items in the session cache
LOG7[2516:796]:    1 client connects (SSL_connect())
LOG7[2516:796]:    1 client connects that finished
LOG7[2516:796]:    0 client renegotiations requested
LOG7[2516:796]:    0 server connects (SSL_accept())
LOG7[2516:796]:    0 server connects that finished
LOG7[2516:796]:    0 server renegotiations requested
LOG7[2516:796]:    0 session cache hits
LOG7[2516:796]:    0 session cache misses
LOG7[2516:796]:    0 session cache timeouts
LOG6[2516:796]: SSL connected: new session negotiated
LOG6[2516:796]: Negotiated ciphers: DES-CBC3-SHA            SSLv3 Kx=RSA
Au=RSA  Enc=3DES(168) Mac=SHA1
LOG7[2516:796]: SSL socket closed on SSL_read
LOG7[2516:796]: Socket write shutdown
LOG5[2516:796]: Connection closed: 62 bytes sent to SSL, 251 bytes sent to
socket
LOG7[2516:796]: gmail_tls_smtp finished (0 left)

Unfortunately I can't show the SMTP EHLO, AUTH and other exchanges as they
are encrypted by STunnel and so Windump only shows the encrypted data.
(Could someone could point me at an app that will sit between JBN and
STunnel so I could see these in the clear?)

I'm kinda stuck here.

Any ideas?

Thanks :-)
Technical Details
Message-ID: <7d46844ced453e90545db9d290507a04@mixmaster.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.kawaly.20141024.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!newsgate.cistron.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news

Show Full Headers
Complete Article Headers
Message-ID: <7d46844ced453e90545db9d290507a04@mixmaster.it>
Subject: Problem with JBN(Panta Mod) and TLS/SMTP-Auth
Date: Mon, 21 Aug 2006 21:41:39 +0000
From: George Orwell <nobody@mixmaster.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.kawaly.20141024.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!newsgate.cistron.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
Newsgroups: alt.privacy.anon-server
X-No-Archive: yes
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com
Lines: 100