Article View: news.software.nntp
Article #3179Re: newsgate-INN / sendmail8 crossposting mailer?
From: Phil Brandenberger
Date: Mon, 19 Dec 1994 17:43
Date: Mon, 19 Dec 1994 17:43
36 lines
2100 bytes
2100 bytes
In article <3d2skj$t2o@flop.mcom.com>,
Dan Mosedale <dmose@flop.mcom.com> wrote:
>
>Has anyone generated the appropriate sendmail.cf magic which will cause
>cross-posts to work correctly? IE something mailed to
>"news-group-a, news-group-b" only causes mail2news to be invoked once with the
>correct args to cause a crosspost to both groups.
The way I set it up was to configure mail2news as a mailer in sendmail,
using the M4 macros:
MAILER(usenet)dnl
define(`USENET_MAILER_PATH',`/usr/local/bin/mailgate')dnl
define(`USENET_MAILER_ARGS',``mailgate'')dnl
And then the mailgate script:
--------------------- snip ----------------------
#!/usr/local/bin/perl
local($grouplist);
foreach $group (@ARGV) {
$grouplist .= "$group,";
}
chop $grouplist;
exec("/usr/local/bin/mail2news -n $grouplist \ # split for clarity only!
-o '.Forum .News/.Mail .Gateway' -a 'news@forum.swarthmore.edu'" );
--------------------- snip ----------------------
This works for crossposting.
-Phil
--
Phil Brandenberger (phil@wharton.upenn.edu)
System Programmer, The Wharton School at the University of Pennsylvania
Technical Details
Message-ID:
<3d4gnt$459@larch.cc.swarthmore.edu>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.ege.edu.tr!news.metu.edu.tr!mother.usf.edu!darwin.sura.net!news-feed-1.peachnet.edu!gatech!psuvax1!news.cc.swarthmore.edu!philReferences:
<3d2skj$t2o@flop.mcom.com>Show Full Headers
Complete Article Headers
Message-ID: <3d4gnt$459@larch.cc.swarthmore.edu> Subject: Re: newsgate-INN / sendmail8 crossposting mailer? Date: Mon, 19 Dec 1994 17:43:25 +0000 From: phil@cs.swarthmore.edu (Phil Brandenberger) References: <3d2skj$t2o@flop.mcom.com> 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.ege.edu.tr!news.metu.edu.tr!mother.usf.edu!darwin.sura.net!news-feed-1.peachnet.edu!gatech!psuvax1!news.cc.swarthmore.edu!phil Newsgroups: news.software.nntp,comp.mail.sendmail Organization: Swarthmore College Computer Science, Swarthmore, PA, USA Lines: 35 Distribution: inet NNTP-Posting-Host: allspice.cs.swarthmore.edu Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Keywords: sendmail newsgate INN