🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #70453

Re: tin problem

#70453
From: Alan Mackenzie
Date: Sat, 13 Jan 2001 16:24
77 lines
4156 bytes
Dirk Nimmich <nimmich@uni-muenster.de> wrote on 5 Jan 2001 18:34:48 GMT:

[ .... ]

>> I've never been able to send mail from tin for a similar reason: Although
>> I set the correct headers in my message, somehow the headers (in
>> particular, if I remember right, the From: header) get fucked up in the
>> interface with sendmail.

> Without a valid hostname, such problems are predictable.

This is indeed the root of my problems.

> If you use "sendmail -t < %F" as your default_mailer_format and
> use_mailreader_i=OFF, tin will hand over the file you see in your
> editor to sendmail without any changes (modulo MIME encoding
> according to mail_mime_encoding and mail_8bit_header).

From my tin configuration:
110. Invocation of your mail command    :  %M -t < %F
111. Use interactive mail reader        :  OFF

This is just as you say. I dispatch mail via my ISP by the command
sendmail -q, (which takes messages from the spool directory /var/mqueue
and sends them down the line).

In the spool directory, each message has two files, one for the headers
(name beginning qf), one for the body  (name df*). The df* files aren't a
problem. I compared the contents of two qf* header files, one coming from
an invocation of sendmail by tin (which later fails), one from an
invocation by pine (my email agent, which always works).

The error message which is subsequently returned by the destination mail
server is:

> Final-Recipient: RFC822; <destination email address>
> Action: failed
> Status: 5.5.2
> Remote-MTA: DNS; mail-intake-1.iname.net
> Diagnostic-Code: SMTP; 501 <root@acm.acm>... Sender domain must exist
> Last-Attempt-Date: Sun, 28 May 2000 11:50:52 GMT

The pertinent differences in the sendmail qf* header files seem to be as
follows:

        from PINE                                  from TIN
$rSMTP                                          $_root@localhost
$slocalhost
$_root@localhost
S<my.real@address.de>
     ..............                              ..............
H?P?Return-Path: <my.real@address.de>           H?P?Return-Path: <root>

It seems fairly obvious to me now, that some of the header fields filled
in by tin are going to cause an error precisely because I haven't given
my machine a valid host name; also, that pine uses some clever tricks
with sendmail, since pine needs to work with ISP connected machines
(which typically don't have proper host names).

Could somebody please tell me where to find reasonably concise
documention on the format of the sendmail qf* header file, and how that
relates to the way sendmail is invoked. (Yes, I know about the big thick
book by sendmail's authors published by O'Reilly. I'm kind of hoping for
something a bit terser. :-)

It would be nice if I could somehow change my sendmail configuration file
so that the current straightforward invocation from tin would work even
without a configured host name.

Many thanks for the help.

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove one of them (leaving, say, "a").

Technical Details
Message-ID: <ggvp39.k6.ln@acm.acm>
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!supernews.google.com!sn-xit-03!supernews.com!mtu.ru!telocity-west!TELOCITY!enews.sgi.com!feed.news.nacamar.de!news.space.net!news.muc.de!not-for-mail
References: <3A4C8403.7AA50C2E@gmx.net> <t36339.nd.ln@acm.acm> <935448$s6i$1@redenix.uni-muenster.de>

Show Full Headers
Complete Article Headers
Message-ID: <ggvp39.k6.ln@acm.acm>
Subject: Re: tin problem
Date: Sat, 13 Jan 2001 16:24:48 +0000
From: Alan Mackenzie<none@example.invalid>
References: <3A4C8403.7AA50C2E@gmx.net> <t36339.nd.ln@acm.acm> <935448$s6i$1@redenix.uni-muenster.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!supernews.google.com!sn-xit-03!supernews.com!mtu.ru!telocity-west!TELOCITY!enews.sgi.com!feed.news.nacamar.de!news.space.net!news.muc.de!not-for-mail
Newsgroups: news.software.readers
Organization: muc.de e.V. -- private internet access
Lines: 76
NNTP-Posting-Host: acm.muc.de
X-Trace: marvin.muc.de 979407798 1521 193.149.49.134 (13 Jan 2001 17:43:18 GMT)
X-Complaints-To: news-admin@muc.de
NNTP-Posting-Date: 13 Jan 2001 17:43:18 GMT
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.0.35 (i686))