🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #3663

Re: inews in sendmail

#3663
From: Alexander Kolbasov
Date: Tue, 20 Jun 1995 00:00
41 lines
2315 bytes
In article <3rrp4m$5a7@mars.mahidol.ac.th> ccpsm@saturn.mahidol.ac.th (Prem Sumetpong - CC) writes:

>   I read that sendmail supports a mailer inews. I would like to know how I 
> can use it with Usenet ?? 
> 
>    If the mail has a header Newsgroup: xxx , does that mean sendmail  will 
> use inews to post to the news server to that particular newsgroup ?? 
> 
>  I want to mirror a mailing list to a local created newsgroup ?? any 
> hints ? are there any other packages that can do this ? Oh ! i run INN 
> 1.4sec2 on my news server. and sendmail 8.6.12

I do it in the following way (I'm using inews from the INN 1.4
distribution). Add the  following lines to your sendmail.mc file:

-------------------------------------------------------------
define(`USENET_MAILER_PATH',`/usr/local/bin/inews')
define(`USENET_MAILER_ARGS',`inews -h -n')
define(`USENET_MAILER_FLAGS',`lsDFMmn')
-------------------------------------------------------------

Create the file /usr/local/bin/inews with the following lines in it:

----------------------------------------------------------------------
#!/bin/sh
# Ignore all Received: headers
/usr/local/bin/formail -I Received: -bzfds | /usr/local/news/inews $*
----------------------------------------------------------------------

This is needed since inews do not like Received headers in mail messages. 
After that all mail sent to <local.group.usenet> will mirror in your
local.group. At least it works for me. Unfortunately I do not know how to make
it work in the opposite direction - how to make postings to this newsgroup to
gateway to mailing list automatically.

		- Sasha -


[ answer cc-ed to the priginal poster ]

Technical Details
Message-ID: <AKOLB.95Jun20182525@ascer.unitech.gamma.ru>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.sendmail.mbox.zip!not-for-mail
References: <3rrp4m$5a7@mars.mahidol.ac.th>

Show Full Headers
Complete Article Headers
Message-ID: <AKOLB.95Jun20182525@ascer.unitech.gamma.ru>
Subject: Re: inews in sendmail
Date: Tue, 20 Jun 1995 00:00:00 +0000
From: akolb@unitech.gamma.ru (Alexander Kolbasov)
References: <3rrp4m$5a7@mars.mahidol.ac.th>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.sendmail.mbox.zip!not-for-mail
X-Deja-AN: 104715726
Distribution: world
Organization: Unitech Corp.
Newsgroups: comp.mail.sendmail,news.software.nntp