🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #3383

Re: sendmail-to-news, inn

#3383
From: Tom van Nes
Date: Wed, 22 Feb 1995 09:39
59 lines
2569 bytes
In article <3hkdin$j6m@hk.super.net>,
Mr Cheuk Kong Lo <cklo@hk.super.net> wrote:
>Hi, 
>
>I'm trying to get the usenet mailer to work, but unfortunately the
>stock sample m4 macro doesn't get along with INN (1.4sec) here. They
>have entirely different syntax.
>
>1.	Does anyone know of the mail2news package?
>
>2.	I pulled out c-news's "inews" and "tear" and wrote a script, it's
>	kinda work manually, but I can't get the message body to
>	input to the script when it's processed by sendmail. How is the 
>	e-mail body sent (pipe??) to the delivery agent?
>
>Thanks.
>
>--
>Chris Lo                    	   |                 _/_/_/    _/_/   _/_/_/


on our mail server I have entries in /etc/aliases, like:

  test:  test@news

on the news host I have entries in the /etc/aliases, like:

  test:  "|/bin/mail2news alt.test"

So any mail sent to test@news gets forwarded to the host news
where the mail is processed and put into the newsgroup alt.test.


here the mail2news script:
(Note: you need inews)
------------------------------------------- 
#!/bin/sh

/usr/bin/awk '
BEGIN {
        print "Newsgroups: '$1'"
        print "Distribution: local"
}

/^$/    { body=1 }
body == 1 { print ; next }

/^Subject:/
/^From:/

'| /var/lib/news/bin/inews -h -V
------------------------------------------- 

-- 
  *****     Tom van Nes        | RFC822: thomas.vannes@alcatel.ch
   ***      Alcatel STR        | DECnet: PSI%479512391::T_VANNES
    *       Friesenbergstr. 75 | X.400:  c=CH a=arCom p=Alcatel 
 ALCATEL    CH-8055 Zuerich    |         s=Vannes g=Thomas
Technical Details
Message-ID: <3if0p2$6ng@news.alcatel.ch>
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!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!news.rz.uni-ulm.de!zib-berlin.de!news.mathworks.com!zombie.ncsc.mil!paladin.american.edu!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!news.alcatel.ch!vannes
References: <3hkdin$j6m@hk.super.net>

Show Full Headers
Complete Article Headers
Message-ID: <3if0p2$6ng@news.alcatel.ch>
Subject: Re: sendmail-to-news, inn
Date: Wed, 22 Feb 1995 09:39:46 +0000
From: vannes@alcatel.ch (Tom van Nes)
References: <3hkdin$j6m@hk.super.net>
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!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!news.rz.uni-ulm.de!zib-berlin.de!news.mathworks.com!zombie.ncsc.mil!paladin.american.edu!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!news.alcatel.ch!vannes
Newsgroups: comp.mail.sendmail,news.software.nntp
Organization: Alcatel STR AG, Switzerland
Lines: 58
Distribution: inet
Reply-To: thomas.vannes@alcatel.ch
NNTP-Posting-Host: onyx.alcatel.ch