🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #245361

Re: [newspost] and stunnel

#245361
From: grant
Date: Sun, 24 Apr 2011 20:32
36 lines
2697 bytes
On Sat, 23 Apr 2011 09:48:59 -0500, Pepi <pepi@egg.nog> wrote:

>This  is a bit of a mystery.  Using Pan the combination of the setting
>host = localhost (plus USR/PWD, of course), seems to do the trick.   I
>can download/upload using Pan through stunnel with no problems.
>
>Using  the same setting for newspost (the binary poster) and it  fails
>with a "Failed to resolve the server name" message.
>
>If  I instead set it up using my "real" host, i.e., I skip stunnel  in
>the  settings, it works with  no  problem.   It's  as  if  it  doesn't
>understand the keyword "localhost", oh, and I've tried with 127.0.0.1,
>as  well as trying the port number attached at the end of  host  name.
>Nothing.

Sounds like you're not getting the local port set correctly in newspost.

Are you using a $HOME/.newspostrc file to set the defaults?
Does it contain some lines similar to the following?
# address of news server
address=localhost

# port of news server
port=900
(set this to agree with whatever port is working for you in Pan)

Or, are you setting the port by passing an argument on the command line?
eg.
newspost -i localhost -z 900 yada yada yada

My preference is to use a $HOME/.newspostrc, which is created by 
newspost -d and edited appropriately, then passing a minimum of
arguments on the command line - typically, only the subject and
filename(s), eg. 
newspost -s 'this is a test' testfile*.jpg  
Technical Details
Message-ID: <5h19r6tmpjle6fodnrkv6fe508ae6lpb8p@4ax.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
References: <EqmdnWeIGtNGey_QnZ2dnUVZ8nWdnZ2d@giganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <5h19r6tmpjle6fodnrkv6fe508ae6lpb8p@4ax.com>
Subject: Re: [newspost] and stunnel
Date: Sun, 24 Apr 2011 15:32:36 -0500
From: grant <sample@example.invalid>
References: <EqmdnWeIGtNGey_QnZ2dnUVZ8nWdnZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 36
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: mx03.eternal-september.org;
 posting-host="0NlPKNsI5NtCHMOfvdPYoQ";
 logging-data="20125"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX1+jSTt1tz5RaVRilL4w0O64"
X-No-Archive: yes
X-Newsreader: Forte Agent 2.0/32.652
Cancel-Lock: sha1:ldfzS6iEfDhKVe0bAuhildoQzO0=
X-Original-Bytes: 2423