Thread View: news.software.nntp
6 messages
6 total messages
Started by Brian McEntire
Mon, 14 Dec 1998 00:00
mail2news gateway for INNd and others
Author: Brian McEntire
Date: Mon, 14 Dec 1998 00:00
Date: Mon, 14 Dec 1998 00:00
28 lines
1864 bytes
1864 bytes
Hello, I've been tinkering with the mail2news program available for INNd on the ftp.isc.org site (under contrib.) So for I'm very pleased, soon my mail to news gatewayed news groups will be filling up rather than my mailbox. Also, the threading is good, and maybe best of all, multiple users can read the news group at will without subscribing to the actual list. One hiccup though, has anyone been able to stop error messages returned by mail2news or inews -h from being sent to people on the list? Its mentioned in the man page, but no solution. So for example, if a list user sends an e-mail to the list with no subject (OK for lists, not OK to mail2news apparently) she will get a response from my Mail-News gateway saying the data format is incorrect... obviously a little confusing to her. Ideas greatly appreciated. BTW, I tried setting up the sendmail alias as "|/usr/news/bin/mail2news -n my.news.gw.group 1>/dev/null 2>&1" hoping the redirection of stdout and stderr would return nothing to sendmail which would then think everything was OK. (A dropped message or 2 doesn't bother me.) But sendmail still generated an error message and returned my test e-mail message. Thanks! Brian
Re: mail2news gateway for INNd and others
Author: 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/ -
Re: mail2news gateway for INNd and others
Author: Brian McEntire
Date: Mon, 14 Dec 1998 00:00
Date: Mon, 14 Dec 1998 00:00
24 lines
1406 bytes
1406 bytes
Thanks for the tip, it seems to do the trick. Ben C. O. Grimm recommended in a posting to rewrite emply/missing subjects to Subject: (no subject given) That would be great, then such messages wouldn't be silently dropped. However, I couldn't figure out how to do this with inews or mail2news parameters. Cheers, Brian Laurent Wacrenier wrote: > > Brian McEntire <brianm@fsg1.nws.noaa.gov> wrote: > > > Ideas greatly appreciated. BTW, I tried setting up the sendmail alias > >as "|/usr/news/bin/mail2news -n my.news.gw.group 1>/dev/null 2>&1" > > try : > "|/usr/news/bin/mail2news -n my.news.gw.group 1>/dev/null 2>&1; true" > > -- Laurent
Re: mail2news gateway for INNd and others
Author: Laurent Wacrenier
Date: Mon, 14 Dec 1998 00:00
Date: Mon, 14 Dec 1998 00:00
11 lines
1094 bytes
1094 bytes
Brian McEntire <brianm@fsg1.nws.noaa.gov> wrote: > Ideas greatly appreciated. BTW, I tried setting up the sendmail alias >as "|/usr/news/bin/mail2news -n my.news.gw.group 1>/dev/null 2>&1" try : "|/usr/news/bin/mail2news -n my.news.gw.group 1>/dev/null 2>&1; true" -- Laurent
Re: mail2news gateway for INNd and others
Author: Ben C. O. Grimm
Date: Mon, 14 Dec 1998 00:00
Date: Mon, 14 Dec 1998 00:00
20 lines
1374 bytes
1374 bytes
On Mon, 14 Dec 1998 12:16:05 -0500, Brian McEntire <brianm@fsg1.nws.noaa.gov> wrote: >So for example, if a >list user sends an e-mail to the list with no subject (OK for lists, not >OK to mail2news apparently) she will get a response from my Mail-News >gateway saying the data format is incorrect... obviously a little >confusing to her. Not when you rewrite headers with formail: -a "Subject: (no subject given)" -- - 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/ -
Re: mail2news gateway for INNd and others
Author: Brian McEntire
Date: Mon, 14 Dec 1998 00:00
Date: Mon, 14 Dec 1998 00:00
32 lines
1798 bytes
1798 bytes
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? Thanks, Brian Ben C. O. Grimm wrote: > > On Mon, 14 Dec 1998 12:16:05 -0500, Brian McEntire > <brianm@fsg1.nws.noaa.gov> wrote: > > >So for example, if a > >list user sends an e-mail to the list with no subject (OK for lists, not > >OK to mail2news apparently) she will get a response from my Mail-News > >gateway saying the data format is incorrect... obviously a little > >confusing to her. > > Not when you rewrite headers with formail: > > -a "Subject: (no subject given)" > > -- > - 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/ -
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