🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Michael Perry Tue, 09 Dec 1997 00:00
Knews on Linux and default FROM: address
#37516
Author: Michael Perry
Date: Tue, 09 Dec 1997 00:00
22 lines
1326 bytes
I enjoy checking out various programs and downloaded knews in rpm format 
for some experimentation on my linux system.  Where does knews get its 
default FROM: address?  I tried including a NAME environmental variable 
in several ways and tried altering the knews file buried in 
/usr/X11R6/lib/X11/app-defaults but could not change the default FROM: 
address.  Is there a resource key I can include to change the address 
like in slrn?  Or... Where does knews get the FROM: address?  I read the 
man page and it says from the $NAME variable and without that being set 
from the /etc/passwd file.  

Are there other ways to tailor the FROM: address?

Thanks.

-- 

Michael Perry
mperry@mperry.basin.com
----------------------

Re: Knews on Linux and default FROM: address
#37504
Author: J$
Date: Tue, 09 Dec 1997 00:00
38 lines
2180 bytes
Michael Perry <mperry@mperry.basin.com>:

> [..] loaded knews in rpm format for some experimentation on my linux
> system.  Where does knews get its default FROM: address?

It determines the username (by the usual getpw* functions), and the
domainname is either compiled in, obtained using a gethostname-type
function and some extra magic, or read from a file, depending on how
Knews was configured for compilation.

> I tried including a NAME environmental variable 
> in several ways [..]

The realname part of the address can be set in the config file that
Knews has for each news server you use -- typically
~/.knews/config-your.news.ser.ver.

> Are there other ways to tailor the FROM: address?

In principle, there are ways of patching Knews and there are
workarounds.  However, having a proper and valid sender address in
Usenet messages is an essential Usenet message format requirement, so
you probably shouldn't change it.  Not if the From Knews generates is
valid, and if it isn't, then Knews simply needs to be recompiled with a
different configuration, probably.

If there were an option to mess up the From header arbitrarily, then
that would not be a feature, but a bug, a design mistake.  There isn't,
and it's not.


-- J$
-- 
dash dash space
this is my .sig                                         it's not so .big

Re: Knews on Linux and default FROM: address
#37512
Author: Phil DeBecker
Date: Tue, 09 Dec 1997 00:00
30 lines
1768 bytes
J$ wrote:
> 
> Michael Perry <mperry@mperry.basin.com>:
> 
> If there were an option to mess up the From header arbitrarily, then
> that would not be a feature, but a bug, a design mistake.  There isn't,
> and it's not.

Allowing arbitrary from: addresses wouldn't be a design mistake.  A lot
of people use linux with dial-up ISPs, and it's very likely that their
userid and hostname don't match those of the ISP.  In those cases, it's
the from: address derived from gethostbyname and pwname which is wrong.
Granted, you can change the reply-to address in your config file, so
that alleviates part of the problem, but having all the addresses match
is more correct.

On the other hand, compiling in the domain *is* a hallmark of good
design?

Of course, the beauty of it is that I can just patch knews to make the
userid and domainname a per-server configuration item.  Since my machine
is used by more than one person and to connect to more than one ISP, the
ability to alias user@domain for different nntp servers would be nice.

Just my personal opinion.

-Phil

Re: Knews on Linux and default FROM: address
#37527
Author: Phil DeBecker
Date: Wed, 10 Dec 1997 00:00
34 lines
2064 bytes
In article <348D9CFD.40A8@no.sp.am.ix.netcom.com>,
	Phil DeBecker <debecker@NO.SP.AM.ix.netcom.com> writes:
> J$ wrote:
>> 
>> Michael Perry <mperry@mperry.basin.com>:
>> 
>> If there were an option to mess up the From header arbitrarily, then
>> that would not be a feature, but a bug, a design mistake.  There isn't,
>> and it's not.
> 
> Allowing arbitrary from: addresses wouldn't be a design mistake.  A lot
> of people use linux with dial-up ISPs, and it's very likely that their
> userid and hostname don't match those of the ISP.  In those cases, it's
> the from: address derived from gethostbyname and pwname which is wrong.
> Granted, you can change the reply-to address in your config file, so
> that alleviates part of the problem, but having all the addresses match
> is more correct.
> 
> On the other hand, compiling in the domain *is* a hallmark of good
> design?
> 
> Of course, the beauty of it is that I can just patch knews to make the
> userid and domainname a per-server configuration item.  Since my machine
> is used by more than one person and to connect to more than one ISP, the
> ability to alias user@domain for different nntp servers would be nice.
>

To follow myself up...  You can just edit the From: line as you're editing
the message, which will have the desired effect.

-Phil 

Re: Knews on Linux and default FROM: address
#37547
Author: Rob Funk
Date: Fri, 12 Dec 1997 00:00
21 lines
1754 bytes
On Tue, 09 Dec 1997 14:33:17 -0500, Phil DeBecker
<debecker@ix.netcom.com> wrote:
>Of course, the beauty of it is that I can just patch knews to make the
>userid and domainname a per-server configuration item.  Since my machine
>is used by more than one person and to connect to more than one ISP, the
>ability to alias user@domain for different nntp servers would be nice.

I solved that problem on my home machine (where I use trn) by
modifying inews to use the same userdb that sendmail uses.  The userdb
maps local users to "real" return addresses (with the :mailname tag),
and they don't have to be all at the same domain.  This way the return
addresses for both mail and news are configured in the same file.

-- 
=========== R o b  F u n k ===========|===========> funk+@osu.edu <===========
 "Why are you here?  Snap out of it.  |   rfunk@peri.acs.ohio-state.edu
  Wake up.  It's all illusions."      |   rfunk@marvin.uts.ohio-state.edu
 "I LIKE THE MOVIE"  -- Richard Bach  |http://er4www.eng.ohio-state.edu/~funkr

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads