Re: Cyrus and Usenet

2005-03-07 Thread kael
On 05.03.2005 05:58, kael wrote:
Also, it seems that everybody can post from my server - how to disallow 
access for posting and more generally to manage posting or reading ?

I've managed /etc/news with:
--
default xferno
--
according to 
http://howtos.linux.com/guides/nag2/x-087-2-nntp.access.shtml but not 
sure it works and it'd be enough.

How to manage access (posting/reading) on port 119 ?
Is /usr/lib/cyrus-imapd/nntpd -f enough ? 
http://linuxcommand.org/man_pages/nntpd8.html
This question was not very clear but I understood that the access is 
allowed in imapd.conf by allowanonymouslogin and that the 
reading/posting access is managed with nnptd's option '-f'.

I've managed /etc/cyrus.conf with the following lines ... :

# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
  ... 

  # these are only necessary if receiving/exporting usenet via NNTP
  nntp  cmd="nntpd -T 0 -f" listen="nntp" prefork=3
  nntps cmd="nntpd -s" listen="nntps" prefork=1
EVENTS {
  ...
  nntp  cmd="nntpd -T 0 -f" listen="nntp" prefork=3

... according to man nntpd:

-U uses
The maximum number of times that the process should be used  for
new connections before shutting down.  The default is 250.
-T timeout
The  number of seconds that the process will wait for a new con-
nection before shutting down.  Note that a  value  of  0  (zero)
will disable the timeout.  The default is 60.

But the feed regularly stops to be delivered (after the 250th connection 
?) and I need to re-launch cyrus-imapd.

How to manage /etc/cyrus.conf (or any other tool) so that the feed never 
stops to be delivered ? Should I use the '-U' option ?

Thank you very much for your help.
--
kael
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus and Usenet

2005-03-04 Thread kael
On 28.02.2005 18:27, Ken Murchison wrote:
kael wrote:
On 27.02.2005 15:47, Ken Murchison wrote:
Since you have enabled unixhierarchysep, you should create
Usenet/comp/mail/imap
This is the IMAP name of the mailbox.
I ran :
localhost.localdomain> cm Usenet/comp/mail/imap
and tree sub-mailboxes have been created, I started nntpd and nothing is 
delivered into "imap".

I still don't get it. :-[
Can an NNTP client access the server and see the comp.mail.imap group?
You could also login in with nntptest and try:
LIST
GROUP comp.mail.imap
You could also try using the POST command.
I got the feed ! It works. Thank you very much. Actually, I got it 
earlier but didn't realised.

I created the mailboxes, ran nntpd and it worked.
How would the groups be named without unixhierarchysep ?
Also, it seems that everybody can post from my server - how to disallow 
access for posting and more generally to manage posting or reading ?

I've managed /etc/news with:
--
default xferno
--
according to 
http://howtos.linux.com/guides/nag2/x-087-2-nntp.access.shtml but not 
sure it works and it'd be enough.

How to manage access (posting/reading) on port 119 ?
Is /usr/lib/cyrus-imapd/nntpd -f enough ? 
http://linuxcommand.org/man_pages/nntpd8.html

Also, it seems that ANNOTATEMORE is used to delete messages with 
cyr_expire, isn't it ? Need to read more about it.

I thank you very much for your help.
Cheers.
--
kael
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus and Usenet

2005-02-28 Thread Ken Murchison
kael wrote:
On 27.02.2005 15:47, Ken Murchison wrote:
kael wrote:
On 24.02.2005 15:36, Ken Murchison wrote:
The newsspool option is deprecated and not needed.

I have managed imapd.conf like this:
partition-default: /var/spool/imap
partition-news: /var/spool/imap/news
altnamespace: yes
newspeer: news-in.newsfeeds.com:119 news-out.newsfeeds.com:119
unixhierarchysep: yes
newsprefix: Usenet
Have you created the "Usenet.comp.mail.imap" mailbox on your "news" 
partition (/var/spool/imap/news) and given at least the "anonymous" 
user   the "p" right?  You probably want to grant your newsgroups 
"anyone lrsp".

localhost.localdomain> cm Usenet/comp.mail.imap
localhost.localdomain> sam Usenet/comp.mail.imap anyone lrsp

Since you have enabled unixhierarchysep, you should create
Usenet/comp/mail/imap
This is the IMAP name of the mailbox.

I ran :
localhost.localdomain> cm Usenet/comp/mail/imap
and tree sub-mailboxes have been created, I started nntpd and nothing is 
delivered into "imap".

I still don't get it. :-[
Can an NNTP client access the server and see the comp.mail.imap group?
You could also login in with nntptest and try:
LIST
GROUP comp.mail.imap
You could also try using the POST command.

I searched for an HowTo about using Cyrus-nntpd but I can't find any, 
the 'man pages' don't seem to be enough (for me).

Thanks.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus and Usenet

2005-02-27 Thread kael
On 27.02.2005 15:47, Ken Murchison wrote:
kael wrote:
On 24.02.2005 15:36, Ken Murchison wrote:
The newsspool option is deprecated and not needed.
I have managed imapd.conf like this:
partition-default: /var/spool/imap
partition-news: /var/spool/imap/news
altnamespace: yes
newspeer: news-in.newsfeeds.com:119 news-out.newsfeeds.com:119
unixhierarchysep: yes
newsprefix: Usenet
Have you created the "Usenet.comp.mail.imap" mailbox on your "news" 
partition (/var/spool/imap/news) and given at least the "anonymous" 
user   the "p" right?  You probably want to grant your newsgroups 
"anyone lrsp".
localhost.localdomain> cm Usenet/comp.mail.imap
localhost.localdomain> sam Usenet/comp.mail.imap anyone lrsp
Since you have enabled unixhierarchysep, you should create
Usenet/comp/mail/imap
This is the IMAP name of the mailbox.
I ran :
localhost.localdomain> cm Usenet/comp/mail/imap
and tree sub-mailboxes have been created, I started nntpd and nothing is 
delivered into "imap".

I still don't get it. :-[
I searched for an HowTo about using Cyrus-nntpd but I can't find any, 
the 'man pages' don't seem to be enough (for me).

Thanks.
--
kael
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus and Usenet

2005-02-27 Thread Ken Murchison
kael wrote:
On 24.02.2005 15:36, Ken Murchison wrote:
The newsspool option is deprecated and not needed.

I have managed imapd.conf like this:
partition-default: /var/spool/imap
partition-news: /var/spool/imap/news
altnamespace: yes
newspeer: news-in.newsfeeds.com:119 news-out.newsfeeds.com:119
unixhierarchysep: yes
newsprefix: Usenet
Have you created the "Usenet.comp.mail.imap" mailbox on your "news" 
partition (/var/spool/imap/news) and given at least the "anonymous" 
user   the "p" right?  You probably want to grant your newsgroups 
"anyone lrsp".

localhost.localdomain> cm Usenet/comp.mail.imap
localhost.localdomain> sam Usenet/comp.mail.imap anyone lrsp
Since you have enabled unixhierarchysep, you should create
Usenet/comp/mail/imap
This is the IMAP name of the mailbox.

Is the 'p' right necessary ? I don't want to deliver posting access to 
Usenet.
Yes.  I should probably tie this to the newsmaster option instead, but 
I'd have to think about this.



Have you told your news provider to send you articles?

Yes. The articles seem to be delivered:
$ tcpdump
02:13:48.015469 IP news-out.newsfeeds.com.4435 >
snip.fbx.proxad.net.nntp: . ack 160 win 64909
...
02:15:09.501562 IP news-out.newsfeeds.com.4435 >
snip.fbx.proxad.net.nntp: . ack 1374 win 65163
...
02:22:37.082797 snip.fbx.proxad.net.nntp >
news-out.newsfeeds.com.4976: P 5644:5746(102) ack 112942 win 32767
And my peer's asking to let the feed out - I hope the 'newspeer' option 
in imapd.conf is enough for this purpose.

Do you have a local NNTP client that can access your Cyrus server and 
LIST newsgroups and POST articles (you can do this with nntptest if 
you know how to use NNTP manually)?  If not, you need to fix this 
before worrying about accepting articles from the outside.

[root@ ]# /usr/bin/nntptest -p 119 -u cyrus
WARNING: no hostname supplied, assuming localhost
S: 200 snip.fbx.proxad.net Cyrus NNTP v2.2.10-Invoca-RPM-2.
...
list newsgroups
215 List of newsgroups follows:
.
It seems that the server is empty.
[root@ ] /usr/lib/cyrus-imapd/nntpd was not successful.
I'm wondering where the articles should be stored on the disk and how to 
manage rights.

Thanks you very much for your help.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus and Usenet

2005-02-25 Thread kael
On 24.02.2005 15:36, Ken Murchison wrote:
The newsspool option is deprecated and not needed.
I have managed imapd.conf like this:
partition-default: /var/spool/imap
partition-news: /var/spool/imap/news
altnamespace: yes
newspeer: news-in.newsfeeds.com:119 news-out.newsfeeds.com:119
unixhierarchysep: yes
newsprefix: Usenet
Have you created the "Usenet.comp.mail.imap" mailbox on your "news" 
partition (/var/spool/imap/news) and given at least the "anonymous" user 
  the "p" right?  You probably want to grant your newsgroups "anyone lrsp".
localhost.localdomain> cm Usenet/comp.mail.imap
localhost.localdomain> sam Usenet/comp.mail.imap anyone lrsp
Is the 'p' right necessary ? I don't want to deliver posting access to 
Usenet.

Have you told your news provider to send you articles?
Yes. The articles seem to be delivered:
$ tcpdump
02:13:48.015469 IP news-out.newsfeeds.com.4435 >
snip.fbx.proxad.net.nntp: . ack 160 win 64909
...
02:15:09.501562 IP news-out.newsfeeds.com.4435 >
snip.fbx.proxad.net.nntp: . ack 1374 win 65163
...
02:22:37.082797 snip.fbx.proxad.net.nntp >
news-out.newsfeeds.com.4976: P 5644:5746(102) ack 112942 win 32767
And my peer's asking to let the feed out - I hope the 'newspeer' option 
in imapd.conf is enough for this purpose.

Do you have a local NNTP client that can access your Cyrus server and 
LIST newsgroups and POST articles (you can do this with nntptest if you 
know how to use NNTP manually)?  If not, you need to fix this before 
worrying about accepting articles from the outside.
[root@ ]# /usr/bin/nntptest -p 119 -u cyrus
WARNING: no hostname supplied, assuming localhost
S: 200 snip.fbx.proxad.net Cyrus NNTP v2.2.10-Invoca-RPM-2.
...
list newsgroups
215 List of newsgroups follows:
.
It seems that the server is empty.
[root@ ] /usr/lib/cyrus-imapd/nntpd was not successful.
I'm wondering where the articles should be stored on the disk and how to 
manage rights.

Thanks you very much for your help.
--
kael
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus and Usenet

2005-02-24 Thread Ken Murchison
kael wrote:
On 08.02.2005 02:28, kael wrote:
I wish to use the _push_ method, as described in
http://asg.web.cmu.edu/cyrus/download/imapd/install-netnews.html.

I have been searching but haven't ben able to deliver NetNews via Cyrus.
imapd.conf is managed with the following lines:
partition-news: /var/spool/imap/news
newsspool: /var/spool/news
newspeer: news-in.newsfeeds.com:119 news-out.newsfeeds.com:119
newsprefix: Usenet
I then ran /usr/lib/cyrus-imapd/nntpd but no articles are delivered in 
the correponding mailboxes e.g. Usenet/comp.mail.imap.

Please, could you help me ?
The newsspool option is deprecated and not needed.
Have you created the "Usenet.comp.mail.imap" mailbox on your "news" 
partition (/var/spool/imap/news) and given at least the "anonymous" user 
 the "p" right?  You probably want to grant your newsgroups "anyone lrsp".

Have you told your news provider to send you articles?
Do you have a local NNTP client that can access your Cyrus server and 
LIST newsgroups and POST articles (you can do this with nntptest if you 
know how to use NNTP manually)?  If not, you need to fix this before 
worrying about accepting articles from the outside.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus and Usenet

2005-02-23 Thread kael
On 08.02.2005 02:28, kael wrote:
I wish to use the _push_ method, as described in
http://asg.web.cmu.edu/cyrus/download/imapd/install-netnews.html.
I have been searching but haven't ben able to deliver NetNews via Cyrus.
imapd.conf is managed with the following lines:
partition-news: /var/spool/imap/news
newsspool: /var/spool/news
newspeer: news-in.newsfeeds.com:119 news-out.newsfeeds.com:119
newsprefix: Usenet
I then ran /usr/lib/cyrus-imapd/nntpd but no articles are delivered in 
the correponding mailboxes e.g. Usenet/comp.mail.imap.

Please, could you help me ?
Thank you very much.
--
kael
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus and Usenet

2005-02-07 Thread kael
Hello,
I'd like to export newsgroups into shared mailboxes with Cyrus-NNTP but
several points of imapd.conf and nntpd.conf documentation appear
obscur to me - as a new Linux user.
cyrus-imapd-nntpd has been installed via apt on Fedora 2.
I wish to use the _push_ method, as described in
http://asg.web.cmu.edu/cyrus/download/imapd/install-netnews.html.
I've managed cyrus.conf (telnet localhost 119 works) and set the 
following lines in imapd.conf - but there are some things I don't 
understand:


configdirectory: /var/lib/imap
partition-default: /var/spool/imap
partition-news: /var/spool/imap/news
# What is the precise purpose of this directory ?
newsspool: /var/spool/imap/news/articles
# What is the purpose of this directory regarding nntpd ?
# More generally, how to manage both directories ?
# According to http://howtos.linux.com/guides/nag2/x-087-2-nntp.nntpd.shtml:
# "To temporarily store any incoming articles, nntpd also needs a .tmp 
directory in your news spool.
# You should create it using the following
commands:
# mkdir /var/spool/news/.tmp
# chown news.news /var/spool/news/.tmp   ..."
# How to manage it regarding imapd.conf ?

newsprefix: usenet
unixhierarchysep: yes
altnamespace: yes
# I'd like to create top-level mailboxes comparable to
 ones.
# How to manage altnamespace and more specially newsprefix and the user 
'Usenet'to create something like this:

INBOX
Foo1
|_etc
Foo2
|_etc
Usenet  # Usenet would appear in bold and italic in Thunderbird
  |_ comp.mail.imap # Usenet/comp.mail.imap
Other users
newspeer: news.mozilla.org news-out.example.com
# One of my peer asks to "open" - its server names are:
# Send To: news-in.example.com
# Accept From: news-out.example.com
# Should both names be written on the newspeer line ?

I don't know how to use nntpd regarding Cyrus. When creating a
mailbox, the connection fails:
--
localhost.localdomain> sam usenet.netscape.public.mozilla.calendar
anyone lrs
Relais brisé (pipe)
--
And nothing happens when running cyrfetchnews.
Basically I don't know how to get the feed and hope you could enlighten me.
Thank you very much.
--
kael
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html