Article View: news.software.nntp
Article #9018inews + userdb (INN meets Sendmail)
From: Rob Funk
Date: Wed, 03 Jul 1996 00:00
Date: Wed, 03 Jul 1996 00:00
33 lines
2243 bytes
2243 bytes
Since my home machine has only a part-time internet connection
(via SLIP, although the issues are the same for PPP), I've had to do
some hacks to make my mail and news come out with my correct return
address. (I don't like the REPLYTO solution.)
For mail, I was able to use sendmail's USERDB feature, which allows a
"mailname" to be specified for each user. That way my mail goes out
appearing to be from my real address rather than my current address,
and other users on my system can have their mail appear to come from
someplace totally different. (A closer look at the headers will of
course reveal what's really happening.)
I wanted to do the same for news, so I decided to use the same file
and part of the same function yanked out of sendmail (enormously
simplified for my purposes). I modified inews to check for a
"mailname" entry in the userdb file and modify the From line if
appropriate. I add a "userdb:" line to inn.conf to specify exactly
what file to use for the userdb database.
I have a patch for INN 1.4's inews.c to add this functionality. I
don't know if it would be generally useful, but it might be worth
adding to a future version of INN. Mail me if you are interested.
(It's a 134-line unified diff.)
BTW, I'm using my modified inews (through Pnews) to post this.
--
------------- R o b F u n k -------------|---------> funk+@osu.edu <---------
"A microscope locked in on one point |rfunk@magnus.acs.ohio-state.edu
Never sees what kind of room that it's in"|rfunk@freenet.columbus.oh.us
-- Chris Mars, "Stuck in Rewind" |http://er4www.eng.ohio-state.edu/~funkr
Technical Details
Message-ID:
<4rd1cr$2th@ts30-11.homenet.ohio-state.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <4rd1cr$2th@ts30-11.homenet.ohio-state.edu> Subject: inews + userdb (INN meets Sendmail) Date: Wed, 03 Jul 1996 00:00:00 +0000 From: rfunk@magnus.acs.ohio-state.edu (Rob Funk) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 163429195 Distribution: inet Organization: The Sirius Cybernetics Corporation Newsgroups: news.software.nntp Summary: change From address on a per-user basis