[no subject]

2004-05-20 Thread Tony
Hello,

I've been having a problem with sieve and was hoping someone on this list
might be able to help. I have managed to get sieve to work with all the
filtering commands, except "fileinto".

Software Versions:
--
Cyrus Imap 2.2.4
Cyrus Sasl 2.1.18
Postfix 2.1
FreeBSD 5.2.1-Release-p6

Following are the relevant parts of my imapd.conf:
--
unixhierarchysep: yes
altnamespace: no
duplicatesuppression: yes
sieveusehomedir: false
sievedir: /var/imap/sieve

This is the content of my sieve script using "fileinto".

require ["fileinto","reject"];

if
header :contains "Subject" "testing"
{
fileinto "INBOX/Junk";
}

Here is the debug output from Cyrus:
---
May 19 23:26:06 mail master[41279]: about to exec /usr/local/cyrus/bin/lmtpd
May 19 23:26:06 mail lmtpunix[41279]: executed
May 19 23:26:06 mail lmtpunix[41279]: accepted connection
May 19 23:26:06 mail lmtpunix[41279]: lmtp connection preauth'd as postman
May 19 23:26:06 mail lmtpunix[41279]: duplicate_check:
<[EMAIL PROTECTED]> user.test^mydomain^com.Junk 0
May 19 23:26:06 mail lmtpunix[41279]: duplicate_check:
<[EMAIL PROTECTED]> user.test^mydomain^com 0
May 19 23:26:06 mail lmtpunix[41279]: mystore: starting txn 2147483772
May 19 23:26:06 mail lmtpunix[41279]: mystore: committing txn 2147483772
May 19 23:26:06 mail lmtpunix[41279]: duplicate_mark:
<[EMAIL PROTECTED]> user.test^mydomain^com 1085034366
2


Any help would greatly be appreciated.

Thank you,
Tony

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

2004-05-20 Thread Tony
Hello,

Sorry about posting this earlier without a subject.

I've been having a problem with sieve and was hoping someone on this list
might be able to help. I have managed to get sieve to work with all the
filtering commands, except "fileinto".

Software Versions:
--
Cyrus Imap 2.2.4
Cyrus Sasl 2.1.18
Postfix 2.1
FreeBSD 5.2.1-Release-p6

Following are the relevant parts of my imapd.conf:
--
unixhierarchysep: yes
altnamespace: no
duplicatesuppression: yes
sieveusehomedir: false
sievedir: /var/imap/sieve

This is the content of my sieve script using "fileinto".

require ["fileinto","reject"];

if
header :contains "Subject" "testing"
{
fileinto "INBOX/Junk";
}

Here is the debug output from Cyrus:
---
May 19 23:26:06 mail master[41279]: about to exec
/usr/local/cyrus/bin/lmtpd
May 19 23:26:06 mail lmtpunix[41279]: executed
May 19 23:26:06 mail lmtpunix[41279]: accepted connection
May 19 23:26:06 mail lmtpunix[41279]: lmtp connection preauth'd as postman
May 19 23:26:06 mail lmtpunix[41279]: duplicate_check:
<[EMAIL PROTECTED]> user.test^mydomain^com.Junk 0 May
19 23:26:06 mail lmtpunix[41279]: duplicate_check:
<[EMAIL PROTECTED]> user.test^mydomain^com 0
May 19 23:26:06 mail lmtpunix[41279]: mystore: starting txn 2147483772 May
19 23:26:06 mail lmtpunix[41279]: mystore: committing txn 2147483772 May
19 23:26:06 mail lmtpunix[41279]: duplicate_mark:
<[EMAIL PROTECTED]> user.test^mydomain^com 1085034366 2






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


ACL - giving everyone access in one step

2004-05-20 Thread David Hearn




We're investigating the Toltec Connector for Outlook.  
This allows an IMAP server (Cyrus in our situation) to give near MS Exchange 
functionality.  Calendars can be shared, however they currently require 
each user to share their own calendar by manually typing in the users they 
want to share it with.  For a 40 user company this could potentially be a 
large task not to mention possible errors with entry.
 
Does cyrus support an 'everyone' option, where I could set it 
so that everyone's Calendar folder is visible to anyone authenticated to our 
server?  As far as I've seen so far (which is brief!) it seems to be on a 
per-user basis.  We're using Web-cyradm and MySQL for user details, so 
potentially a script could be written to suck out all account names and on a 
cron job update the ACLs for everyone to include everyone - but I see that as a 
messy kludge.
 
Thanks
 
David


Re: ACL - giving everyone access in one step

2004-05-20 Thread Sebastian Hagedorn
-- David Hearn <[EMAIL PROTECTED]> is rumored to have mumbled on 
Donnerstag, 20. Mai 2004 10:13 Uhr +0100 regarding ACL - giving everyone 
access in one step:

Does cyrus support an 'everyone' option, where I could set it so that
everyone's Calendar folder is visible to anyone authenticated to our
server?
Yes, it's called 'anyone' ... you have to set up the ACL so that the 
pseudouser 'anyone' has the necessary permissions.
--
Sebastian Hagedorn M.A. - RZKR-R1 (Flachbau), Zi. 18, Robert-Koch-Str. 10
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
Universität zu Köln / Cologne University - Tel. +49-221-478-5587

pgpLXhoTZLzU1.pgp
Description: PGP signature


Re: sendmail hooks for pre-checking of over-quota imap users?

2004-05-20 Thread Andrzej Filip
Ken Murchison wrote:
Andrzej Filip wrote:
Ken Murchison wrote:
[...]
FYI, smmapd does the correct thing for over quota (at least the CVS 
version does):

[EMAIL PROTECTED] temp]# ./socketmapClient.pl unix:/var/imap/socket/smmap 
cyrus test
test => TEMP Over quota
I have seen 2.2.3 code which appears to do "the right thing".
FYI I have asked on news:comp.mail.sendmail how to make "temp 
explanation string" available in sendmail.cf (so e.g. sendmail.cf can 
send 5?? replies in over quota situations - some postmaster *want* 5?? 
for over quota).
Set lmtp_over_quota_perm_failure in imapd.conf and smmapd will return a 
PERM failure instead of TEMP for over quota.
Makking sendmail pass TEMP & PERM "explanation strings" to sendmail.cf 
is a good idea nyway (IMHO). I hope sendmail will fix it before non beta 
release of sendmail-8.13.

--
Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED]
http://anfi.homeunix.net/ http://slashdot.org/~anfi
---
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: sendmail hooks for pre-checking of over-quota imap users?

2004-05-20 Thread Andrzej Filip
Didi Rieder wrote:
--On Wednesday, May 19, 2004 03:14:38 PM -0400 Ken Murchison 
<[EMAIL PROTECTED]> wrote:

[EMAIL PROTECTED] tmp]# ./socketmapClient.pl unix:/var/imap/socket/smmapd
cyrus koarl
koarl => PERM Over quota

Check your imapd.conf.  My guess is that you have
lmtp_over_quota_perm_failure enabled.  If not, then you have an
old/broken version of smmapd.

You are right, if I disable it then I get:
[EMAIL PROTECTED] init.d]# /tmp/socketmapClient.pl 
unix:/var/imap/socket/smmapd cyrus koarl
koarl => TEMP Over quota

BTW, this is cyurs-2.2.4
Now sendmail says:
[EMAIL PROTECTED] init.d]# /usr/lib/sendmail -d60.1 -bv [EMAIL PROTECTED]
map_lookup(dequote, root) => NOT FOUND (0)
map_lookup(dequote, koarl) => NOT FOUND (0)
map_lookup(user, koarl) => NOT FOUND (67)
map_lookup(cyrus, koarl) => NOT FOUND (75)
map_lookup(cyrus, koarl) tempfail: errno=0
[EMAIL PROTECTED] deliverable: mailer local, user koarl
[EMAIL PROTECTED] init.d]# telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 zidd-198.tu-graz.ac.at ESMTP server ready at Wed, 19 May 2004 
21:27:32 +0200 (CEST)
helo localhost
250 zidd-198.tu-graz.ac.at Hello localhost [127.0.0.1], pleased to meet you
mail from: <>
250 2.1.0 <>... Sender ok
rcpt to: <[EMAIL PROTECTED]>
250 2.1.5 <[EMAIL PROTECTED]>... Recipient ok (will queue)

But there is no local user "koarl". I'd like that sendmail does not 
queue for users that are over quota. Sendmail also queues if cyrus 
(smmapd) is not running, I'd like it to TEMPFAIL and reject messages.
Could you post the following info:
a) Cyru map specification from sendmail.cf
grep Kcyrus /etc/mail/sendmail.cf
b) versions of mrs* features used in your sendmail.cf
grep ": mrs" /etc/mail/sendmail.cf
The latest versions should produce:
#  $Id: mrs.m4,v 8.3 2004/03/18 21:39:22 anfi Exp $  #
#  $Id: mrs_cyrus.m4,v 8.7 2004/04/01 14:29:50 anfi Exp $  #
--
Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED]
http://anfi.homeunix.net/ http://slashdot.org/~anfi
---
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 Imapd Experiences

2004-05-20 Thread AJ
Hello,  I am about to rollout Cyrus imapd 2.2.4 for about 8-10k
accounts.I was just looking for any horror stories, sage advice before I
begin.I have been testing Cyrus in a semi-production environment now for
several months, and all seems well.  My concerns are as follows:- Has
anyone had any problems with database corruption of any sort?  I will be using
bdb 4.2.x.. If so, how did you solve it.-  Any strange and odd errors or
problems?My environment is Red Hat Linux with about 4GB of ram and
ample RAID 5 storage.Thanks in advance.AJ


Re: sendmail hooks for pre-checking of over-quota imap users?

2004-05-20 Thread Didi Rieder
--On Thursday, May 20, 2004 11:40:05 AM +0200 Andrzej Filip 
<[EMAIL PROTECTED]> wrote:

Could you post the following info:
a) Cyru map specification from sendmail.cf
grep Kcyrus /etc/mail/sendmail.cf
[EMAIL PROTECTED] root]# grep Kcyrus /etc/mail/sendmail.cf
Kcyrus socket -a -T local:/var/imap/socket/smmapd
b) versions of mrs* features used in your sendmail.cf
grep ": mrs" /etc/mail/sendmail.cf
The latest versions should produce:
#  $Id: mrs.m4,v 8.3 2004/03/18 21:39:22 anfi Exp $  #
#  $Id: mrs_cyrus.m4,v 8.7 2004/04/01 14:29:50 anfi Exp $  #

[EMAIL PROTECTED] root]# grep ": mrs" /etc/mail/sendmail.cf
#  $Id: mrs.m4,v 8.3 2004/03/18 21:39:22 anfi Exp $  #
#  $Id: mrs_cyrus.m4,v 8.7 2004/04/01 14:29:50 anfi Exp $  #
Didi
--
-
Didi Rieder
[EMAIL PROTECTED]
PGPKey ID: 3431D0B0
-

pgpKYoJfhnJEx.pgp
Description: PGP signature


Cyradm

2004-05-20 Thread Kent L. Nasveschuk
Hello,
I have yet to get cyradm working on v 2.2.3 or the recent 2.2.4. Anyone
out there resolve the undefined symbol db_version problem that
accompanies cyradm?

I've tried 2 installations on RedHat 8.0 and 1 on Slackware 9.0 with the
same problems. I've read a good deal of postings on this problem but
everyting up until now has not worked.


-- 
Kent L. Nasveschuk <[EMAIL PROTECTED]>

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

2004-05-20 Thread Chris Harms
I seem to recall getting this one on a few occasions...at least one time 
it wasn't finding my DB library.  Run ldd on IMAP.so in the perl 
directory and see if it found DB.  If not you'll need to reconfigure 
using some of the following configure options setting DIR as appropriate.

--with-bdb=DIR  use Berkeley DB (in DIR) [yes]
--with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
--with-bdb-incdir=DIR   Berkeley DB include files are in DIR
Chris
Kent L. Nasveschuk wrote:
Hello,
I have yet to get cyradm working on v 2.2.3 or the recent 2.2.4. Anyone
out there resolve the undefined symbol db_version problem that
accompanies cyradm?
I've tried 2 installations on RedHat 8.0 and 1 on Slackware 9.0 with the
same problems. I've read a good deal of postings on this problem but
everyting up until now has not worked.
 


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

2004-05-20 Thread Simon Matter
> Hello,
>   I am about to rollout Cyrus imapd 2.2.4 for about 8-10kaccounts.
> I was just looking for any horror stories, sage advice before Ibegin.
> I have been testing Cyrus in a semi-production environment now
> forseveral months, and all seems well.  My concerns are as follows:
> - Hasanyone had any problems with database corruption of any sort?  I
> will be usingbdb 4.2.x.. If so, how did you solve it.
> -  Any strange and odd errors orproblems?

I recommend you are using skiplist where it is the default now with 2.2.x.
BDB can lead you to horror stories as a quick search on this ML may reveal
to you.

Simon

>
> My environment is Red Hat Linux with about 4GB of ram andample RAID 5
> storage.
>
> Thanks in advance.
>
> AJ
>
>


---
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: Please help

2004-05-20 Thread Grazvydas_Govaras

Hello,

I have the same problem on AIX 5.2. Configure for cyrus-sasl-2.1.18 and 
cyrus-imapd-2.2.3
cannot find Berkeley DB 4.2. I used switch --with-bdb-libdir but this not helps.
I do not have a lot of experience in compiling. So any comments or suggestions will be 
highly appreciated.
Thank you in advance.


Grazvydas






   
 
  "Fatemeh Taj"
 
  <[EMAIL PROTECTED]>  To:   [EMAIL PROTECTED] 
  
  Sent by:  cc:   [EMAIL PROTECTED]
   
  [EMAIL PROTECTED]Subject:  Please help   

  rew.cmu.edu  
 
   
 
   
 
  2004.05.12 08:54 
 
   
 
   
 




Dear All,
I want move to cyrus imapd 2.2.3 with sasl2.0.18 and Berkeley DB4.2.1 on
Linux Redhat Enterprise 3.
The problem is that cyrus sasl does not find or has problem Berkeley DB 4.
It finds db.h form BerkeleyDB_src/include but has probem with db_create
and db_open in configuraetion step. I searched the mailing list archive
and google, there was such problems but I could not find the answer. (Also
I did reinstalled my BDBD with --without-uniquename flag but itdoesno't
help)

Any comment is highly appriciated.

Here is the logs :

in configure.log

configure:6026: gcc -o conftest -Wall -W -g -O2
-I/usr/local/BerkeleyDB.4.2/include  conftest.c -ldb
-L/usr/local/BerkeleyDB.4.2/lib  -Wl,-rpath,/usr/local/BerkeleyDB.4.2/lib
>&5
/tmp/ccey6P67.o(.text+0xa): In function `main':
/usr/local/src/cyrus-sasl-2.1.18/configure:6036: undefined reference to
`db_open'
/usr/local/BerkeleyDB.4.2/lib/libdb.so: undefined reference to
`pthread_condattr_setpshared'
/usr/local/BerkeleyDB.4.2/lib/libdb.so: undefined reference to
`pthread_mutexattr_destroy'
/usr/local/BerkeleyDB.4.2/lib/libdb.so: undefined reference to
`pthread_mutexattr_setpshared'
/usr/local/BerkeleyDB.4.2/lib/libdb.so: undefined reference to
`pthread_mutexattr_init'
/usr/local/BerkeleyDB.4.2/lib/libdb.so: undefined reference to
`pthread_mutex_trylock'


and the output in configuration step:

checking for db_create in -ldb42... no
checking for db_create in -ldb-4.1... no
checking for db_create in -ldb4.1... no
checking for db_create in -ldb41... no
checking for db_create in -ldb-4.0... no
checking for db_create in -ldb4.0... no
checking for db_create in -ldb-4... no
checking for db_create in -ldb40... no
checking for db_create in -ldb4... no
checking for db_create in -ldb-3.3... no
checking for db_create in -ldb3.3... no
checking for db_create in -ldb33... no
checking for db_create in -ldb-3.2... no
checking for db_create in -ldb3.2... no
checking for db_create in -ldb32... no
checking for db_create in -ldb-3.1... no
checking for db_create in -ldb3.1... no
checking for db_create in -ldb31... no
checking for db_create in -ldb-3... no
checking for db_create in -ldb30... no
checking for db_create in -ldb3... no
checking for db_create in -ldb... no
checking for db_open in -ldb... no


Regards
--F. Taj
---
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 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 Imapd Experiences

2004-05-20 Thread AJ
Thanks.  How can I determine what the current database types are for the
various functions?  I am running 2.2.4 w/ no changes to the defaults.
Here is my imapd.conf file:
configdirectory: /imapdb/cyrus/imap
partition-default: /imapdb/cyrus/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN LOGIN
altnamespace: yes
unixhierarchysep: yes
Thanks.
AJ
Quoting Simon Matter :
I recommend you are using skiplist where it isthe default now with
2.2.x.
BDB can lead you to horror stories as aquick search on this ML may
reveal
to you.
Simon

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

2004-05-20 Thread Kent L. Nasveschuk
First installation I used the stock Berkeley DBs. Then I tryed this
after installing BerkeleyDB 4.2.52. I used the following command line
options on configure:

--with-bdb=/usr/local/BerkeleyDB.4.2
--with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib
--with-bdb-inc=/usr/local/BerkeleyDB.4.2/inc
--disable-krb4


It compiles and starts, but cyradm refuses to function. Running ldd on
IMAP.so got:

ldd IMAP.so
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x4001e000)
libssl.so.2 => /lib/libssl.so.2 (0x40032000)
libcrypto.so.2 => /lib/libcrypto.so.2 (0x40062000)
libc.so.6 => /lib/i686/libc.so.6 (0x4200)
libdl.so.2 => /lib/libdl.so.2 (0x40136000)
libresolv.so.2 => /lib/libresolv.so.2 (0x40139000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x4014b000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x8000)

How do I force to find the libraries?


On Thu, 2004-05-20 at 10:57, Chris Harms wrote:
> I seem to recall getting this one on a few occasions...at least one time 
> it wasn't finding my DB library.  Run ldd on IMAP.so in the perl 
> directory and see if it found DB.  If not you'll need to reconfigure 
> using some of the following configure options setting DIR as appropriate.
> 
> --with-bdb=DIR  use Berkeley DB (in DIR) [yes]
> --with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
> --with-bdb-incdir=DIR   Berkeley DB include files are in DIR
> 
> Chris
> 
> Kent L. Nasveschuk wrote:
> 
> >Hello,
> >I have yet to get cyradm working on v 2.2.3 or the recent 2.2.4. Anyone
> >out there resolve the undefined symbol db_version problem that
> >accompanies cyradm?
> >
> >I've tried 2 installations on RedHat 8.0 and 1 on Slackware 9.0 with the
> >same problems. I've read a good deal of postings on this problem but
> >everyting up until now has not worked.
> >
> >
> >  
> >
-- 
Kent L. Nasveschuk <[EMAIL PROTECTED]>

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

2004-05-20 Thread Simon Matter
> Thanks.  How can I determine what the current database types are for the
> various functions?  I am running 2.2.4 w/ no changes to the defaults.

Okay, that's fine. From what I know you can only look up the defaults in
the sources. However, until you configure pther db's in imapd.conf, you
are always using the defaults which should be fine. IIRC the mailboxes db
is skiplist that way, which is the most import db.

Simon

> Here is my imapd.conf file:
>
> configdirectory: /imapdb/cyrus/imap
> partition-default: /imapdb/cyrus/spool/imap
> admins: cyrus
> sievedir: /var/lib/imap/sieve
> sendmail: /usr/sbin/sendmail
> hashimapspool: true
> sasl_pwcheck_method: saslauthd
> sasl_mech_list: PLAIN LOGIN
> altnamespace: yes
> unixhierarchysep: yes
>
> Thanks.
> AJ
>
> Quoting Simon Matter :
>
>> I recommend you are using skiplist where it isthe default now with
> 2.2.x.
>> BDB can lead you to horror stories as aquick search on this ML may
> reveal
>> to you.
>>
>> Simon
>
>


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

2004-05-20 Thread Chris Harms
I think I went down that road once also.  In my experience, the cyrus 
configure/build process likes to ignore things from time to time.  Try 
setting the LD_LIBRARY_PATH or putting it in ld.so.conf but that's just 
a guess.

chris
Kent L. Nasveschuk wrote:
First installation I used the stock Berkeley DBs. Then I tryed this
after installing BerkeleyDB 4.2.52. I used the following command line
options on configure:
--with-bdb=/usr/local/BerkeleyDB.4.2
--with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib
--with-bdb-inc=/usr/local/BerkeleyDB.4.2/inc
--disable-krb4
It compiles and starts, but cyradm refuses to function. Running ldd on
IMAP.so got:
ldd IMAP.so
   libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x4001e000)
   libssl.so.2 => /lib/libssl.so.2 (0x40032000)
   libcrypto.so.2 => /lib/libcrypto.so.2 (0x40062000)
   libc.so.6 => /lib/i686/libc.so.6 (0x4200)
   libdl.so.2 => /lib/libdl.so.2 (0x40136000)
   libresolv.so.2 => /lib/libresolv.so.2 (0x40139000)
   libcrypt.so.1 => /lib/libcrypt.so.1 (0x4014b000)
   /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x8000)
How do I force to find the libraries?
On Thu, 2004-05-20 at 10:57, Chris Harms wrote:
 

I seem to recall getting this one on a few occasions...at least one time 
it wasn't finding my DB library.  Run ldd on IMAP.so in the perl 
directory and see if it found DB.  If not you'll need to reconfigure 
using some of the following configure options setting DIR as appropriate.

--with-bdb=DIR  use Berkeley DB (in DIR) [yes]
--with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
--with-bdb-incdir=DIR   Berkeley DB include files are in DIR
Chris
Kent L. Nasveschuk wrote:
   

Hello,
I have yet to get cyradm working on v 2.2.3 or the recent 2.2.4. Anyone
out there resolve the undefined symbol db_version problem that
accompanies cyradm?
I've tried 2 installations on RedHat 8.0 and 1 on Slackware 9.0 with the
same problems. I've read a good deal of postings on this problem but
everyting up until now has not worked.

 


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


mail server replication

2004-05-20 Thread Gerard Ceraso
I have a server setup using Cyrus 2.1 and postfix, with mysql. What I
would like to have is 2 servers basically the second would be a
replication of the first server. So I would like to be able to connect
to either at any given time and get my mail and the mail being the same
on both mainly for the reason if one was down. Anyone have a suggestion
how I could accomplish this?

Gerard
---
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: cyradm timeout?

2004-05-20 Thread Andrew J Caird
On Wed, 19 May 2004, Bret Hammond wrote:
> On Wed, 19 May 2004, Andrew J Caird wrote:
>
> > I'm installing Cyrus v2.2.3 on Solaris 9 and I've been through the
> > weirdness with imclient.a (see
> > http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&searchterm=imclient&msg=28484)
> > and now I can connect to Cyrus IMAP servers (is there a better
> > solution to this?).  However, in my only test so far: connecting to a
> > Cyrus v2.1.15 server, cyradm appears to timeout after about 5 seconds.
> >
> > Is this normal?  I couldn't find any configuration options in either
> > the cyradm client (Cyrus/IMAP/Shell.pm) or in the server
> > configuration.  It doesn't matter if I type commands or not, it
> > appears to be about a 5 second timeout and the server logs it as a
> > "normal" disconnect.
>
> Andrew,
>
> You might consider grabbing the 2.2.4 code (released yesterday),
> as it seems to have fixed the imclient problem along with some other
> issues.  We are testing Cyrus v2.2.4 on Solaris 9, and noticed a problem
> with cyradm related to the getaddrinfo that comes with the SMCperl pkg.
> After removing the perl package, and recompiling perl from source our
> problems with cyradm went away.  We're able to use cyradm to connect to
> both a 2.2.4 and 2.0.12 server.

Bret,
  Thanks for the tip about SMCperl - compiling my own perl seems to have
fixed the problem with imclient and not being able to connect to any
servers, and there was no need to patch imclient.c.  Too bad about
SMCperl, that's a lot handier than compiling perl from source.
  The problem with the mysterious "5 second timeout" ("truss -d" showed it
to be exactly 5 seconds) seems to have been shell related.  Running it
under tcsh seemed to fix it, although I (unscientifically) changed a few
things at once (edited cyradm and removed the space in the #!/bin/sh
line between "#" and "/", started a tcsh from my bash shell, then exited
back to bash), and now can't get back to the old behavior.
  I hope these notes help someone else.
--
Andrew Caird
---
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: mail server replication

2004-05-20 Thread Paul Dekkers
Gerard,
Gerard Ceraso wrote:
I have a server setup using Cyrus 2.1 and postfix, with mysql. What I
would like to have is 2 servers basically the second would be a
replication of the first server. So I would like to be able to connect
to either at any given time and get my mail and the mail being the same
on both mainly for the reason if one was down. Anyone have a suggestion
how I could accomplish this?
 

I'm not sure about the perfect mechanism to achieve this. I think the 
best workable solution at this moment is to have a disk array with 2 
SCSI interfaces, and connect it to 2 machines. You can't mount a volume 
on both machines read-writeable, so it is impossible to connect to 
"either one". But at least you have a "hot spare" in case something 
happends with the OS or hardware of the first machine, and it is likely 
that your cyrus databases are still ok.

I once just synchronised the cyrus spool directory with something like 
unison, and that was not really the best solution. This bi-directional 
synchronisation works for plain files, but with the database files this 
causes more pain. I assume this works as soon as you reconstruct your 
mailboxes on the failover machine at a crash: at least you have all the 
data "stand by" on another machine.

It would be a bit better if there was something like offlineimap that 
could synchronise a complete spool. With offlineimap you can synchronise 
between two IMAP servers on user-basis. Maybe if offlineimap is 
modified, or if you setup a configuration for each user, you can achieve 
a situation with two identical mail-servers (where you can actually use 
both at the same time).

I hope this kind of functionality comes into cyrus once; I assume it is 
not there yet, I once asked this on the list before ;-) And maybe it 
shouldn't be too difficult, since there is already a synchronisation 
mechanism for NNTP in place, if I'm correct.

Regards,
Paul
---
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 Sieve Problems

2004-05-20 Thread Tony
I have tried the following syntax, but none of them work.

fileinto "INBOX/Junk";

fileinto "INBOX.Junk";

fileinto "Junk";

>
> Just a guess.. How about "Junk" or "INBOX.Junk" ?
>
>


>> fileinto "INBOX/Junk";

---
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: sendmail hooks for pre-checking of over-quota imap users?

2004-05-20 Thread Andrzej Filip
Ken Murchison wrote:
Andrzej Filip wrote:
Ken Murchison wrote:
[...]
FYI, smmapd does the correct thing for over quota (at least the CVS 
version does):

[EMAIL PROTECTED] temp]# ./socketmapClient.pl unix:/var/imap/socket/smmap 
cyrus test
test => TEMP Over quota
I have seen 2.2.3 code which appears to do "the right thing".
FYI I have asked on news:comp.mail.sendmail how to make "temp 
explanation string" available in sendmail.cf (so e.g. sendmail.cf can 
send 5?? replies in over quota situations - some postmaster *want* 5?? 
for over quota).

Set lmtp_over_quota_perm_failure in imapd.conf and smmapd will return a 
PERM failure instead of TEMP for over quota.
It seems that current implementation of socket map *in sendmail* makes 
sendmail.cf see PERM replies as "no match".

--
Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED]
http://anfi.homeunix.net/ http://slashdot.org/~anfi
---
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


It is sendmail's fault [Was: sendmail hooks for pre-checking of over-quota imap users?]

2004-05-20 Thread Andrzej Filip
1) Sendmail "ignores" 4?? error codes selected in localaddr (5) rule set and keeps 
previously selected (local) mailer unchanged.
( default "lmtp_over_quota_perm_failure: 0" )
map_lookup(cyrus, test) => NOT FOUND (75)
map_lookup(cyrus, test) tempfail: errno=0
rewritten as: < error : 5 . 1 . 1 : 550 User unknown > test < @ error : 5 . 1 . 1 : 550 User 
unknown > $| test < TMPF >
-trying rule: < $* > $+ < @ $* > $| $* < TMPF >
-rule matches: $# error $@ 4 . 3 . 0 $: "451 Temporary system failure. Please try again 
later."
rewritten as: $# error $@ 4 . 3 . 0 $: "451 Temporary system failure. Please try again 
later."
rewrite: ruleset mrs_cyrus_user   returns: $# error $@ 4 . 3 . 0 $: "451 Temporary system 
failure. Please try again later."
rewritten as: $# error $@ 4 . 3 . 0 $: "451 Temporary system failure. Please try again 
later."
rewrite: ruleset MailerToTriple   returns: $# error $@ 4 . 3 . 0 $: "451 Temporary system 
failure. Please try again later."
rewritten as: $# error $@ 4 . 3 . 0 $: "451 Temporary system failure. Please try again 
later."
rewrite: ruleset localaddrreturns: $# error $@ 4 . 3 . 0 $: "451 Temporary system 
failure. Please try again later."
test... deliverable: mailer local, user test
2) when cyrus uses "lmtp_over_quota_perm_failure: 1" and returns PERM failure sendmail.cf sees 
it as "user unknown" (no match)
I hope I will publish fixed implementation of socket map over the weekend.
P.S. Excusme my lack of faith in cyrus :-)
--
Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED]
http://anfi.homeunix.net/ http://slashdot.org/~anfi
---
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: Cyradm still not working

2004-05-20 Thread Kent L. Nasveschuk
Hello Chris,
Thanks for trying to help me out on this.
This is what I did again.

Added:
/usr/local/BerkeleyDB.4.2/lib to ld.so.conf then ran ldconfig

Tried to recompile with the following:

export LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib"; ./configure
--with-bdb=/usr/local/BerkeleyDB.4.2
--with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib
--with-bdb-incdir=/usr/local/BerkeleyDB.4.2/inc --disable-krb4

I also went into a subdirectory from the source directory that has
makedepend, compiled that and copied it to /usr/local/bin/makedepend


Same thing. Nothing seems to work. What platform do other people run
Cyrus IMAP on? I never had this many problems trying to to get something
to work as this.



On Thu, 2004-05-20 at 11:47, Chris Harms wrote:
> I think I went down that road once also.  In my experience, the cyrus 
> configure/build process likes to ignore things from time to time.  Try 
> setting the LD_LIBRARY_PATH or putting it in ld.so.conf but that's just 
> a guess.
> 
> chris
> 
> Kent L. Nasveschuk wrote:
> 
> >First installation I used the stock Berkeley DBs. Then I tryed this
> >after installing BerkeleyDB 4.2.52. I used the following command line
> >options on configure:
> >
> >--with-bdb=/usr/local/BerkeleyDB.4.2
> >--with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib
> >--with-bdb-inc=/usr/local/BerkeleyDB.4.2/inc
> >--disable-krb4
> >
> >
> >It compiles and starts, but cyradm refuses to function. Running ldd on
> >IMAP.so got:
> >
> >ldd IMAP.so
> >libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x4001e000)
> >libssl.so.2 => /lib/libssl.so.2 (0x40032000)
> >libcrypto.so.2 => /lib/libcrypto.so.2 (0x40062000)
> >libc.so.6 => /lib/i686/libc.so.6 (0x4200)
> >libdl.so.2 => /lib/libdl.so.2 (0x40136000)
> >libresolv.so.2 => /lib/libresolv.so.2 (0x40139000)
> >libcrypt.so.1 => /lib/libcrypt.so.1 (0x4014b000)
> >/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x8000)
> >
> >How do I force to find the libraries?
> >
> >
> >On Thu, 2004-05-20 at 10:57, Chris Harms wrote:
> >  
> >
> >>I seem to recall getting this one on a few occasions...at least one time 
> >>it wasn't finding my DB library.  Run ldd on IMAP.so in the perl 
> >>directory and see if it found DB.  If not you'll need to reconfigure 
> >>using some of the following configure options setting DIR as appropriate.
> >>
> >>--with-bdb=DIR  use Berkeley DB (in DIR) [yes]
> >>--with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
> >>--with-bdb-incdir=DIR   Berkeley DB include files are in DIR
> >>
> >>Chris
> >>
> >>Kent L. Nasveschuk wrote:
> >>
> >>
> >>
> >>>Hello,
> >>>I have yet to get cyradm working on v 2.2.3 or the recent 2.2.4. Anyone
> >>>out there resolve the undefined symbol db_version problem that
> >>>accompanies cyradm?
> >>>
> >>>I've tried 2 installations on RedHat 8.0 and 1 on Slackware 9.0 with the
> >>>same problems. I've read a good deal of postings on this problem but
> >>>everyting up until now has not worked.
> >>>
> >>>
> >>> 
> >>>
> >>>  
> >>>
> 
> 
> ---
> 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
-- 
Kent L. Nasveschuk <[EMAIL PROTECTED]>

---
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: mail server replication

2004-05-20 Thread Rob Siemborski
On Thu, 20 May 2004, Paul Dekkers wrote:
I hope this kind of functionality comes into cyrus once; I assume it is not 
there yet, I once asked this on the list before ;-) And maybe it shouldn't be 
too difficult, since there is already a synchronisation mechanism for NNTP in 
place, if I'm correct.
This is very hard -- if not impossible -- with only two machines, at the 
very least you'd need three in order to maintain a quorum of what the 
"real view" of the server is --

For example, think about what would happen if there was a network 
partition and two different messages were delivered to the split servers 
at the same time.  It's not an easy problem to solve-- keeping a hot spare 
is definately the way to go.

-Rob
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper
---
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: Cyradm still not working

2004-05-20 Thread Chris Harms
Kent,
Luckly I made some really bad notes when I went through this exact 
problem a few months ago, which basically just tell me that I had problems.
A coworker likes to upgrade our installed packages frequently so I 
really can't say what was installed when I had my ordeal.
I've tried compiling both your way and what I had in my notes on the 
same source tree and machine on which I had the problems but it finds 
the libraries.

After pasting in the info below, I realize now that one problem was that 
my perl installation is in /usr/lib/perl5 but Cyrus by default puts 
things in /usr/local/lib/perl5.  Thus after make install I have to 
manually copy files to the proper location which is irritating.  I think 
I discovered that little nugget on day 2 of my struggle.  If that's not 
your current problem, you'll likely face it when you get past your 
present one.

Sorry I cannot be of any more assistance.  Hopefully some of this is useful.
Chris
My present config is:
./configure \
--with-cyrus-prefix=/usr/cyrus \
--with-openssl=/usr/local/ssl \
--with-bdb=skiplist \
--with-auth=unix
Have compiled SASL as follows:
./configure --disable-krb4 \
--disable-gssapi \
--enable-login \
--enable-plain \
--disable-anon \
--disable-otp \
--enable-sql \
--without-saslauthd \
--without-des \
--without-pam \
--without-opie \
--with-openssl=/usr/local/ssl \
--with-pgsql=/usr/local/pgsql \
--with-mysql=/usr/local/mysql
We run slackware 9.1 current package list includes:
aaa_base-9.1.0-noarch-2
aspell-0.50.5-i486-1
aspell-en-0.51_0-noarch-1
autoconf-2.59-noarch-1
automake-1.8.4-noarch-1
bash-2.05b-i486-3
bc-1.06-i386-2
bin-9.0.0-i486-2
binutils-2.15.90.0.3-i486-1
bison-1.875-i386-1
byacc-1.9-i386-1
bzip2-1.0.2-i486-5
coreutils-5.2.1-i486-1
cvs-1.11.15-i486-1
db4-4.2.52-i486-1
dcron-2.3.3-i386-4
devfsd-1.3.25-i386-2
devs-2.3.1-noarch-20
dhcp-3.0pl2-i386-1
dhcpcd-1.3.22pl4-i386-1
diffutils-2.8.1-i386-1
e2fsprogs-1.35-i486-1
elflibs-9.1.0-i486-2
elvis-2.2_0-i486-2
etc-5.1-noarch-7
expat-1.95.7-i486-1
expect-5.41.0-i486-1
findutils-4.1.7-i386-1
flex-2.5.4a-i486-2
floppy-5.4-i386-3
gawk-3.1.3-i486-1
gcc-3.4.0-i486-1
gcc-g++-3.3.3-i486-1
gcc-g++-3.4.0-i486-1
gettext-0.14.1-i486-1
gettext-tools-0.14.1-i486-2
glibc-2.3.2-i486-5
glibc-solibs-2.3.2-i486-5
glibc-zoneinfo-2.3.2-noarch-5
gmp-4.1.3-i486-2
gnupg-1.2.4-i486-1
grep-2.5-i386-2
groff-1.17.2-i386-3
guile-1.6.4-i486-1
gzip-1.3.3-i386-2
infozip-5.50-i486-2
j2sdk-1_4_2_04-i586-3
less-382-i486-1
libpng-1.2.5-i486-2
libtool-1.5.6-i486-1
libxml2-2.6.9-i486-1
libxslt-1.1.6-i486-1
logrotate-3.6.8-i486-1
lynx-2.8.5rel.1-i486-2
m4-1.4-i386-2
make-3.80-i386-1
man-1.5m2-i486-1
man-pages-1.60-noarch-1
ncftp-3.1.7-i486-1
ncurses-5.4-i486-2
nmap-3.50-i486-1
openssh-3.8p1-i486-1
pciutils-2.1.11-i486-5
pcre-4.5-i486-1
perl-5.8.4-i486-1
pine-4.60-i486-1
pkgconfig-0.15.0-i486-1
pkgtools-9.1.3-i486-1
pmake-2.1.35-i386-2
popt-1.7-i386-1
procmail-3.15.2-i386-1
procps-2.0.18-i486-1
python-2.3.3-i486-2
quota-3.09-i486-1
raidtools-1.00.3-i386-1
readline-4.3-i486-3
reiserfsprogs-3.6.14-i486-1
rsync-2.6.2-i486-1
sed-4.0.9-i486-2
sendmail-8.12.10-i486-1
shadow-4.0.3-i486-8
slocate-2.7-i486-2
strace-4.5.2-i486-1
stunnel-4.05-i486-1
sysklogd-1.4.1-i486-9
syslinux-2.09-i486-1
sysvinit-2.84-i486-39
tar-1.14-i486-1
tcl-8.4.6-i486-1
tclx-8.3.5-i386-1
tcpdump-3.8.3-i486-2
tcpip-0.17-i486-26
tk-8.4.6-i486-1
traceroute-1.4a12-i386-2
utempter-1.1.1-i486-1
util-linux-2.12-i486-1
vim-6.2.393-i486-1
wget-1.9.1-i486-1

Kent L. Nasveschuk wrote:
Hello Chris,
Thanks for trying to help me out on this.
This is what I did again.
Added:
/usr/local/BerkeleyDB.4.2/lib to ld.so.conf then ran ldconfig
Tried to recompile with the following:
export LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib"; ./configure
--with-bdb=/usr/local/BerkeleyDB.4.2
--with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib
--with-bdb-incdir=/usr/local/BerkeleyDB.4.2/inc --disable-krb4
I also went into a subdirectory from the source directory that has
makedepend, compiled that and copied it to /usr/local/bin/makedepend
Same thing. Nothing seems to work. What platform do other people run
Cyrus IMAP on? I never had this many problems trying to to get something
to work as this.

On Thu, 2004-05-20 at 11:47, Chris Harms wrote:
 

I think I went down that road once also.  In my experience, the cyrus 
configure/build process likes to ignore things from time to time.  Try 
setting the LD_LIBRARY_PATH or putting it in ld.so.conf but that's just 
a guess.

chris
Kent L. Nasveschuk wrote:
   

First installation I used the stock Berkeley DBs. Then I tryed this
after installing BerkeleyDB 4.2.52. I used the following command line
options on configure:
--with-bdb=/usr/local/BerkeleyDB.4.2
--with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib
--with-bdb-inc=/usr/local/BerkeleyDB.4.2/inc
--disable-krb4
It compiles and starts, but cyradm refuses to function. Running ldd on
IMAP.so got:
ldd IMAP.so
  libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x4001e000)
  libssl.so.2 => /lib/libssl.so.2

Re: Cyrus Imapd Experiences

2004-05-20 Thread Wil Cooley
On Thu, 2004-05-20 at 08:37, Simon Matter wrote:
> > Thanks.  How can I determine what the current database types are for the
> > various functions?  I am running 2.2.4 w/ no changes to the defaults.
> 
> Okay, that's fine. From what I know you can only look up the defaults in
> the sources. However, until you configure pther db's in imapd.conf, you
> are always using the defaults which should be fine. IIRC the mailboxes db
> is skiplist that way, which is the most import db.

With later 2.1.14 and probably 2.2 you can use the 'version' command
with cyradm to find that stuff out.

Wil
-- 
Wil Cooley  mailto:[EMAIL PROTECTED]
Naked Ape Consultinghttp://nakedape.cc 
* * * * * Portland's Premier Open Source Consultancy * * * * *


signature.asc
Description: This is a digitally signed message part


Re: Cyrus Imapd Experiences

2004-05-20 Thread Andrew J Caird
On Thu, 20 May 2004, Wil Cooley wrote:

> > Okay, that's fine. From what I know you can only look up the defaults
> > in the sources. However, until you configure pther db's in imapd.conf,
> > you are always using the defaults which should be fine. IIRC the
> > mailboxes db is skiplist that way, which is the most import db.
>
> With later 2.1.14 and probably 2.2 you can use the 'version' command
> with cyradm to find that stuff out.

  Uh oh, I don't see any mention of any DB types.  What have I done wrong
now?

localhost> version
name   : Cyrus IMAPD
version: v2.2.4 2004/05/14 20:59:12
vendor : Project Cyrus
support-url: http://asg.web.cmu.edu/cyrus
os : SunOS
os-version : 5.9
environment: Built w/Cyrus SASL 2.1.18
 Running w/Cyrus SASL 2.1.18
 Built w/OpenSSL 0.9.7d 17 Mar 2004
 Running w/OpenSSL 0.9.7d 17 Mar 2004
 CMU Sieve 2.2
 mmap = shared
 lock = fcntl
 nonblock = fcntl
 auth = unix
 idle = poll

--
Andrew Caird
---
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 Imapd Experiences

2004-05-20 Thread Simon Matter
> On Thu, 20 May 2004, Wil Cooley wrote:
>
>> > Okay, that's fine. From what I know you can only look up the defaults
>> > in the sources. However, until you configure pther db's in imapd.conf,
>> > you are always using the defaults which should be fine. IIRC the
>> > mailboxes db is skiplist that way, which is the most import db.
>>
>> With later 2.1.14 and probably 2.2 you can use the 'version' command
>> with cyradm to find that stuff out.
>
>   Uh oh, I don't see any mention of any DB types.  What have I done wrong
> now?

Nothing wrong here. version does not show DB types in 2.2.x.

Simon

>
> localhost> version
> name   : Cyrus IMAPD
> version: v2.2.4 2004/05/14 20:59:12
> vendor : Project Cyrus
> support-url: http://asg.web.cmu.edu/cyrus
> os : SunOS
> os-version : 5.9
> environment: Built w/Cyrus SASL 2.1.18
>  Running w/Cyrus SASL 2.1.18
>  Built w/OpenSSL 0.9.7d 17 Mar 2004
>  Running w/OpenSSL 0.9.7d 17 Mar 2004
>  CMU Sieve 2.2
>  mmap = shared
>  lock = fcntl
>  nonblock = fcntl
>  auth = unix
>  idle = poll
>
> --
> Andrew Caird
> ---
> 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 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 Imapd Experiences

2004-05-20 Thread Andrew J Caird
On Fri, 21 May 2004, Simon Matter wrote:

> > On Thu, 20 May 2004, Wil Cooley wrote:
> >
> >> > Okay, that's fine. From what I know you can only look up the defaults
> >> > in the sources. However, until you configure pther db's in imapd.conf,
> >> > you are always using the defaults which should be fine. IIRC the
> >> > mailboxes db is skiplist that way, which is the most import db.
> >>
> >> With later 2.1.14 and probably 2.2 you can use the 'version' command
> >> with cyradm to find that stuff out.
> >
> >   Uh oh, I don't see any mention of any DB types.  What have I done wrong
> > now?
>
> Nothing wrong here. version does not show DB types in 2.2.x.

Thanks Simon - I feel better.  I guess that's why Wil said "probably".
Too bad, it would be nice to see the DB types...
--
Andrew Caird
---
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-2.2.3 + cyrus-sasl + ldap problem

2004-05-20 Thread Andrew B. Panphiloff
I have strange  behaviour of cyrus-imapd and cyrus-sasl.

imapd config :

--
tls_ca_file: /etc/ssl/cyrus.pem
tls_cert_file: /etc/ssl/cyrus.pem
tls_key_file: /etc/ssl/cyrus.pem
virtdomains: yes
defaultdomain: localhost
configdirectory: /var/imap
partition-default: /var/spool/imap
sievedir: /var/imap/sieve
altnamespace: no
unixhierarchysep: no
lmtp_downcase_rcpt: yes
admins: cyrus
allowanonymouslogin: no
popminpoll: 0
autocreatequota: 10
createonpost: yes
autocreateinboxfolders: Sent | Drafts | Templates | Trash
autosubscribeinboxfolders: Sent | Drafts
umask: 077
sieveusehomedir: false
hashimapspool: true
allowplaintext: yes
sasl_mech_list: plain login
sasl_minimum_layer: 0
sasl_pwcheck_method: saslauthd
sasl_auto_transition: no
tls_ca_path: /etc/ssl/certs
tls_session_timeout: 1440
tls_cipher_list: TLSv1:SSLv3:SSLv2:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
lmtpsocket: /var/run/cyrus/socket/lmtp
idlesocket: /var/run/cyrus/socket/idle
notifysocket: /var/run/cyrus/socket/notify
---

saslauthd.conf config:

---
ldap_servers: ldap://127.0.0.1
ldap_bind_dn: cn=admin,o=8ka.mipt.ru
ldap_bind_pw: xxx
ldap_version: 3
ldap_search_base: ou=Mail,o=8ka.mipt.ru
ldap_filter: mail=%u
---


when I tries test authentification with  testsaslauthd all works ok 

./testsaslauthd -u [EMAIL PROTECTED] -p xxx
0: OK "Success."

ldap log:

==> ldbm_back_bind: dn: cn=admin,o=8ka.mipt.ru
ldbm_cache_open (blksize 8192) (maxids 1022) (maxindirect 9)
ldbm_cache_open (blksize 8192) (maxids 1022) (maxindirect 9)
send_ldap_result: err=0 matched="" text=""
connection_get(10)
SRCH "ou=Mail,o=8ka.mipt.ru" 2 01 5 0
filter: ([EMAIL PROTECTED])
attrs: dn


saslauthd log:

saslauthd[6918] :do_auth : auth success: [EMAIL PROTECTED]
[service=imap] [realm=] [mech=ldap]
saslauthd[6918] :do_request  : response: OK


but when I tries test authentification with cyrus-imapd I get:


Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK sunduck Cyrus IMAP4 v2.2.3-Gentoo server ready
1 login [EMAIL PROTECTED] xxx
1 NO Login failed: authentication failure


ldap log:

==> ldbm_back_bind: dn: cn=admin,o=8ka.mipt.ru
ldbm_cache_open (blksize 8192) (maxids 1022) (maxindirect 9)
ldbm_cache_open (blksize 8192) (maxids 1022) (maxindirect 9)
send_ldap_result: err=0 matched="" text=""
connection_get(9)
SRCH "ou=Mail,o=8ka.mipt.ru" 2 01 5 0
filter: (mail=jeka)
attrs: dn

saslauthd log:


saslauthd[7158] :do_auth : auth failure: [user=jeka]
[service=imap] [realm=8ka.mipt.ru] [mech=ldap] [reason=Unknown]
saslauthd[7158] :do_request  : response: NO



why in first case saslauthd get "[EMAIL PROTECTED]" and "realm="
but in second case it get "user=jeka" and "realm=8ka.mipt.ru" ?
How fix this behaviour ?



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

2004-05-20 Thread Ken Murchison
Andrew J Caird wrote:
On Fri, 21 May 2004, Simon Matter wrote:

On Thu, 20 May 2004, Wil Cooley wrote:

Okay, that's fine. From what I know you can only look up the defaults
in the sources. However, until you configure pther db's in imapd.conf,
you are always using the defaults which should be fine. IIRC the
mailboxes db is skiplist that way, which is the most import db.
With later 2.1.14 and probably 2.2 you can use the 'version' command
with cyradm to find that stuff out.
 Uh oh, I don't see any mention of any DB types.  What have I done wrong
now?
Nothing wrong here. version does not show DB types in 2.2.x.

Thanks Simon - I feel better.  I guess that's why Wil said "probably".
Too bad, it would be nice to see the DB types...
The DB types aren't shown the in the version info because they are no 
longer compile-time selected, they are run-time selected via imapd.conf. 
 The only stuff listed via the version command (IMAP ID command) are 
compile-time choices.


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

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