From: Andrzej Adam Filip on
Harald Dunkel <harald.dunkel(a)aixigo.de> wrote:
> Hi folks,
>
> I would like to forward EMails to local newsgroups using Inn2's mailpost
> script in /etc/aliases. But if I send an EMail to "newsgroup1,newsgroup2",
> then I get an error message about a duplicate posting. Actually mailpost
> is supposed to catch these duplicate postings within a given time frame
> and to create a single cross-posting instead. Looking closer it seems that
> sendmail doesn't run 2 mailpost programs in parallel, which breaks mailpost
> for this case.
>
> My /etc/aliases contains lines like
>
> newsgroup1: "|/usr/lib/news/bin/mailpost -c 15 -b /var/tmp internal.newsgroup1"
> newsgroup2: "|/usr/lib/news/bin/mailpost -c 15 -b /var/tmp internal.newsgroup2"
>
> Using a command line like
>
> echo anothertest | mailx -v -s anothertest newsgroup1(a)mailhost,newsgroup2(a)mailhost
>
> then I get an error message about newsgroup2.
>
> If I replace mailpost in /etc/aliases by a simple script doing
>
> #!/bin/bash
> logger "script called"
> sleep 15
>
> then syslog shows that these scripts are not running in parallel, either,
> so I would say that mailpost is innocent.
>
>
> Any helpful hint would be highly appreciated.

Have you considered defining mailpost mailer in sendmail.cf?

It could/should make sendmail execute mailpost once per messages with
all newsgroups passed via command line. Of course some extra tweaking
should be required to define list of valid named of local newsgroups.

As I understand mailpost can handle multiple newgroups via command line:
http://www.eyrie.org/~eagle/software/inn/docs/mailpost.html

--
[pl>en Andrew] Andrzej Adam Filip : anfi(a)onet.eu : Andrzej.Filip(a)gmail.com
Open-Sendmail: http://open-sendmail.sourceforge.net/
An intellectual is someone whose mind watches itself.
-- Albert Camus
From: D. Stussy on
"Andrzej Adam Filip" <anfi(a)onet.eu> wrote in message
news:0fn06sgkrz-A1S(a)larry.huge.strangled.net...
> Harald Dunkel <harald.dunkel(a)aixigo.de> wrote:
> > Hi folks,
> >
> > I would like to forward EMails to local newsgroups using Inn2's
mailpost
> > script in /etc/aliases. But if I send an EMail to
"newsgroup1,newsgroup2",
> > then I get an error message about a duplicate posting. Actually
mailpost
> > is supposed to catch these duplicate postings within a given time frame
> > and to create a single cross-posting instead. Looking closer it seems
that
> > sendmail doesn't run 2 mailpost programs in parallel, which breaks
mailpost
> > for this case.
> >
> > My /etc/aliases contains lines like
> >
> > newsgroup1: "|/usr/lib/news/bin/mailpost -c 15 -b /var/tmp
internal.newsgroup1"
> > newsgroup2: "|/usr/lib/news/bin/mailpost -c 15 -b /var/tmp
internal.newsgroup2"
> >
> > Using a command line like
> >
> > echo anothertest | mailx -v -s anothertest
newsgroup1(a)mailhost,newsgroup2(a)mailhost
> >
> > then I get an error message about newsgroup2.
> >
> > If I replace mailpost in /etc/aliases by a simple script doing
> >
> > #!/bin/bash
> > logger "script called"
> > sleep 15
> >
> > then syslog shows that these scripts are not running in parallel,
either,
> > so I would say that mailpost is innocent.
> >
> >
> > Any helpful hint would be highly appreciated.
>
> Have you considered defining mailpost mailer in sendmail.cf?
>
> It could/should make sendmail execute mailpost once per messages with
> all newsgroups passed via command line. Of course some extra tweaking
> should be required to define list of valid named of local newsgroups.
>
> As I understand mailpost can handle multiple newgroups via command line:
> http://www.eyrie.org/~eagle/software/inn/docs/mailpost.html

I think I hear an echo in here....


From: Andrzej Adam Filip on
"D. Stussy" <spam+newsgroups(a)bde-arc.ampr.org> wrote:
> "Andrzej Adam Filip" <anfi(a)onet.eu> wrote in message
> news:0fn06sgkrz-A1S(a)larry.huge.strangled.net...
>> Harald Dunkel <harald.dunkel(a)aixigo.de> wrote:
>> > [...]
>> Have you considered defining mailpost mailer in sendmail.cf?
>>
>> It could/should make sendmail execute mailpost once per messages with
>> all newsgroups passed via command line. Of course some extra tweaking
>> should be required to define list of valid named of local newsgroups.
>>
>> As I understand mailpost can handle multiple newgroups via command line:
>> http://www.eyrie.org/~eagle/software/inn/docs/mailpost.html
>
> I think I hear an echo in here....

Be brave, be sure you has been first to suggest the path ;-)
[ I have replied before reading your (earlier) post ]

--
[pl>en Andrew] Andrzej Adam Filip : anfi(a)onet.eu : Andrzej.Filip(a)gmail.com
Open-Sendmail: http://open-sendmail.sourceforge.net/
The last time I saw him he was walking down Lover's Lane holding his own hand.
-- Fred Allen
From: D. Stussy on
"Andrzej Adam Filip" <anfi(a)onet.eu> wrote in message
news:xrgr9o7sz7-A1S(a)micheal.huge.strangled.net...
> "D. Stussy" <spam+newsgroups(a)bde-arc.ampr.org> wrote:
> > "Andrzej Adam Filip" <anfi(a)onet.eu> wrote in message
> > news:0fn06sgkrz-A1S(a)larry.huge.strangled.net...
> >> Harald Dunkel <harald.dunkel(a)aixigo.de> wrote:
> >> > [...]
> >> Have you considered defining mailpost mailer in sendmail.cf?
> >>
> >> It could/should make sendmail execute mailpost once per messages with
> >> all newsgroups passed via command line. Of course some extra tweaking
> >> should be required to define list of valid named of local newsgroups.
> >>
> >> As I understand mailpost can handle multiple newgroups via command
line:
> >> http://www.eyrie.org/~eagle/software/inn/docs/mailpost.html
> >
> > I think I hear an echo in here....
>
> Be brave, be sure you has been first to suggest the path ;-)
> [ I have replied before reading your (earlier) post ]

...And I posted 7h40m before you replied. Usenet isn't that slow
anymore.... ;-)


From: Andrzej Adam Filip on
"D. Stussy" <spam+newsgroups(a)bde-arc.ampr.org> wrote:
> "Andrzej Adam Filip" <anfi(a)onet.eu> wrote in message
> news:xrgr9o7sz7-A1S(a)micheal.huge.strangled.net...
>> "D. Stussy" <spam+newsgroups(a)bde-arc.ampr.org> wrote:
>> > "Andrzej Adam Filip" <anfi(a)onet.eu> wrote in message
>> > news:0fn06sgkrz-A1S(a)larry.huge.strangled.net...
>> >> Harald Dunkel <harald.dunkel(a)aixigo.de> wrote:
>> >> > [...]
>> >> Have you considered defining mailpost mailer in sendmail.cf?
>> >>
>> >> It could/should make sendmail execute mailpost once per messages with
>> >> all newsgroups passed via command line. Of course some extra tweaking
>> >> should be required to define list of valid named of local newsgroups.
>> >>
>> >> As I understand mailpost can handle multiple newgroups via command
> line:
>> >> http://www.eyrie.org/~eagle/software/inn/docs/mailpost.html
>> >
>> > I think I hear an echo in here....
>>
>> Be brave, be sure you has been first to suggest the path ;-)
>> [ I have replied before reading your (earlier) post ]
>
> ..And I posted 7h40m before you replied. Usenet isn't that slow
> anymore.... ;-)

I am guilty of horrible crimes of not reading every post in
news:comp.mail.sendmail, even in threads I participate in.
I beg lenient sentencing, Your Honor ;-)

--
[pl>en Andrew] Andrzej Adam Filip : anfi(a)onet.eu : Andrzej.Filip(a)gmail.com
My favorite sandwich is peanut butter, baloney, cheddar cheese, lettuce
and mayonnaise on toasted bread with catsup on the side.
-- Senator Hubert Humphrey