🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #145050

Re: Tin with Hamster

#145050
From: Frank Slootweg
Date: Wed, 17 Mar 2004 20:47
98 lines
5466 bytes
Ted S. <fedya@bestweb.spam> wrote:
> Somebody claiming to be Frank Slootweg <this@ddress.is.invalid> wrote in
> news:40581f22$0$61832$a344fe98@news.wanadoo.nl: 
> 
>>> It was a mail I was trying to send.  (I have hamster configured to
>>> send mailing list emails to local newsgroups.)  And it doesn't help
>>> that typing "find ssmtp" at the command prompt gives me a message
>>> saying "No such file or directory".  More packages to download.... 
>> 
>>   Let me know if you need help with this part. I needed to work around
>>   a 
>> CRLF versus LF bug somewhere. The whole story should be in Google
>> Groups (I posted to this group, somewhere in the second half of last
>> year). 
> 
> I installed ssmtp, but when I type "find ssmtp" at the prompt, I *still* 
> get a "No such file or directory" comment.

  I don't understand why you expect find(1) to find a command. At least
not the way you invoke it (It would need to be something like
"find / -name ssmtp.exe".).

  Anyway, ssmtp should be in /usr/sbin. It is probably best to just put
the full path into your .tin/tinrc file, i.e.:

default_mailer_format=/usr/sbin/ssmtp -t < %F

  However, before using ssmtp from tin, you first have to configure and
test it. See /usr/share/doc/Cygwin/ssmtp-*.README for details. It
probably instructs you to run /usr/bin/ssmtp-config. I gave the
following answers:

> Please enter the full qualified hostname (foo.bar.baz) of your box:
> NOYB.wanadoo.nl
> Please enter the "mail name" of your system.  This is the hostname
> portion of the address to be shown on outgoing news and mail messages.
> The default is NOYB.wanadoo.nl, your system's host name.
> Mail name [NOYB.wanadoo.nl]:
> Please enter the full qualified hostname of your mail hub:
> smtp.cablewanadoo.nl
> Please enter the smtp port number [25]:
> Please check the configuration file /etc/ssmtp/ssmtp.conf for
> correctness.

  These were not the correct answers, so I needed to change
/etc/ssmtp/ssmtp.conf:

> rewriteDomain=wanadoo.nl (was "#rewriteDomain=NOYB.wanadoo.nl")
> FromLineOverride=YES     (was "#FromLineOverride=YES")

  Now you can test ssmtp with:

/usr/sbin/ssmtp -t <message.txt

  Where message.txt is a file which contains a UNIX style message, i.e.
a header (From:, To: and Subject: lines), a blank line and then the
body.

  If that works, you can try it from tin. In my case I had problems with
CRLF versus LF, but that may be due to my special setup (My tin uses an
old version of Cygwin and my ssmtp uses a new version. Don't ask. You
don't want to know. But it gives library conflicts and probably causes
the CRLF versus LF problem.)

>>> If I try to post a News, tin tells me that posting isn't allowed. 
>>> Where and how do I configure the FQDN?  The help documentation with
>>> tin is rather limited. 
>> 
>>   Ah! I don't know if this is the/your problem, but tin is rather
>>   picky 
>> about a user's user and domain name in their From: line. One of the
>> 'tricks' is putting a "disable_sender=ON" line in your tin.defaults
>> file (normally in /etc/tin). I also have a "domainname=" line in
>> there, but I do not think that is needed, because it is my old domain,
>> not my current one.
> 
> Hmmm....  I can't find a tin.defaults file anywhere.

  Then just make one (in /etc/tin) and put "disable_sender=ON" in it. My
(1.4.1) manpage says it should be in there.

  Please note that all paths with forward slashes are *Cygwin*
pathnames, not Windows ones, so for example because my stuff is put in
C:\cygwin, /usr/sbin/ssmtp (forward slashes and no extension) is
actually in C:\cygwin\usr\sbin\ssmtp.exe (backward slashes and Windows
.exe extension).

>>   I hope this helps.
>> 
>>   BTW, can you use Hamster with another newsreader, like (shudder) OE?
>> If so, you at least know that you have a tin problem and not a Hamster
>> problem.
> 
> Yes, I can use Hamster with other newsreaders.  That's what I'm doing 
> right now.  :-)

  OK. I had not spotted that.
Technical Details
Message-ID: <4058b964$0$89506$4a441750@news.euronet.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.vmunix.org!news2.euro.net!postnews1.euro.net!news.euronet.nl!not-for-mail
References: <35C4c.13295$H44.236903@bgtnsc04-news.ops.worldnet.att.net> <jtsei1-k3k.ln1@news.gates_of_hell.INVALID> <Btc5c.16045$Pa7.425088@bgtnsc05-news.ops.worldnet.att.net> <40560b47$0$49825$1b2cd167@news.wanadoo.nl> <Xns94ADE4364AFE78jUwe9053kODf78sfkj0@ID-121946.user.dfncis.de> <4056fa49$0$93610$abc4f4c3@news.wanadoo.nl> <Xns94AEEF27534238jUwe9053kODf78sfkj0@ID-121946.user.dfncis.de> <40581f22$0$61832$a344fe98@news.wanadoo.nl> <Xns94AF913B2155D8jUwe9053kODf78sfkj0@ID-121946.user.dfncis.de>

Show Full Headers
Complete Article Headers
Message-ID: <4058b964$0$89506$4a441750@news.euronet.nl>
Subject: Re: Tin with Hamster
Date: Wed, 17 Mar 2004 20:47:33 +0000
From: Frank Slootweg <this@ddress.is.invalid>
References: <35C4c.13295$H44.236903@bgtnsc04-news.ops.worldnet.att.net> <jtsei1-k3k.ln1@news.gates_of_hell.INVALID> <Btc5c.16045$Pa7.425088@bgtnsc05-news.ops.worldnet.att.net> <40560b47$0$49825$1b2cd167@news.wanadoo.nl> <Xns94ADE4364AFE78jUwe9053kODf78sfkj0@ID-121946.user.dfncis.de> <4056fa49$0$93610$abc4f4c3@news.wanadoo.nl> <Xns94AEEF27534238jUwe9053kODf78sfkj0@ID-121946.user.dfncis.de> <40581f22$0$61832$a344fe98@news.wanadoo.nl> <Xns94AF913B2155D8jUwe9053kODf78sfkj0@ID-121946.user.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.vmunix.org!news2.euro.net!postnews1.euro.net!news.euronet.nl!not-for-mail
Newsgroups: news.software.readers
Organization: NOYB
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (CYGWIN_NT-5.1/20.1 (0.3/1/1) (i1586)) Hamster/2.0.0.1
Lines: 97
NNTP-Posting-Date: 17 Mar 2004 20:47:33 GMT
NNTP-Posting-Host: c5375671b.cable.wanadoo.nl
X-Trace: 1079556453 news.euronet.nl 89506 83.117.103.27:4614
X-Complaints-To: abuse@euronet.nl