Re: [STATUS] NNTP support (10/17/02)

2002-10-18 Thread Dave McCracken

--On Friday, October 18, 2002 12:58:41 -0400 Ken Murchison <[EMAIL PROTECTED]>
wrote:

> Do you remember which version of Cyrus?  I fixed a signed/unsigned
> problem with ipurge back in 2.1.6 which was causing behavior similar to
> what you describe.

I saw it on 2.0.16.  I'll try it again when I upgrade.

Dave McCracken

==
Dave McCracken  IBM Linux Base Kernel Team  1-512-838-3059
[EMAIL PROTECTED]T/L   678-3059




Re: [STATUS] NNTP support (10/17/02)

2002-10-18 Thread Ken Murchison


Dave McCracken wrote:
> 
> --On Friday, October 18, 2002 10:05:10 -0400 Ken Murchison <[EMAIL PROTECTED]>
> wrote:
> 
> > Right now, I'm using 'ipurge', but I have an 'expirenews' tool to purge
> > entries from netnews.db which I plan on adding the article delete code
> > to.
> 
> Have you gotten ipurge to be reliable?  I gave up on it because it kept
> deleting mail that didn't match its criteria, ie I specified greater than
> 14 days and it often deleted mail that was less than a day old.
> 
> And yes, I did report this behavior on the list a couple of times, but no
> one ever responded.

Do you remember which version of Cyrus?  I fixed a signed/unsigned
problem with ipurge back in 2.1.6 which was causing behavior similar to
what you describe.

-- 
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



Re: [patch] search domain from %u

2002-10-18 Thread Igor Brezac

On Tue, 15 Oct 2002, Kervin L. Pierre wrote:

> Hi,
>
> I have a newer version at http://my.fit.edu/~kpierre/lak.c.3.patch
>
> I added the ability to have a default domain context, for the case a
> user logs into the default domain and you are using the domain context
> macro.

I finally got around to look at the patch.  ;)  I think that your idea is
very good, but the implementation is not complete.  The patch hard codes
domain-based directory tree naming (dc=domain,dc=tld), but some poeple use
traditional or other directory tree naming (o=domain.tld or
o=dot,st=nc,c=us etc).  I am not sure that there is an easy way to deal
with this short of adding regex or pcre.  This might an overkill.

> PS.  things for adding ldap support to saslauthd in the first place.
> This is the second time I'm using your code ( first with the solaris
> openldap conf site ), so I feel like I owe you a check or something :)
>

Check is good.  :)   Just kidding...

-Igor

> --Kervin
>
>
> Igor Brezac wrote:
>
> > On Mon, 14 Oct 2002, Kervin L. Pierre wrote:
> >
> >
> > >I modified the patch to take the search domain from the username %u, for
> > >virtual server environments.
> > >
> > >http://my.fit.edu/~kpierre/lak.c.2.patch
> > >
> > >PS.  I am not having luck with the global search ( ie. the current
> > >method, -b "" ), I keep getting object not found although a search under
> > >a specific domain context works ( ie. -b "ou=..." ).
> > >
> >
> >
> > You are telling openldap to search a wrong backend (among other things,
> > -b"" is used to search rootDSE).
> >
> >
> > >Let me know what you think
> > >
> >
> >
> > I'll integrate the patch and submit it to Rob.
> >
> > -Igor
> >
> >
> > >--Kervin
> > >
> > >
> > >Igor Brezac wrote:
> > >
> > >
> > >>On Mon, 14 Oct 2002, Kervin L. Pierre wrote:
> > >>
> > >>
> > >>>Hi,
> > >>>
> > >>>attached is a patch to cyrus/saslauthd/lak.c to allow it to expand '%d'
> > >>>macro in ldap_search_base option to the domain context derived from the
> > >>>realm '%r'.
> > >>>
> > >>>eg.
> > >>>
> > >>>ldap_search_base: ou=people, %d
> > >>>in saslauthd.conf
> > >>>
> > >>>if realm is 'domain.tld', the ldap search base will expand to
> > >>>'ou=people,dc=domain,dc=tld'
> > >>>
> > >>>Does imapd always provide the realm in a virtual server environment
> > when
> > >>>authenticating users?  Is it safe to assume that the realm is
> > >>>'domain.tld' or more specifically the domain given to mkimap script?
> > >>>
> > >>>Is this correct/incorrect/unnecessary?
> > >>>
> > >>
> > >>In most cases an organization will have one realm.  Realms should not be
> > >>confused with domains. In virtual domain setup, %u will look like
> > >>[EMAIL PROTECTED] and unless you setup a realm, %r will be blank.  So,
> > >>%d is not necessary in this case.
> > >>
> > >
> > >
> > >
> >
>
>
>

-- 
Igor





Re: cannot connect to saslauthd server: No such file or directory

2002-10-18 Thread Igor Brezac

On 18 Oct 2002, Erik Enge wrote:

> Erik Enge <[EMAIL PROTECTED]> writes:
>
> > I'm compiling cyrus-imapd and cyrus-sasl 2.1.9 from source and
> > everything has gone fairly good until now.  I don't understand why I
> > get this error message:
> >
> >   Oct 17 18:25:04 localhost imapd[6803]: cannot connect to saslauthd
> >   server: No such file or directory
> >   Oct 17 18:25:04 localhost imapd[6803]: badlogin: box1.ourdomain
> >   [192.168.1.194] plaintext testuser SASL(-1): generic failure: checkpass failed
>
> I have some more information to offer.
>
> If I try to start saslauthd by hand, like this:
>
>   saslauthd -m /var/run/mux -a pam
>

I suspect that saslauthd never starts, verify with 'ps'.  Check syslog;
saslauthd displays messages to the auth syslog facility.

-Igor

> and then do this:
>
>   echo 1 > /var/run/mux
>
> I get:
>
>   bash: /var/run/mux: No such device or address
>
> Isn't that a bit odd?  Perhaps that is what my error is really about?
>
> I've tried adding all my binaries and libraries in the PATH (I have
> --prefix set to a non-standard place) but that didn't seem to help,
> either.
>
> If anybody could shed any light on this, it would be greatly
> appreciated.
>
> Thanks,
>
> Erik.
>

-- 
Igor




Re: cannot connect to saslauthd server: No such file or directory [solved]

2002-10-18 Thread Erik Enge
Erik Enge <[EMAIL PROTECTED]> writes:

> I have some more information to offer.

I straced 'master' with -f (follow forks) and saw that Cyrus looks for
/var/state/saslauthd/mux instead of /var/run/mux (as stated by the FAQ).
I guess it changed in the versions somewhere.

Anyway, I made saslauthd put the mux in /var/state/saslauthd and now
everything works as a charm.

Erik.



Re: ACL: moving messages around

2002-10-18 Thread adam
>>Also, how does one give a user permission to delete a message from a
>>folder, but not to delete the folder. (I've RTFMed, but can't find it.)
>'c' allows CREATE/DELETE of a folder.  'd' allows messages to be
>deleted.

Some older versions and/or documents didn't seem to make this distinction.  It 
confused me for awhile to.  And as of 2.1.5 there was still a confusing 
statement about it in the man page, but that has subsequently been fixed.

>>(I'm looking at a mail system where people can move messages that are in
>>the wrong folder *out* of the folders they reply to and into the right one,
>>but not *in* to the folders they reply to.)

You could not allow i on the folders they shouldn't be allowed to copy into.

I think "i" is insert, if I recall correctly.



Re: cannot connect to saslauthd server: No such file or directory

2002-10-18 Thread Erik Enge
Erik Enge <[EMAIL PROTECTED]> writes:

> I'm compiling cyrus-imapd and cyrus-sasl 2.1.9 from source and
> everything has gone fairly good until now.  I don't understand why I
> get this error message:
> 
>   Oct 17 18:25:04 localhost imapd[6803]: cannot connect to saslauthd 
>   server: No such file or directory
>   Oct 17 18:25:04 localhost imapd[6803]: badlogin: box1.ourdomain 
>   [192.168.1.194] plaintext testuser SASL(-1): generic failure: checkpass failed

I have some more information to offer.

If I try to start saslauthd by hand, like this:

  saslauthd -m /var/run/mux -a pam

and then do this:

  echo 1 > /var/run/mux

I get:

  bash: /var/run/mux: No such device or address

Isn't that a bit odd?  Perhaps that is what my error is really about?

I've tried adding all my binaries and libraries in the PATH (I have
--prefix set to a non-standard place) but that didn't seem to help,
either.

If anybody could shed any light on this, it would be greatly
appreciated.

Thanks,

Erik.



Re: [STATUS] NNTP support (10/17/02)

2002-10-18 Thread Dave McCracken

--On Friday, October 18, 2002 10:05:10 -0400 Ken Murchison <[EMAIL PROTECTED]>
wrote:

> Right now, I'm using 'ipurge', but I have an 'expirenews' tool to purge
> entries from netnews.db which I plan on adding the article delete code
> to.

Have you gotten ipurge to be reliable?  I gave up on it because it kept
deleting mail that didn't match its criteria, ie I specified greater than
14 days and it often deleted mail that was less than a day old.

And yes, I did report this behavior on the list a couple of times, but no
one ever responded.

Dave McCracken

==
Dave McCracken  IBM Linux Base Kernel Team  1-512-838-3059
[EMAIL PROTECTED]T/L   678-3059




Re: [STATUS] NNTP support (10/17/02)

2002-10-18 Thread Ken Murchison


Scott Russell wrote:
> 
> On Thu, Oct 17, 2002 at 01:11:50PM -0400, Ken Murchison wrote:
> > FYI, the client side of nntpd is essentially complete.  It now works
> > with Pine, Netscape (Mozilla), and Outlook.  The issue with Netscape and
> > Outlook was that they both seem REQUIRE support for the XOVER extension
> > (Netscape because of a bug and Outlook because of poor design).
> >
> > The only major missing functionality is support for wildmat patterns.
> > Right now, only IMAP-style patterns are supported.
> 
> So, if I've been following this right, the way to work this is to use
> nntpd for access to shared mailboxes (not user.*).

Are you trying to share a personal mailbox or a public mailbox?  Unless
you specify a "newsprefix" to put newsgroups in their own hierarchy,
nntpd will work for any mailbox that the user can read (including
user.*).


> How does 'expire' work in this case? I'm wondering about getting rid
> of old articles in the shared imap mailbox.

Right now, I'm using 'ipurge', but I have an 'expirenews' tool to purge
entries from netnews.db which I plan on adding the article delete code
to.


> I'm very interested in this work since it would make for a fine
> news2mail gateway setup I think.

Yes, I'm using it right now for news2mail and I'm using lmtp2nntp for
mail2news.  I can read newsgroups/shared mailboxes with my Netscape
client via NNTP or IMAP without INN anywhere in sight.

If you can give me more details on what you're trying to accomplish, I
can tell you how to set it up and/or make the necessary changes to allow
what you need.

If it helps visualize how this all fits together, I have attached a PDF
of an xfig drawing that I put in CVS.

Ken
-- 
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


netnews.pdf
Description: Adobe PDF document


db3 lockers issue ... moving mailboxes.db -> skiplist ?

2002-10-18 Thread Marc G. Fournier

Morning ... I must be  mis-understanding something ... I found the thread
on db3 vs skiplist, including Ken's on the recommended (vs default)
settings, yet I can't seem to figure out how to convert from db3->skiplist
:(

As cyrus user, if i run:

cvt_cyrusdb /var/spool/imap/mailboxes.db berkeley \
/var/spool/imap/mailboxes.db.n skiplist

it creates the db.n file, which 'strings mailboxes.db.n' shows to contain:

hub# strings mailboxes.db.n
skiplist file

and then just hangs

I've tried to do a ctl_mboxlist -d followed by a -u using the version of
ctl_mboxlist that I compiled with skiplist support, and it does the same
thing ...

What am I missing? :(

Thanks ...





Re: Search: takes time of what order?

2002-10-18 Thread Ken Murchison


Ian McDonald wrote:
> 
> Hi,
> 
> Does Cyrus do any indexing or other preparation to reduce the time taken to
> search large mail collections?

Yes, if you create a "squat" index for it, by using the "squatter"
tool.  Since this only indexes messages currently in the mailbox, you
should setup squatter to be an EVENT in cyrus.conf, if the mailbox
constantly grows.

-- 
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



Re: ACL: moving messages around

2002-10-18 Thread Ken Murchison


Ian McDonald wrote:
> 
> Hi,
> 
> Am I right in thinking that ACLs are blind to the difference between
> deleting a message from a folder and moving it into a different folder?

Yes, since a move is a COPY/DELETE function.


> Also, how does one give a user permission to delete a message from a folder,
> but not to delete the folder. (I've RTFMed, but can't find it.)

'c' allows CREATE/DELETE of a folder.  'd' allows messages to be
deleted.


> (I'm looking at a mail system where people can move messages that are in the
> wrong folder *out* of the folders they reply to and into the right one, but
> not *in* to the folders they reply to.)
> 
> Thanks,
> 
> Ian

-- 
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



Search: takes time of what order?

2002-10-18 Thread Ian McDonald
Hi,

Does Cyrus do any indexing or other preparation to reduce the time taken to
search large mail collections?

Thanks,

Ian




ACL: moving messages around

2002-10-18 Thread Ian McDonald
Hi,

Am I right in thinking that ACLs are blind to the difference between
deleting a message from a folder and moving it into a different folder?

Also, how does one give a user permission to delete a message from a folder,
but not to delete the folder. (I've RTFMed, but can't find it.)

(I'm looking at a mail system where people can move messages that are in the
wrong folder *out* of the folders they reply to and into the right one, but
not *in* to the folders they reply to.)

Thanks,

Ian




Upgrade to Berkeley DB 4 and now the server crashes ---- HELP !!!

2002-10-18 Thread Christian Schulte
I upgraded to Berkeley 4.1.24 and now the whole installation does not 
work. I made ctl_cyrusdb -r but that does not fix it. What can I do 
either! I really need the mailserver working again as soon as possible. 
Its a "never change a running system" thing but now many people dont 
have email todayPlease help!


Oct 18 11:46:33 mail master[6138]: [ID 228336 local6.notice] got SIGHUP
Oct 18 11:46:33 mail master[19212]: [ID 392559 local6.debug] about to 
exec /usr/local/cyrus2-cvs/bin/tls_prune
Oct 18 11:46:33 mail tls_prune[19212]: [ID 866726 local6.warning] 
DBERROR db4: fatal region error detected; run recovery
Oct 18 11:46:33 mail tls_prune[19212]: [ID 301778 local6.error] DBERROR: 
dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run 
database recovery
Oct 18 11:46:33 mail tls_prune[19212]: [ID 866726 local6.warning] 
DBERROR db4: environment not yet opened
Oct 18 11:46:33 mail tls_prune[19212]: [ID 729713 local6.error] DBERROR: 
opening /var/imap/tls_sessions.db: Invalid argument
Oct 18 11:46:33 mail tls_prune[19212]: [ID 729713 local6.error] DBERROR: 
opening /var/imap/tls_sessions.db: cyrusdb error
Oct 18 11:46:33 mail master[6137]: [ID 228336 local6.notice] got SIGHUP
Oct 18 11:46:33 mail master[19213]: [ID 392559 local6.debug] about to 
exec /usr/local/cyrus2-cvs/bin/ctl_deliver
Oct 18 11:46:33 mail ctl_deliver[19213]: [ID 866726 local6.warning] 
DBERROR db4: fatal region error detected; run recovery
Oct 18 11:46:33 mail ctl_deliver[19213]: [ID 301778 local6.error] 
DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, 
run database recovery
Oct 18 11:46:33 mail ctl_deliver[19213]: [ID 772277 local6.error] 
DBERROR: init /var/imap/db: cyrusdb error
Oct 18 11:46:33 mail master[19214]: [ID 392559 local6.debug] about to 
exec /usr/local/cyrus2-cvs/bin/ctl_cyrusdb
Oct 18 11:46:33 mail ctl_cyrusdb[19214]: [ID 702911 local6.notice] 
checkpointing cyrus databases
Oct 18 11:46:33 mail ctl_cyrusdb[19214]: [ID 866726 local6.warning] 
DBERROR db4: fatal region error detected; run recovery
Oct 18 11:46:33 mail ctl_cyrusdb[19214]: [ID 301778 local6.error] 
DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, 
run database recovery
Oct 18 11:46:33 mail ctl_cyrusdb[19214]: [ID 772277 local6.error] 
DBERROR: init /var/imap/db: cyrusdb error
Oct 18 11:46:33 mail ctl_cyrusdb[19214]: [ID 127214 local6.notice] done 
checkpointing cyrus databases
Oct 18 11:46:33 mail master[6138]: [ID 310780 local6.debug] process 
19214 exited, status 1
Oct 18 11:46:33 mail master[6138]: [ID 310780 local6.debug] process 
19213 exited, status 1
Oct 18 11:46:33 mail master[6138]: [ID 310780 local6.debug] process 
19212 exited, status 1

Anf if I connect with IMAP:

Oct 18 11:48:57 mail master[19246]: [ID 392559 local6.debug] about to 
exec /usr/local/cyrus2-cvs/bin/imapd
Oct 18 11:48:57 mail imap[19246]: [ID 518349 local6.debug] executed
Oct 18 11:48:57 mail imap[19246]: [ID 921384 local6.debug] accepted 
connection
Oct 18 11:48:57 mail master[19247]: [ID 392559 local6.debug] about to 
exec /usr/local/cyrus2-cvs/bin/imapd
Oct 18 11:48:57 mail imap[19247]: [ID 518349 local6.debug] executed
Oct 18 11:48:57 mail imap[19247]: [ID 921384 local6.debug] accepted 
connection
Oct 18 11:48:57 mail master[19248]: [ID 392559 local6.debug] about to 
exec /usr/local/cyrus2-cvs/bin/imapd
Oct 18 11:48:57 mail imap[19248]: [ID 518349 local6.debug] executed
Oct 18 11:48:57 mail imap[19248]: [ID 921384 local6.debug] accepted 
connection
Oct 18 11:48:57 mail master[19249]: [ID 392559 local6.debug] about to 
exec /usr/local/cyrus2-cvs/bin/imapd
Oct 18 11:48:57 mail imap[19249]: [ID 518349 local6.debug] executed
Oct 18 11:48:57 mail imap[19249]: [ID 921384 local6.debug] accepted 
connection
Oct 18 11:48:57 mail master[19250]: [ID 392559 local6.debug] about to 
exec /usr/local/cyrus2-cvs/bin/imapd
Oct 18 11:48:57 mail imap[19250]: [ID 518349 local6.debug] executed
Oct 18 11:48:57 mail imap[19250]: [ID 921384 local6.debug] accepted 
connection
Oct 18 11:49:02 mail master[6138]: [ID 970914 local6.error] process 
19247 exited, signaled to death by 11
Oct 18 11:49:02 mail master[6138]: [ID 970914 local6.error] process 
19246 exited, signaled to death by 11