Re: cyradm spins out of control!

2001-08-14 Thread Jev

On Mon, Aug 13, 2001 at 10:41:48PM +1000, Jeremy Howard wrote:
> Have you tried using the --auth flag to cyradm to specify the correct
> authentication method (this would avoid the 2 password prompts, although
> there's no reason it'll actually fix your problem).

When I try to specify the mech it gives me:
cyradm: cannot authenticate to server with pwcheck as jev


> 

> What's taking up the resources, Perl/cyradm or your pwcheck daemon? If it's
> Perl, try running cyradm under the debugger to find the line that's causing
> the problem. Type 'perldoc perldebtut' and also 'perldoc perldebug' at a
> shell prompt to learn how to use the perl debugger if you're not familiar
> with it (if you know gdb, you'll find it familiar).

Im pretty sure it's perl, but I still can't try it because this server
is in production! :/

When I can get access to the machine when everyone is gone home I will
try the perl debugger.
In the mean time, I need to add a couple email accounts, is there any
other alternative to using cyradm for this?

Kind regards,
-Jev

> 

-- 
http://www.ecad.org/~jev/jev.gpg
Key fingerprint = 748B 2346 1683 6384 5E8D  4EE3 0807 EADB 999E AB95



Re: cyradm spins out of control!

2001-08-14 Thread Jeremy Howard

Jev wrote:
> On Mon, Aug 13, 2001 at 10:41:48PM +1000, Jeremy Howard wrote:
> > Have you tried using the --auth flag to cyradm to specify the correct
> > authentication method (this would avoid the 2 password prompts, although
> > there's no reason it'll actually fix your problem).
>
> When I try to specify the mech it gives me:
> cyradm: cannot authenticate to server with pwcheck as jev
>
The --auth flag is expecting an authentication mechanism such as LOGIN,
PLAIN, DIGEST, etc. 'pwcheck' is not an authentication mechanism.

In case you were wondering, yes this is confusing ;-)





expruge

2001-08-14 Thread Laurent LABATUT

i want to expurge sompe mail
example : if flag=delete then expurge

how to do this?

Laurent LABATUT



Re: Sourceforge (was Re: Cyrus documentation)

2001-08-14 Thread Norbert Klasen



--On Sonntag, 12. August 2001 14:59 +0200 Tarjei Huse <[EMAIL PROTECTED]> wrote:

> Q 2. Death by 11 nr II
> "Ok the db's are ok. still I am having problems".
> You are using pam-ldap & openldap 2.0.x for authentication, right?
>
> Ok. Bad idea. The reason is that OL2 also uses the sasl libs. Thus when
> you try to auth to the openldap server you get a reentrant crisis (or
> that was what the people who know what they are doing called it on the
> maillinglist). Here's basicly what happens:
>
> your client -> imap -> sasl -> pam-ldap (or any other) -> sasl -> openldap
>
> ok. Se sasl twice? Sasl does not like t be used twice (Oh! What a
> consumer society! ,)

Another possibility would be to link pam_ldap with the Netscape C SDK for 
LDAP. This eliminates the second call to cyrus-sasl while still providing 
LDAP over SSL.

-- 
Norbert Klasen
DAASI International GmbH phone: +49 7071 2970336
Wilhelmstr. 106  fax:   +49 7071 295114
72074 Tübingen   email: [EMAIL PROTECTED]
Germany  web:   http://www.daasi.de





No Subject

2001-08-14 Thread avl

 Hello all

 I just installed Cyrus IMAPD , but it can't start from the inetd.
When I try to run it manually , I get :
 Aug 14 13:39:39 cow imapd: could not getenv(CYRUS_SERVICE); exiting
And the same with pop3d.
 What can be wrong with it ? 
Help, if you know
Thanks


Andrei V. Loukinykh , Evpatoria Ukrtelecom ISP, +380 6569 29376
~~~
"UNIX is like a vigvam - no Windows, no Gates and an Apache inside"





Re:

2001-08-14 Thread Ken Murchison



avl wrote:
> 
>  Hello all
> 
>  I just installed Cyrus IMAPD , but it can't start from the inetd.
> When I try to run it manually , I get :
>  Aug 14 13:39:39 cow imapd: could not getenv(CYRUS_SERVICE); exiting
> And the same with pop3d.
>  What can be wrong with it ?

>From the installation instructions:

12.Remove "/etc/[x]inetd.conf" entries. Any imap, imaps, pop3, pop3s,
kpop, lmtp and sieve lines need to be removed from
  /etc/[x]inetd.conf and [x]inetd needs to be restarted. 

Configuring the Master Process

   1.Choose a configuration from the master/conf directory: 
  small.conf
bare-bones server supporting IMAP and POP 
  normal.conf
server supporting IMAP, POP, the SSL wrapped versions, and
the Sieve script management protocol 
  prefork.conf
The same configuration as above, but with some preforked
processes for faster processing. 
  cmu.conf
Our configuration 

  To use normal.conf, do: 

 cp master/conf/normal.conf /etc/cyrus.conf

  Optionally, you can edit /etc/cyrus.conf to disable or enabling
certain services, or to tune the number of preforked copies. Be sure
  not to remove the entries that are labeled required. 

   2.Arrange to start "/usr/cyrus/bin/master" as root when the system
starts. It will bind some ports and then give up it's root privileges.
  Until your system reboots, you can start the master process by
hand: 

 /usr/cyrus/bin/master &

   3.Monitor the progress of the master process by examining the
imapd.log file. It should never exit by itself, but you can shut down
the
  mail system by sending it a signal with kill. 

-- 
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: different conf files of on same.

2001-08-14 Thread Ken Murchison



Tarjei Huse wrote:
> 
> Two questions:
> 1. Sieve listening on a port, that is just for administrative work, the sieve 
>service does not have anything to do administratively. And so I can set
>sieve cmd="/usr/cyrus/bin/timsieved" listen="localhost:sieve" prefork=0
> And let my users use websieve, right?

As long as your websieve is running on the same machine as timsieved.

> Also, the services entry, the name has noe meaning outside cyrus.conf, right? If i 
>called my imaps entry for
> tarjei cmd="/usr/cyrus/bin/imapd -s" listen="192.168.1.2:imaps" prefork=0
> then that would have noe effect on the system, right?

The services entry is used mostly for TCP wrappers (and a little bit of
logging).  Other than that, the name doesn't matter.

> One last question, I know I've asked it before, but I realy want an answer (it's for 
>the faq). If I download cyrus 2.0.16 and build it with the same config as the last 
>time. Then a make install will only overwrite binarys and libs, and not the .conf 
>files and anything in the /var dirs, right?

A make install doesn't touch anything in /etc or /var.

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



Re: different conf files of on same.

2001-08-14 Thread Tarjei Huse

Two questions:
1. Sieve listening on a port, that is just for administrative work, the sieve service 
does not have anything to do administratively. And so I can set 
   sieve cmd="/usr/cyrus/bin/timsieved" listen="localhost:sieve" prefork=0
And let my users use websieve, right?

Also, the services entry, the name has noe meaning outside cyrus.conf, right? If i 
called my imaps entry for 
tarjei cmd="/usr/cyrus/bin/imapd -s" listen="192.168.1.2:imaps" prefork=0
then that would have noe effect on the system, right?

One last question, I know I've asked it before, but I realy want an answer (it's for 
the faq). If I download cyrus 2.0.16 and build it with the same config as the last 
time. Then a make install will only overwrite binarys and libs, and not the .conf 
files and anything in the /var dirs, right?

Tarjei




Re: different conf files of on same.

2001-08-14 Thread Jeremy Howard

Ken Murchison wrote:
> Tarjei Huse wrote:
> > One last question, I know I've asked it before, but I realy want an
answer (it's for the faq). If I download cyrus 2.0.16 and build it with the
same config as the last time. Then a make install will only overwrite
binarys and libs, and not the .conf files and anything in the /var dirs,
right?
>
> A make install doesn't touch anything in /etc or /var.
>
Also worth mentioning in the FAQ is that it's a good idea to kill the master
process before running 'make install' to ensure that everything is replaced
properly.

PS: Tarjei, could you please adjust your mailer so that it wraps your lines
to 72 chars or thereabouts? Otherwise we get the problem you see above of
replies not prefixing your quoted lines properly?





Re: cyradm spins out of control!

2001-08-14 Thread Jeremy Howard

Jev wrote:
> Yes, specifying the correct authmechenisim fixed the spin problem. So, I
> guess the actual spin problem still exists, at least in my environment on
> this particular system. I can still recreate the problem if I don't
> specify the --auth PLAIN argument.
>
> I will try and work out what is causing this problem if I get time some
> evening if im working late.
>
> Thanks for the help,
>
No problem! I'm cross-posting this back to the list so that others will know
of this fix if they have the same problem (I haven't seen it come up
before).

Quick summary--if your cyradm spins out of control when starting try
specifying a --auth flag. For example:
  cyradm -u admin --auth PLAIN localhost





Re:

2001-08-14 Thread chirs charter

Sorry if this question sounds a bit sophmoric but how
does inetd know which daemon to fire up if there is no
entry in inetd.conf. If I do this I get "connection
refused" which is what I would expect. Again sorry but
if you could school me on this that would be great.

--- Ken Murchison <[EMAIL PROTECTED]> wrote:
> 
> 
> avl wrote:
> > 
> >  Hello all
> > 
> >  I just installed Cyrus IMAPD , but it can't start
> from the inetd.
> > When I try to run it manually , I get :
> >  Aug 14 13:39:39 cow imapd: could not
> getenv(CYRUS_SERVICE); exiting
> > And the same with pop3d.
> >  What can be wrong with it ?
> 
> From the installation instructions:
> 
> 12.Remove "/etc/[x]inetd.conf" entries. Any imap,
> imaps, pop3, pop3s,
> kpop, lmtp and sieve lines need to be removed from
>   /etc/[x]inetd.conf and [x]inetd needs to be
> restarted. 
> 
> Configuring the Master Process
> 
>1.Choose a configuration from the master/conf
> directory: 
>   small.conf
> bare-bones server supporting IMAP and
> POP 
>   normal.conf
> server supporting IMAP, POP, the SSL
> wrapped versions, and
> the Sieve script management protocol 
>   prefork.conf
> The same configuration as above, but
> with some preforked
> processes for faster processing. 
>   cmu.conf
> Our configuration 
> 
>   To use normal.conf, do: 
> 
>  cp master/conf/normal.conf /etc/cyrus.conf
> 
>   Optionally, you can edit /etc/cyrus.conf to
> disable or enabling
> certain services, or to tune the number of preforked
> copies. Be sure
>   not to remove the entries that are labeled
> required. 
> 
>2.Arrange to start "/usr/cyrus/bin/master" as
> root when the system
> starts. It will bind some ports and then give up
> it's root privileges.
>   Until your system reboots, you can start the
> master process by
> hand: 
> 
>  /usr/cyrus/bin/master &
> 
>3.Monitor the progress of the master process by
> examining the
> imapd.log file. It should never exit by itself, but
> you can shut down
> the
>   mail system by sending it a signal with kill. 
> 
> -- 
> 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


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re:

2001-08-14 Thread Ken Murchison

The master process spawns all of the Cyrus-related services.  inetd
doesn't have to know about them.


chirs charter wrote:
> 
> Sorry if this question sounds a bit sophmoric but how
> does inetd know which daemon to fire up if there is no
> entry in inetd.conf. If I do this I get "connection
> refused" which is what I would expect. Again sorry but
> if you could school me on this that would be great.
> 
> --- Ken Murchison <[EMAIL PROTECTED]> wrote:
> >
> >
> > avl wrote:
> > >
> > >  Hello all
> > >
> > >  I just installed Cyrus IMAPD , but it can't start
> > from the inetd.
> > > When I try to run it manually , I get :
> > >  Aug 14 13:39:39 cow imapd: could not
> > getenv(CYRUS_SERVICE); exiting
> > > And the same with pop3d.
> > >  What can be wrong with it ?
> >
> > From the installation instructions:
> >
> > 12.Remove "/etc/[x]inetd.conf" entries. Any imap,
> > imaps, pop3, pop3s,
> > kpop, lmtp and sieve lines need to be removed from
> >   /etc/[x]inetd.conf and [x]inetd needs to be
> > restarted.
> >
> > Configuring the Master Process
> >
> >1.Choose a configuration from the master/conf
> > directory:
> >   small.conf
> > bare-bones server supporting IMAP and
> > POP
> >   normal.conf
> > server supporting IMAP, POP, the SSL
> > wrapped versions, and
> > the Sieve script management protocol
> >   prefork.conf
> > The same configuration as above, but
> > with some preforked
> > processes for faster processing.
> >   cmu.conf
> > Our configuration
> >
> >   To use normal.conf, do:
> >
> >  cp master/conf/normal.conf /etc/cyrus.conf
> >
> >   Optionally, you can edit /etc/cyrus.conf to
> > disable or enabling
> > certain services, or to tune the number of preforked
> > copies. Be sure
> >   not to remove the entries that are labeled
> > required.
> >
> >2.Arrange to start "/usr/cyrus/bin/master" as
> > root when the system
> > starts. It will bind some ports and then give up
> > it's root privileges.
> >   Until your system reboots, you can start the
> > master process by
> > hand:
> >
> >  /usr/cyrus/bin/master &
> >
> >3.Monitor the progress of the master process by
> > examining the
> > imapd.log file. It should never exit by itself, but
> > you can shut down
> > the
> >   mail system by sending it a signal with kill.
> >
> > --
> > 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
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/

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



What is Cyrus doing with /var/imap/db?

2001-08-14 Thread Christopher Wong

Could someone explain what Cyrus-IMAP does with /var/imap/db? I
upgraded to the latest Cyrus-IMAP 2.0.16 RPMs (for Red Hat) and
everything seems to work fine. I have been testing this IMAP server
setup with the intention of deploying it in the indeterminate
future. The largest test account has less than 100 short emails on
this machine. But I just noticed that there is currently a file 
/var/imap/db/__002.db that is 11MB in size. Other smaller __nnn.db 
files are also present. But why should there be a file this huge in a 
system that cannot possibly have more than 1 MB of emails? What is it 
for? What does that say about disk usage when this machine has to 
support thousands of emails? I wish Cyrus-IMAP was a little better 
documented.
 
Chris



Deliver problem with the "-r $g"

2001-08-14 Thread Patrick LIN

hi,

i am Using

- Sendmail Switch-2.1.0
- Cyrus IMAP4 v2.0.12

On Solaris 2.6 Server E220R

My configuration is deliver mail with lmtp
i have a strange problem with the deliver since i change my Mcyrus in 
sendmail.cf

from :

Mcyrus, P=/usr/local/bin/deliver, F=lsDFMnPqAh5@/:|, S=EnvFromL, 
R=EnvToL/HdrToL,
 U=cyrus:cyrus, T=DNS/RFC822/X-Unix,
 A=deliver -e -m $h -- $u

to :

Mcyrus, P=/usr/local/bin/deliver, F=lsDFMnPqAh5@/:|, S=EnvFromL, 
R=EnvToL/HdrToL,
 U=cyrus:cyrus, T=DNS/RFC822/X-Unix,
 A=deliver -r $g -e -m $h -- $u


(just adding -r $g without that vacation doesn't work on sieve)

so the problem is very strange and seem to be Random.
i have one mailbox seem to be lock (not the same)
in the sendmail log i read the message is deliver so sendmail pass the 
mail to deliver proggy.
but  when i do a ps , i can see a lot of line like that

deliver -r  -e -m -- mailbox_who_have_problem

and no mail go to this mailbox anymore
the number of line in the ps go up depend on the number of mail this 
person receive

did i have to go to 2.0.16 to fix that , or it is configuration problem 
or something weird?
if i remove the -r $g everything work well like it work since i put the 
2.0.12 (two day after it release) but sieve vacation doesn't work

any help will appreciate on that
thanks in advance, sorry if my explannation is Bad and sorry too for my 
very poor english :)
just ask i will to do it better :)

thanks
Best regards
PAtrick
-- 
   
__(   /
   |  |  /
   \   | This message is transmitted by   |  \
\  |   100 % recycled electrons   |___\
/  |__(
   /__)




Re: getting used to db

2001-08-14 Thread Lawrence Greenfield

   From: Amos Gouaux <[EMAIL PROTECTED]>
   Date: Sun, 12 Aug 2001 17:13:15 -0500

   Are these nothing to worry much about?

DBERROR: error closing: DB_INCOMPLETE: Cache flush was unable to complete
DBERROR: error closing mailboxes: cyrusdb error

   They sound kind ominous.  At least things seem to be chugging along.

They do sound ominous, but unless they happen without stop they're
nothing to worry about.  You can see them with the deliverdb, too.

Larry




libssl.so.0

2001-08-14 Thread chirs charter

Hello,
I just installed Cyrus 2.0.16. on Solaris 8 and I am
getting the following error when testing

catfish# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
ld.so.1: imapd: fatal: libssl.so.0: open failed: No
such file or directory
Connection closed by foreign host.

I have openssl installed 0.9.6 in:
/usr/local/ssl
Can someone plese help



__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re:

2001-08-14 Thread Devdas Bhagat

On Tue, 14 Aug 2001, chirs charter spewed into the ether:
> Sorry if this question sounds a bit sophmoric but how
> does inetd know which daemon to fire up if there is no
> entry in inetd.conf. If I do this I get "connection
> refused" which is what I would expect. Again sorry but
> if you could school me on this that would be great.
cyrus does not work through inetd.
The master process for cyrus works in a fashion similar to inetd.
The master uses the /etc/cyrus.conf configuration file.

Devdas Bhagat
--
Do not underestimate the value of print statements for debugging.



Sendmail Queuing

2001-08-14 Thread Scott Adkins

Is anyone out there (besided CMU) who has implemented a split queue approach
to delivering email?  What I am talking about is this:

  1) You have the default sendmail server in queue-only delivery mode.
 Any messages coming to the server are simply queued and that is it.

  2) You have a cron job that moves messages out of the mail queue and
 into a slow queue if the messages are older than some age limit.
 You then process the rest of the messages with "sendmail -q".  The
 cron job probably runs often, maybe once every 2 minutes or so.

  3) You have another cron job that processes the slow mail queue with
 "sendmail -q" considerably less often, maybe once an hour or once
 every 2 hours.

Is anyone running a similar process?  We are curious what experiences
others might have had using this setup.

Thanks,
Scott
--
 +-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-+
  Scott W. Adkinshttp://www.cns.ohiou.edu/~sadkins/
   UNIX Systems Engineer  mailto:[EMAIL PROTECTED]
ICQ 7626282 Work (740)593-9478 Fax (740)593-1944
 +-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-+
 CNS, HDL Center, Suite 301, Ohio University, Athens, OH 45701-2979



Re: What is Cyrus doing with /var/imap/db?

2001-08-14 Thread Dan Makovec

Hmm, interesting question about its actual use, and I can't give you much
info on that, but FYI I've got about 400MB of email in 32,000 messages
currently sitting on Cyrus 2.0.15.  The db directory for me is in
/usr/local/etc/imap/db, and here are my filesizes:

-rw---  1 cyrus  cyrus  8192 Aug 15 01:57 __db.001
-rw---  1 cyrus  cyrus270336 Aug 15 01:57 __db.002
-rw---  1 cyrus  cyrus 98304 Aug 15 01:57 __db.003
-rw---  1 cyrus  cyrus  16064512 Aug 15 01:57 __db.004
-rw---  1 cyrus  cyrus  8192 Aug 15 01:57 __db.005
-rw---  1 cyrus  cyrus   3608122 Aug 15 01:57 log.01

So my largest file is about 16MB.  I'd say it will scale fairly well.

Cheerio,
d


- Original Message -
From: "Christopher Wong" <[EMAIL PROTECTED]>
To: "info-cyrus" <[EMAIL PROTECTED]>
Sent: Wednesday, August 15, 2001 1:34 AM
Subject: What is Cyrus doing with /var/imap/db?


> Could someone explain what Cyrus-IMAP does with /var/imap/db? I
> upgraded to the latest Cyrus-IMAP 2.0.16 RPMs (for Red Hat) and
> everything seems to work fine. I have been testing this IMAP server
> setup with the intention of deploying it in the indeterminate
> future. The largest test account has less than 100 short emails on
> this machine. But I just noticed that there is currently a file
> /var/imap/db/__002.db that is 11MB in size. Other smaller __nnn.db
> files are also present. But why should there be a file this huge in a
> system that cannot possibly have more than 1 MB of emails? What is it
> for? What does that say about disk usage when this machine has to
> support thousands of emails? I wish Cyrus-IMAP was a little better
> documented.
>
> Chris
>




Re: different conf files of on same.

2001-08-14 Thread Tarjei Huse

Hi
> Also worth mentioning in the FAQ is that it's a good idea to kill the
master
> process before running 'make install' to ensure that everything is
replaced
> properly.
Thanks, I've added it.

> PS: Tarjei, could you please adjust your mailer so that it wraps your
lines
> to 72 chars or thereabouts? Otherwise we get the problem you see above of
> replies not prefixing your quoted lines properly?
Done.

Also, I asked if CMU would be so kind as to set up a faq-o-matic. I guess
that is not possible?

Tarjei

The cysrus-ldap-sasl FAQ.

The Faq handles these topics:
- Use and setup of the fabulas and famous Cyrus Imapd server
- Setup (use no problem) of the infamous but very nice cyrus-sasl package.
- Use of ldap in this combination.


For those wondering. This FAQ is written because Ken Murchinson demanded
someone actually do something about the situation. I am happy for anyone who
proofreads this faq.


Q 1: Death by 11 nr I
The errormessage "imapd was signaled to death by 11" has stopped many from
getting ingto cyrus.

There are two reasons for this problem:

** Your db3 libs are fxxxed.
Make sure that cyrus can find your libs.

If you are on rh. make sure that you got the latest rpm's, AND then
recompile and reinstall the cyrus-sasl rpms like this:
(get cyrus-sasl.src.rpm from your rh cd og rh ftp site).
rpm -i cyrus-sasl-1.5.24-n.src.rpm
cd /usr/src/redhat/SPECS
rpm -ba cyrus-sasl.spec
cd ../RPMS/i386
rpm -i --force cyrus-sasl*

thus cyrus imapd and sasl is installed with the same libs.

Then look below for the rest of the instalation.


Q 2. Death by 11 nr II
"Ok the db's are ok. still I am having problems".
You are using pam-ldap & openldap 2.0.x for authentication, right?

Ok. Bad idea. The reason is that OL2 also uses the sasl libs. Thus when you
try to auth to the openldap server you get a reentrant crisis (or that was
what the people who know what they are doing called it on the maillinglist).
Here's basicly what happens:

your client -> imap -> sasl -> pam-ldap (or any other) -> sasl -> openldap

ok. Se sasl twice? Sasl does not like t be used twice (Oh! What a consumer
society! ,)
so what you do is drop the pam part. There are a few patches for this, they
let sasl authenticate dircetly to db, ldap mysql and a couple of other
places you might feel to save your userdata.

I use the one forund here: www.surf.org.uk
others say this one is better:
You will find a SASL patch under
 http://www.matuschek.net/software/sasl-patch
This patch contains support for PostgreSQL, LDAP, BerkeleyDB and
a special authentification server.


Q.3 Sasl-ldap and SSL
Ok. I'm using the ldap-sasl patch. Woha that was a breeze! Now how do I
encrypt the transport between the imap server and the ldap server?

Can someone answer thisone?

Q.4 Where can I find some more documentation on admining cyrus?
Here:
http://www.oreilly.com/catalog/mimap/chapter/ch09.html#92594


Q.5 How do I take backup of cyrus?
Heres a script I ripped from the maillinglist (and made some changes on to
backup ldap too):
Note: I sugges using postfix -> it's better!

#!/bin/sh
# sauve-imap.sh
# stop servers
/etc/rc.d/init.d/cyrus stop
/etc/rc.d/init.d/ldap stop

/usr/sbin/slapcat > /tmp/ldap.ldif
# start ldap.
/etc/rc.d/init.d/ldap start

#tar IMAP
/bin/tar cvzf /backup/var-imap.tgz /var/imap/
/bin/tar cvzf /backup/spool-imap.tgz /var/spool/imap/
# tar conf and ldap files directly to mounted nis dir. (they're not BIG)
/bin/tar cvzf /mnt/test/conf.tgz /etc/cyrus.conf /etc/imapd.conf /etc/sasldb
/etc/openldap /etc/postfix
/bin/tar cvxf /mnt/test/ldap.tgz /tmp/ldap.ldif

# start cyrus
/etc/rc.d/init.d/cyrus start

# move tarr'ed files to mounted nis dir.
/bin/mv /backup/var-imap.tgz /mnt/test/var-imap.tgz
/bin/mv /backup/spool-imap.tgz /mnt/test/spool-imap.tgz


Q.6.Can anybody help me to migrate "old" mbox-style mailboxes into
Cyrus-IMAP ?
>It would be nice if I could keep things like "seen flags".
>
>Get the imap-utils from imap.org. The program mbxcvt does exactly what you
>want...I hacked my copy to allow for copying to an existing mailbox---the
>default is that it wont...

Note: The author could not manage to do it this way ;)

Q.7 how do I list the quotausage for all my users?
su cyrus
/usr/cyrus/bin/quota
you'll get a listing.
You can also do:
sudo -u cyrus '/usr/cyrus/bin/quota'

Q.8 Outlook issue
Thanks for that.  For anybody checking the archives, when I reconstructed
the Cyrus server, for some reason a Drafts and Sent folder were created at
the root of the folder tree, with permissions "anyone lrs".  I actually had
the folders INBOX.Drafts and INBOX.Sent set up and with the correct
permissions on them, but OE tries to do a trick where it attempts to saved
sent messages direct to "Sent" instead of "INBOX.Sent", as it assumes that
"Sent" is a subfolder of INBOX by default.

The solution is to blow away the Sent and Drafts folders from the root of
the directory tree, and OE behaves itself quite nicely again, with calls to
"Sent" automatically going

more relocatable errors

2001-08-14 Thread chirs charter

Well this install is going a bit rought but I
appreciate all your help. I am recieving a strange
"unable to dlopen" some libs during testing. One is
obvioulsy a perms problem which I have since fixed but
the rest are more obscure and searching throught the
archives didn't help me too much. Any feedback would
be appreciated. Thanks. Here is the output with the
errors:

catfish# /usr/local/bin/imtest -p imap localhost
Aug 14 14:10:03 catfish imtest[25548]: unable to
dlopen /usr/lib/sasl/libgssapiv
2.so: ld.so.1: /usr/local/bin/imtest: fatal:
relocation error: file /usr/lib/sas
l/libgssapiv2.so: symbol GSS_C_NT_HOSTBASED_SERVICE:
referenced symbol not found
C: C01 CAPABILITY
Aug 14 14:10:03 catfish imapd[25549]: unable to open
Berkeley db /etc/sasldb: Pe
rmission denied
Aug 14 14:10:03 catfish last message repeated 1 time
Aug 14 14:10:03 catfish imapd[25549]: unable to dlopen
/usr/lib/sasl/libgssapiv2
.so: ld.so.1: imapd: fatal: relocation error: file
/usr/lib/sasl/libgssapiv2.so:
 symbol GSS_C_NT_HOSTBASED_SERVICE: referenced symbol
not found
S: * OK catfish Cyrus IMAP4 v2.0.16 server ready

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: LDAP/SASL search patch update

2001-08-14 Thread Kevin J. Menard, Jr.

Hey Kevin,

Simon has been kind enough to host the patches on his site.  So, my
patch can now be found with his (which it was based off of), on
www.surf.org.uk.

--
 Kevin




mailbox deletion

2001-08-14 Thread Darin Perusich

hello,

i'm setting up an cyrus imap server on a linux server running redhat 7.1
and i'm running into a snag. so far things have gone as well as can be
expected, the server is up and running and talking to sendmail. i've
created a test user mailbox, user.test and i'm able to connect to this
mailbox using passwd (NIS+) for authentication. i'm able to run cyradm
-u cyrus localhost and admin the mailboxes. when i try deleting
mailboxes i'm getting permission denied. i know that i have to set
explicit delete perm for the admin users, which i did with setaclmailbox
cyrus cyrus d;  permission on both /var/imap and /var/spool/imap are
good:

drwxr-x---   11 cyrusmail 4096 Aug 14 11:26 /var/imap/
drwxr-x---5 cyrusmail 4096 Aug 14 16:22 /var/spool/imap/

i'm getting the following in the imapd.log when i try and delete

Aug 14 17:33:32 seawolf imapd[29212]: myfetch: starting txn 2147483795
Aug 14 17:33:32 seawolf imapd[29212]: abort_txn: aborting txn 2147483795

at this point i'm unsure of where to go next. everything i've seen on
the net points to permission problems but that's not it. i compiled the
code from source also.

also, when i run cyradm it tries to authentice to DIGEST-MD5, not passwd
as i have imapd configured. why is that?

-- 
Darin Perusich
Unix Administrator
Cognigen Corp.
[EMAIL PROTECTED]



Re: libssl.so.0

2001-08-14 Thread mills

chirs charter writes:
>
>I just installed Cyrus 2.0.16. on Solaris 8 and I am
>getting the following error when testing
>
>catfish# telnet localhost 143
>Trying 127.0.0.1...
>Connected to localhost.
>Escape character is '^]'.
>ld.so.1: imapd: fatal: libssl.so.0: open failed: No
>such file or directory
>Connection closed by foreign host.
>
>I have openssl installed 0.9.6 in:
>/usr/local/ssl

This sounds like cyrus imapd is built incorrectly.  It should
have a built-in library search path that includes the directory
where the SSL libraries are installed.  You can look at the needed
libraries and the run path with `dump -Lv imapd'.

When you configure Cyrus, it sets the run path to /usr/local/lib.
You can either install the dynamic libraries there, or rebuild
Cyrus with a different run path.  One way to dos this is:

env LDFLAGS="-R/usr/local/whatever" ./configure


-- 
-Gary Mills--Unix Support--U of M Academic Computing and Networking-



Re: libssl.so.0

2001-08-14 Thread chirs charter

Thanks it looks like the Solais package instlls into
/usr/local/ssl for some backward comaptability reason
so using you suggestion helped thanks. Have you seen
this before, I can run "saslpasswd -u cyrus" to add a
password for the admin cyrus and it accepts a new
password however if I run cyradm after setting up user
cyrus password I get the following :

cyradm -u cyrus localhost
cyradm: cannot authenticate to server with  as cyrus

Am I missing something obious? Sorry I am kinda burned
this has been a rather painful undertaking. Your
suggestion would be greatly appreciated.




--- [EMAIL PROTECTED] wrote:
> chirs charter writes:
> >
> >I just installed Cyrus 2.0.16. on Solaris 8 and I
> am
> >getting the following error when testing
> >
> >catfish# telnet localhost 143
> >Trying 127.0.0.1...
> >Connected to localhost.
> >Escape character is '^]'.
> >ld.so.1: imapd: fatal: libssl.so.0: open failed: No
> >such file or directory
> >Connection closed by foreign host.
> >
> >I have openssl installed 0.9.6 in:
> >/usr/local/ssl
> 
> This sounds like cyrus imapd is built incorrectly. 
> It should
> have a built-in library search path that includes
> the directory
> where the SSL libraries are installed.  You can look
> at the needed
> libraries and the run path with `dump -Lv imapd'.
> 
> When you configure Cyrus, it sets the run path to
> /usr/local/lib.
> You can either install the dynamic libraries there,
> or rebuild
> Cyrus with a different run path.  One way to dos
> this is:
> 
>   env LDFLAGS="-R/usr/local/whatever" ./configure
> 
> 
> -- 
> -Gary Mills--Unix Support--U of M Academic
> Computing and Networking-


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



More Re: libssl.so.0

2001-08-14 Thread chirs charter

Here is the othe strange thing wich is more than
likely related:

saslpasswd -c cyrus

Then I get this error:



Aug 14 18:10:21 catfish saslpasswd[29902]: failed to
set plaintext secret for cy
rus: requested change was not needed

Can't find much in the archives about this. My
/etc/imapd.conf looks like the following:

catfish# cat /etc/imapd.conf
configdirectory: /var/imap
partition-default: /opt/data/mailstore
admins: cyrus
sasl_pwcheck_method: sasldb
autocreatequota:1
Thanks

--- chirs charter <[EMAIL PROTECTED]> wrote:
> Thanks it looks like the Solais package instlls into
> /usr/local/ssl for some backward comaptability
> reason
> so using you suggestion helped thanks. Have you seen
> this before, I can run "saslpasswd -u cyrus" to add
> a
> password for the admin cyrus and it accepts a new
> password however if I run cyradm after setting up
> user
> cyrus password I get the following :
> 
> cyradm -u cyrus localhost
> cyradm: cannot authenticate to server with  as cyrus
> 
> Am I missing something obious? Sorry I am kinda
> burned
> this has been a rather painful undertaking. Your
> suggestion would be greatly appreciated.
> 
> 
> 
> 
> --- [EMAIL PROTECTED] wrote:
> > chirs charter writes:
> > >
> > >I just installed Cyrus 2.0.16. on Solaris 8 and I
> > am
> > >getting the following error when testing
> > >
> > >catfish# telnet localhost 143
> > >Trying 127.0.0.1...
> > >Connected to localhost.
> > >Escape character is '^]'.
> > >ld.so.1: imapd: fatal: libssl.so.0: open failed:
> No
> > >such file or directory
> > >Connection closed by foreign host.
> > >
> > >I have openssl installed 0.9.6 in:
> > >/usr/local/ssl
> > 
> > This sounds like cyrus imapd is built incorrectly.
> 
> > It should
> > have a built-in library search path that includes
> > the directory
> > where the SSL libraries are installed.  You can
> look
> > at the needed
> > libraries and the run path with `dump -Lv imapd'.
> > 
> > When you configure Cyrus, it sets the run path to
> > /usr/local/lib.
> > You can either install the dynamic libraries
> there,
> > or rebuild
> > Cyrus with a different run path.  One way to dos
> > this is:
> > 
> > env LDFLAGS="-R/usr/local/whatever" ./configure
> > 
> > 
> > -- 
> > -Gary Mills--Unix Support--U of M Academic
> > Computing and Networking-
> 
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> http://phonecard.yahoo.com/


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



"sticky" cyradm and quota

2001-08-14 Thread John C. Amodeo

I got a weird problem here and I wanted to see if anyone else has
experienced similar problems.

My current config is 2.0.16 / RH 7.1 / 2.4.3-12 kernel

Once in a while, when a user goes to copy a message from their Inbox to
a subfolder, it locks their IMAP session,  After closing the mail client
(Webmail or Netscape Messenger), when they log back in, now they cannot
delete any messages in any of their folders, and, in addition, they
cannot write to any folders under their account.  Furthermore, Postfix
starts deferring mail because it cannot write to the users Inbox either.

No problem I figure - run a reconstruct or a quota fix and everything
should be fine.  Not exactly - when you run the reconstruct, it will
pause indefinitely on the folder where the message they were trying to
copy was located.  The only way to have reconstruct continue is if I
manually delete the cyrus.cache, cyrus.header, and the cyrus.index in
this folder  and restart the reconstruct command.  Now it will continue
past this folder until it gets to the folder where the message was
getting copied into.  Once again, I need to delete the cyrus.cache,
cyrus.header, and the cyrus.index in this folder, and restart
reconstruct.  When reconstruct successfully completes, the user still
sees the same problems deleting mail and Postfix still cannot deliver.

It is almost as if Cyrus, or some other process, has a "lock" on the
account.  The only way to rectify the problem is to restart the master
process, which wouldn't be a problem if everyone else didn't get kicked
off of the system when you do.

Has anyone experienced a similar problem?  Does anyone have any ideas?

Thanks -John




Re: mailbox deletion

2001-08-14 Thread Ken Murchison

Darin,

The 'c' right is overloaded for deletion of a mailbox.  I usually set
the ACL to 'cdwa' for the cyrus user, but 'c' should be all that's
necessary.  Give me a call tomorrow if you still have problems.

Ken


Darin Perusich wrote:
> 
> hello,
> 
> i'm setting up an cyrus imap server on a linux server running redhat 7.1
> and i'm running into a snag. so far things have gone as well as can be
> expected, the server is up and running and talking to sendmail. i've
> created a test user mailbox, user.test and i'm able to connect to this
> mailbox using passwd (NIS+) for authentication. i'm able to run cyradm
> -u cyrus localhost and admin the mailboxes. when i try deleting
> mailboxes i'm getting permission denied. i know that i have to set
> explicit delete perm for the admin users, which i did with setaclmailbox
> cyrus cyrus d;  permission on both /var/imap and /var/spool/imap are
> good:
> 
> drwxr-x---   11 cyrusmail 4096 Aug 14 11:26 /var/imap/
> drwxr-x---5 cyrusmail 4096 Aug 14 16:22 /var/spool/imap/
> 
> i'm getting the following in the imapd.log when i try and delete
> 
> Aug 14 17:33:32 seawolf imapd[29212]: myfetch: starting txn 2147483795
> Aug 14 17:33:32 seawolf imapd[29212]: abort_txn: aborting txn 2147483795
> 
> at this point i'm unsure of where to go next. everything i've seen on
> the net points to permission problems but that's not it. i compiled the
> code from source also.
> 
> also, when i run cyradm it tries to authentice to DIGEST-MD5, not passwd
> as i have imapd configured. why is that?
> 
> --
> Darin Perusich
> Unix Administrator
> Cognigen Corp.
> [EMAIL PROTECTED]

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



Deliver to subfolder containing spaces

2001-08-14 Thread Lisa Maira

Can anyone point us to how to directly call deliver to deliver a message
to a subfolder containing spaces?

We're running 2.0.16.

deliver -m "folder with spaces" -a user user < foo

worked under 1.6.24

It exits 65 under 2.0.16.

Please CC any replies to: [EMAIL PROTECTED]

Thanks for your help,

Lisa Maira



moving to Cyrus

2001-08-14 Thread avl

 Hello all 

 It seemes I have successfully installed Cyrus on my test system.
 Before I do it on my working system I need to know what problems may
encounter when moving to Cyrus mailer on system with about 300
standard users ,whose mail is lying in /var/spool/mqueue
/var/spool/mail etc. 
 Should I create every user and set his password([quota]) manually, or
there is a way to do it easier and automatically , taking usernames and
their passwords from the passwd & shadow ?  And , of course, it's
necessary to move messages in their old mailboxes to the new ones.

Regards,
andrei