Article View: news.software.nntp
Article #33787Re: mail2news gateway for INNd and others
From: Ben C. O. Grimm
Date: Mon, 14 Dec 1998 00:00
Date: Mon, 14 Dec 1998 00:00
53 lines
2567 bytes
2567 bytes
On Mon, 14 Dec 1998, Brian McEntire wrote:
>Thanks for your response. I couldn't quite make out what I needed to do
>though. Neither mail2news nor inews seems to have a -a parameter
>associated with subject rewriting. inews does have a -a but its for an
>approval heading.
>Should I modify sendmail to rewrite the empty subject?
The -a option does not belong to inews, it belongs to formail,
which can be called from inews-sh.
You'll need something in your news server's sendmail.cf like
this:
####################################
### USENET Mailer specification ###
####################################
##### @(#)usenet.m4 8.5 (Berkeley) 4/26/95 #####
Musenet, P=/usr/news/bin/inews-sh, F=rlsDFMmn, S=10, R=20,
T=X-Usenet/X-Usenet/X-Unix,
A=inews -h -n $u
Mail gets sent to the mews server with an address like
some.local.group.usenet@news.server.org. The local Sendmail will
pick it up, fiddle with it, and push it through to the shell
script, which has lines like these:
/usr/local/bin/formail \
-R "Message-Id:" "X-Org-Message-Id:" \
-R "Originally-To:" "X-Originally-To:" \
-R "To:" "X-Org-To:" \
-R "Cc:" "X-Org-Cc:" \
-R "Reply-To:" "X-Org-Reply-To:" \
-a "Subject: (no subject given)" \
(man formail will tell you more about rewriting rules for
headers).
You can basically alter or excise almost every aspect of the
gated mail, impose size limits, etc.
--
- Ben C. O. Grimm ----------------- Ben.Grimm@wirehub.net -
- Wirehub! Internet Engineering - http://www.wirehub.net/ -
- Wirehub! Backbone --- http://doema.wirehub.net/wirehub/ -
- Private Ponderings ------- http://libertas.wirehub.net/ -
Technical Details
Message-ID:
<Pine.WNT.4.05.9812142243590.-582579@glasvezel>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-mailReferences:
<367547D5.164F@fsg1.nws.noaa.gov> <3679514e.8574201@news.wirehub.nl> <36756706.1280@fsg1.nws.noaa.gov>Show Full Headers
Complete Article Headers
Message-ID: <Pine.WNT.4.05.9812142243590.-582579@glasvezel> Subject: Re: mail2news gateway for INNd and others Date: Mon, 14 Dec 1998 00:00:00 +0000 From: "Ben C. O. Grimm" <BenGrimm@wirehub.net> References: <367547D5.164F@fsg1.nws.noaa.gov> <3679514e.8574201@news.wirehub.nl> <36756706.1280@fsg1.nws.noaa.gov> 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: 422261894 To: Brian McEntire <brianm@fsg1.nws.noaa.gov> Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: Wirehub! Internet Mime-Version: 1.0 Reply-To: "Ben C. O. Grimm" <Ben.Grimm@wirehub.net> Newsgroups: news.software.nntp