Puzzling error with fresh install of 2.3.14

2009-07-09 Thread patrick
I've just installed Cyrus IMAP 2.3.14 on a fresh FreeBSD 7.2 machine,
and I'm getting some puzzling errors when I start up:

Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: archiving database file:
/var/imap/annotations.db
Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: error listing
log files: DB_NOTFOUND: No matching key/data pair found
Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: archive
/var/imap/db: cyrusdb error
Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: error listing
log files: DB_NOTFOUND: No matching key/data pair found
Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: archive
/var/imap/db: cyrusdb error
Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: archiving database file:
/var/imap/mailboxes.db
Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: error listing
log files: DB_NOTFOUND: No matching key/data pair found
Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: archive
/var/imap/db: cyrusdb error
Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: error listing
log files: DB_NOTFOUND: No matching key/data pair found
Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: archive
/var/imap/db: cyrusdb error

I've read some suggestions to change the DB format to skiplist for
everything (and I know this will get around this error), but I'd
really like to figure out what's actually wrong with my setup here. I
installed 2.3.13 on a FreeBSD 7.2 system a few months ago, and didn't
have any problems at all with the exact same settings.

Has anyone seen this before?

Thanks,

Patrick

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Puzzling error with fresh install of 2.3.14

2009-07-09 Thread patrick
Okay, I spotted the difference between my two systems. The first one
running 2.3.13 has BDB 4.2 installed. The second had BDB 4.1, which is
I guess what FreeBSD Ports uses by default if not specified. I
upgraded to 4.2 and compiled Cyrus. All is well.

Patrick


On Thu, Jul 9, 2009 at 4:01 PM, patrick wrote:
> I've just installed Cyrus IMAP 2.3.14 on a fresh FreeBSD 7.2 machine,
> and I'm getting some puzzling errors when I start up:
>
> Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: archiving database file:
> /var/imap/annotations.db
> Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: error listing
> log files: DB_NOTFOUND: No matching key/data pair found
> Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: archive
> /var/imap/db: cyrusdb error
> Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: error listing
> log files: DB_NOTFOUND: No matching key/data pair found
> Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: archive
> /var/imap/db: cyrusdb error
> Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: archiving database file:
> /var/imap/mailboxes.db
> Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: error listing
> log files: DB_NOTFOUND: No matching key/data pair found
> Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: archive
> /var/imap/db: cyrusdb error
> Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: error listing
> log files: DB_NOTFOUND: No matching key/data pair found
> Jul  9 15:40:19 marzipan ctl_cyrusdb[11648]: DBERROR: archive
> /var/imap/db: cyrusdb error
>
> I've read some suggestions to change the DB format to skiplist for
> everything (and I know this will get around this error), but I'd
> really like to figure out what's actually wrong with my setup here. I
> installed 2.3.13 on a FreeBSD 7.2 system a few months ago, and didn't
> have any problems at all with the exact same settings.
>
> Has anyone seen this before?
>
> Thanks,
>
> Patrick
>

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


listmailbox problem

2006-05-16 Thread patrick

I have a Cyrus 2.2.12 server, and I'm having trouble getting the
listmailbox command to return me what I want.

The notable parts of my configuration are:

unixhierarchysep: yes
virtdomains: yes

In the examples from the O'Reilly book on Cyrus
(http://www.oreilly.com/catalog/mimap/chapter/ch09.html), they have:


You can list all the users on the system by listing their top-level mailboxes 
(remember, a > top-level mailbox is essentially the same as a username in the 
Cyrus namespace):

localhost>  listmailbox user.%


But when I run "listmailbox user/%" (because I have the
unixhierarchysep set to yes), I don't get any mailboxes listed.

If I do just a plain "listmailbox", I'll get entries like:

user/mike/[EMAIL PROTECTED] (\HasNoChildren)
user/mike/[EMAIL PROTECTED] (\HasNoChildren)
user/mike/[EMAIL PROTECTED] (\HasNoChildren)
user/[EMAIL PROTECTED] (\HasChildren)
user/[EMAIL PROTECTED] (\HasChildren)
user/patrick/[EMAIL PROTECTED] (\HasNoChildren)
user/patrick/Deleted [EMAIL PROTECTED] (\HasNoChildren)
user/patrick/Deleted [EMAIL PROTECTED] (\HasNoChildren)
user/patrick/[EMAIL PROTECTED] (\HasNoChildren)
user/patrick/Saved [EMAIL PROTECTED] (\HasNoChildren)
user/patrick/Sent [EMAIL PROTECTED] (\HasNoChildren)
user/[EMAIL PROTECTED] (\HasNoChildren)

What I want to be able to get is:

user/[EMAIL PROTECTED] (\HasChildren)
user/[EMAIL PROTECTED] (\HasChildren)
user/[EMAIL PROTECTED] (\HasNoChildren)

Is there something special I need to do because of my configuration?

Thanks,

Patrick

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: listmailbox problem

2006-05-17 Thread patrick

Thanks, that worked for me. I guess it's not possible to list all
users in all domains, but I can work around that.

Patrick

On 5/16/06, Tuan Van <[EMAIL PROTECTED]> wrote:

patrick wrote:
> I have a Cyrus 2.2.12 server, and I'm having trouble getting the
> listmailbox command to return me what I want.
>
> The notable parts of my configuration are:
>
> unixhierarchysep: yes
> virtdomains: yes
>
> In the examples from the O'Reilly book on Cyrus
> (http://www.oreilly.com/catalog/mimap/chapter/ch09.html), they have:
>
>> You can list all the users on the system by listing their top-level
>> mailboxes (remember, a > top-level mailbox is essentially the same as
>> a username in the Cyrus namespace):
>>
>> localhost>  listmailbox user.%
>
> But when I run "listmailbox user/%" (because I have the
> unixhierarchysep set to yes), I don't get any mailboxes listed.
>
> If I do just a plain "listmailbox", I'll get entries like:
>
> user/mike/[EMAIL PROTECTED] (\HasNoChildren)
> user/mike/[EMAIL PROTECTED] (\HasNoChildren)
> user/mike/[EMAIL PROTECTED] (\HasNoChildren)
> user/[EMAIL PROTECTED] (\HasChildren)
> user/[EMAIL PROTECTED] (\HasChildren)
> user/patrick/[EMAIL PROTECTED] (\HasNoChildren)
> user/patrick/Deleted [EMAIL PROTECTED] (\HasNoChildren)
> user/patrick/Deleted [EMAIL PROTECTED] (\HasNoChildren)
> user/patrick/[EMAIL PROTECTED] (\HasNoChildren)
> user/patrick/Saved [EMAIL PROTECTED] (\HasNoChildren)
> user/patrick/Sent [EMAIL PROTECTED] (\HasNoChildren)
> user/[EMAIL PROTECTED] (\HasNoChildren)
>
> What I want to be able to get is:
>
> user/[EMAIL PROTECTED] (\HasChildren)
> user/[EMAIL PROTECTED] (\HasChildren)
> user/[EMAIL PROTECTED] (\HasNoChildren)
>
> Is there something special I need to do because of my configuration?
>
http://asg.web.cmu.edu/cyrus/download/imapd/install-virtdomains.html
doesn't document the usage but
localhost> lm [EMAIL PROTECTED]
work for me.

HTH



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


Implied virtdomain?

2006-07-11 Thread patrick

We're in the process of migrating from an ancient UW-IMAP setup to
Cyrus with "virtdomains: yes", and there's one little thing I'm
wondering about. Our old accounts just have a username without the
domain part, whereas all of our new accounts will be a [EMAIL PROTECTED]
format. If someone tries to login with just a username, Cyrus/SASL
uses the defaultdomain to lookup the username, which is great.

I'm wondering though, is there a way to also have Cyrus default to the
defaultdomain with the mailbox? For example, let's say our default
domain is domain1.com. If someone logs in with the username "patrick",
SASL looks up [EMAIL PROTECTED] in our database. What we want is
that once the user is authenticated, their mailbox is also
user/[EMAIL PROTECTED] instead of just user/patrick. Is this at all
possible?

Thanks,

Patrick

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: Mailbox is locked by POP server

2006-12-19 Thread patrick

I'm also getting this sometimes with some of our customers. I suspect
it does have something to do with the client, as one person is using
Eudora and the other is using Outlook Express. But regardless, the
server should be able to cope with these and unlock the mailbox after
the connection has been dropped. So far, the only way I've found to
cure it is to restart the server which is really not ideal.

Patrick

On 12/14/06, Martin Schiøtz <[EMAIL PROTECTED]> wrote:

Hi

I'm using cyrus-imapd-2.3.1-2.6. I sometimes get this pop3 error. The
user can login but not receive mails. I get the error for different
pop3 users. Can somebody help?

Dec  3 20:13:57 BlackPete pop3[15503]: login:
0x50a33597.unknown.tele.dk [80.163.53.151] 20ba plaintext User
logged in
Dec  3 20:13:57 BlackPete pop3[15503]: Unable to lock maildrop
user.20ba: Mailbox is locked by POP server

- Martin

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


POP3 working, IMAP is not

2007-03-22 Thread patrick

I have a Cyrus IMAP 2.2.13 server running, and all of the sudden IMAP
connections are not working properly. Users connecting via our webmail
(Horde/IMP) don't see any messages and it says it can't retrieve the
quota. If I connect via POP3 I do, however, see all of the messages
there. I tried connecting via IMAP from a desktop client
(Thunderbird), and it is showing me *most* of the messages, though not
any from today. I've scoured the logs, but don't see any errors.

Has anyone ever experienced this?

Patrick

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: POP3 working, IMAP is not

2007-03-22 Thread patrick

Actually, Thunderbird was showing all of the messages. I didn't see
the latest messages because its sort arrows are upside down (!). It
would seem that this must be an IMP problem, so I'll start looking
there.

Patrick

On 3/22/07, patrick <[EMAIL PROTECTED]> wrote:

I have a Cyrus IMAP 2.2.13 server running, and all of the sudden IMAP
connections are not working properly. Users connecting via our webmail
(Horde/IMP) don't see any messages and it says it can't retrieve the
quota. If I connect via POP3 I do, however, see all of the messages
there. I tried connecting via IMAP from a desktop client
(Thunderbird), and it is showing me *most* of the messages, though not
any from today. I've scoured the logs, but don't see any errors.

Has anyone ever experienced this?

Patrick



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: regenerate quota files

2007-06-18 Thread patrick
man 8 quota



On 6/16/07, ram <[EMAIL PROTECTED]> wrote:
> We us a cyrus imap server(2.2.3) , with maiboxes created by a
> perl-Cyrus-Admin script. Which creates mailbox and calls setquota() for
> every mbox
>
>
> I have sometimes seen that the quota files are not created / go missing
> for some mailboxes at random.  Is there any way I can debug why this
> happens ?
>
>
> Now If on a live mailbox the quota file is missing , How can I
> regenerate the quota files
>
>
> Thanks
> Ram
>
>
>
>
>
>
>
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Apply Sieve script to messages already in INBOX?

2007-09-25 Thread patrick
I sense the answer is no, but I wanted to be sure. Is it possible to
apply a Sieve script to messages that are already in the INBOX? We are
using Horde/IMP for webmail and recently switched the filtering engine
from the bug-ridden IMAP filtering to use Sieve scripts on the server
itself. There was no good way to port people's existing scripts over,
and so some people are left with mail that would have normally been
filtered that wasn't because of the inherent delay between the switch
and them recreating the rules.

Thanks,

Patrick

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


postfix + sieve problem

2001-06-05 Thread Patrick Gaherty


I'm having problems getting sieve and postifx to play nicely together. I'm 
using cyrus-imapd-2.0.14 and postfix-20010202. From reading around it would 
seem to be a problem with lmtp, but I'm not sure where/how to enable it. At 
the moment my configuration is:

postfix - main.cf
mailbox_transport = cyrus

postifx - master.cf
cyrus unix - n n - - pipe
flags=R user=cyrus:cyrus argv=/usr/cyrus/bin/deliver -e -m ${extension} ${user}

cyrus - imapd.conf
sendmail: /usr/sbin/sendmail

I can install sieve scripts successfully, but a standard reject filter 
sends the rejection to [EMAIL PROTECTED] (rather than back to the 
original sender). Vacation filters seem to have no effect. Any help as to 
where I'm going wrong would be greatly appreciated.

Thanks

Patrick Gaherty




Re: postfix + sieve problem

2001-06-05 Thread Patrick Gaherty

Exactly what I needed. I followed the configuration guidelines in the 
LMTP_README file and sieve now works a treat!

Thanks

Patrick

At 08:09 05/06/2001 -0500, you wrote:
> >>>>> On Tue, 05 Jun 2001 12:23:56 +0100,
> >>>>> Patrick Gaherty <[EMAIL PROTECTED]> (pg) writes:
>
>pg> I'm having problems getting sieve and postifx to play nicely
>pg> together. I'm using cyrus-imapd-2.0.14 and postfix-20010202. From
>pg> reading around it would seem to be a problem with lmtp, but I'm not
>pg> sure where/how to enable it. At the moment my configuration is:
>
>You may want to get a newer release/snapshot of Postfix.  I think
>the recent one resolved some issues with cached connections.
>
>pg> postfix - main.cf
>pg> mailbox_transport = cyrus
>
>See the LMTP_README file that's in the Postfix source directory.
>
>Oops.  Need to send some updates for that one, but at least it's a
>start.  Basically you really want to use the LMTP service instead of
>the 'cyrus' service that's in master.cf.  That 'cyrus' service was
>put in there way before the Cyrus 2.X development.
>
>--
>Amos




Re: consistent ldap login problem

2001-06-11 Thread Patrick Lin

Philipp Sacha a écrit :
> 
> [EMAIL PROTECTED] wrote:
> >
> > **
> > [EMAIL PROTECTED] wrote on Fri Jun 08 15:42:17 CST 2001
> > **
> > hi!
> >
> > thanks a lot 4 ur reply.  it seems to me that there's no simple way that we can 
>use cyrus 2.x with ldap at this moment??  i swtiched back to cyrus 1.5.19 w/ 
>pwcheck_ldap compiled in.  it is working ok now, and i can continue with the testing.
> >
> > i m still interested in setting up 2.x with ldap.  but it will not be on my 
>priority list now.  we'll keep an eye on the development of the pam_ldap issue that u 
>have spotted.  let's hope it will get resolved soon.
> >
> 
> [...]
> 
> Hi,
> 
> i have set up successfully cyrus 2.0.11 with LDAP-Authentication using
> pam_ldap. But it was difficult to get pam_ldap working. I had made the
> experience that it was very important against which LDAP libraries
> pam_ldap was linked. When linking pam_ldap against openldap 2.x i
> encountered the error mentioned. In using openldap 1.x or the libraries
> from the netscape ldap-sdk 4.1 (which i am now using) the configuration
> was successful.
> 
> Regards,
> 
> Philipp
> 
> --
> Philipp Sacha - Bosch Telecom GmbH
> Business Unit Broadband Network Operations
> Zitadellenweg 34, D-13599 Berlin
> Tel.: +49 30 3388 - 1094, Fax.: +49 30 3388 - 1936

i will bee very happy to have your configuration and some tips to setup
ldap auth

actually i run 

pam_ldap-113
cyrus-sasl-1.5.24
cyrus-imapd-2.0.12
on a solaris 2.6

and my ldap server is a Netscape Directory server running on an other
machine

thanks in advance
patrick
-- 
  
   __(   /
  |  |  /
  \   | This message is transmitted by   |  \
   \  |   100 % recycled electrons   |___\
   /  |__(
  /__)



Re: Cyrus 2.0.14 on Linux and signal 11

2001-06-15 Thread Patrick Boutilier

Is there a way to compile SASL against the libs in 
/usr/local/BerkeleyDB.3.2/lib instead of /lib ?

There is a configure option (--with-dbdir=DIR) for Cyrus-imapd but none 
for cyrus-sasl




Mobeen Azhar wrote:

> Well, here are a couple of things to try, even though they did not solve my
> problem:
> 
> 1)  Make sure SASL and IMAP are linked against the same db libs.
> 2)  Perhaps there is a problem with your folder structure?  Try
> re-constructing mailboxes.
> 
> --Moby
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Levent
> Gundogdu
> Sent: Friday, June 15, 2001 6:16 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Cyrus 2.0.14 on Linux and signal 11
> 
> 
> Hi everyone,
> 
> I also run into signal 11. But it happens when I try to access the
> mailserver through imap only. imapd gets signaled to death by 11, when I
> connect to it with a "fresh" imap-client, that is, a client which has no
> information about the folder structure yet. I only have one client, that is
> a w2k with netscape, that can access the imap server without any problems,
> but this client was configured over a year ago and knows the folder
> structure. Other users can access their mails through pop3 without any
> problems. I also have another user who uses an outlook mailclient with imap
> and he can also download his mails without any problems, but his folder
> structure is also known for over a year.
> 
> I saw that many of the processes, which are invoked by master, can have a -d
> option for debug. But unfortunately imapd does not seem to have such an
> option. I'd like to know what happens there since I really want to access my
> mails from another client (which is linux), but imapd dies in the moment any
> "fresh" client (mozilla, netscape, evolution) looks up for mail folders.
> 
> Do you have any suggestions?
> 
> I am positive that the hardware is okay, I tested it and especially the
> server's RAM last week for over 48h and the server is in production for
> month now, so I assume it has to do something with cyrus.
> 
> Thank you for any help you can offer.
> 
> Bye,
>  Levent.
> 
> 
> 






Re: Cyrus IMAP 2.0.14: lmtpd signaled to death by 11

2001-06-21 Thread Patrick Boutilier

Just writing to say that I have the exact same problem on RedHat 7.1

2.0.14 segfaults on lmtpd (sometimes) while 2.0.12 works fine. Using BDB 
3.2.9 (although problem was there with 3.1.17 also).



ldd master
libssl.so.1 => /usr/lib/libssl.so.1 (0x40028000)
libcrypto.so.1 => /usr/lib/libcrypto.so.1 (0x40055000)
libdb-3.2.so => /lib/libdb-3.2.so (0x40111000)
libc.so.6 => /lib/i686/libc.so.6 (0x401a8000)
libdl.so.2 => /lib/libdl.so.2 (0x402d8000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)


ldd imapd
libsasl.so.7 => /usr/local/lib/libsasl.so.7 (0x40018000)
libssl.so.1 => /usr/lib/libssl.so.1 (0x40032000)
libcrypto.so.1 => /usr/lib/libcrypto.so.1 (0x4005f000)
libdb-3.2.so => /lib/libdb-3.2.so (0x4011b000)
libnsl.so.1 => /lib/libnsl.so.1 (0x401b2000)
libc.so.6 => /lib/i686/libc.so.6 (0x401c9000)
libdl.so.2 => /lib/libdl.so.2 (0x402f9000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x402fe000)
libpam.so.0 => /lib/libpam.so.0 (0x4032c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)


ldd lmtpd
libsasl.so.7 => /usr/local/lib/libsasl.so.7 (0x40018000)
libssl.so.1 => /usr/lib/libssl.so.1 (0x40032000)
libcrypto.so.1 => /usr/lib/libcrypto.so.1 (0x4005f000)
libdb-3.2.so => /lib/libdb-3.2.so (0x4011b000)
libnsl.so.1 => /lib/libnsl.so.1 (0x401b2000)
libc.so.6 => /lib/i686/libc.so.6 (0x401c9000)
libdl.so.2 => /lib/libdl.so.2 (0x402f9000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x402fe000)
libpam.so.0 => /lib/libpam.so.0 (0x4032c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)


ldd /usr/local/lib/libsasl.so.7
libdb-3.2.so => /lib/libdb-3.2.so (0x4001b000)
libdl.so.2 => /lib/libdl.so.2 (0x400b2000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x400b6000)
libpam.so.0 => /lib/libpam.so.0 (0x400e4000)
libc.so.6 => /lib/i686/libc.so.6 (0x400ec000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2000)


Nicholas Blackaby wrote:

>Hello,
>
> I have having problems concerning lmtpd crashing when using 
>Cyrus IMAP version 2.0.14 which do _not_ appear with version 
>2.0.12. The same (or similar) problem(s) were reported by (an)other 
>poster(s) to this list a couple of weeks ago but there appears to have 
>been no discussion since and no resolution? I include details below 
>for the information of (i) the developers, and (ii), admins who may 
>be considering upgrading to version 2.0.14. I can provide more 
>details if necessary.
>
> The problem I have with version 2.0.14 is that lmtpd crashes 
>relatively often when called by the deliver program. To be a little 
>more precise, as user cyrus on the imap server, in one test I sent 
>user "testuser" ten messages in quick succession, by typing the 
>command 
>
>/usr/cyrus/bin/deliver -a testuser -m -- testuser < /tmp/message
>
>ten times, one after another. I found that seven out of the ten 
>messages _were_ delivered to  testuser's Cyrus mailstore but three 
>of the messages were _lost_ (as if they had disappeared down a 
>blackhole). In fact, on inspecting /var/log/imapd.log I find three error 
>messages, corresponding to each of those lost messages. One of 
>these error messages (with associated text) says:
>
>Jun 19 10:17:22 frosty master[17743]: about to exec 
>/usr/cyrus/bin/lmtpd
>Jun 19 10:17:22 frosty service-lmtpunix[17743]: executed
>Jun 19 10:17:24 frosty lmtpd[17743]: accepted connection
>Jun 19 10:17:24 frosty lmtpd[17743]: lmtp connection preauth'd as 
>postman
>Jun 19 10:17:25 frosty lmtpd[17743]: accepted connection
>Jun 19 10:17:25 frosty lmtpd[17743]: lmtp connection preauth'd as 
>postman
>Jun 19 10:17:26 frosty lmtpd[17743]: accepted connection
>Jun 19 10:17:26 frosty lmtpd[17743]: lmtp connection preauth'd as 
>postman
>Jun 19 10:17:26 frosty master[561]: process 17743 exited, signaled 
>to death by 11
>
>For information: this problem is reproducable on other hardware and 
>so I fnd it unlikely that it is hardware related!
>
>The machine is running RedHat Linux 7.1.
>
>I compiled and installed Berkeley DB version 3.2.9.
>
>I compiled and installed Cyrus SASL version  1.5.24 with configure 
>command:
>
>$ CPPFLAGS=-I/usr/local/BerkeleyDB.3.2/include \
>   LDFLAGS=-L/usr/local/BerkeleyDB.3.2/lib \
>   ./configure --with-plugindir=/usr/local/lib/cyrus-sasl-1.5.24 \
>   --with-dblib=berkeley --disable-krb4 --disable-gssapi \
>   --with-rc4 --enable-anon --enable-cram --enable-plain \
>   --enable-login --with-pam
>
>I compiled and installed  Cyrus IMAP 2.0.14 with the configure 
>command:
>
>$ ./configure --with-dbdir=/usr/local/BerkeleyDB.3.2 \
>--with-auth=unix --with-sasl=/usr/local/lib/cyrus-sasl-1.5.24 \
>--without-libwrap
>
>Please note that I used the same(*) configuration options with Cyrus 
>2.0.12, with the same hardware and the same RedHat 7.1 install, 

CVS server problem

2001-06-28 Thread Patrick Boutilier

Hi,

Whenever I run:  cvs -d :pserver:[EMAIL PROTECTED]:/cvs co cyrus


I get the following error:


cvs server: Updating cyrus/contrib/notify_unix
cvs server: failed to create lock directory in repository 
`/cvs/src/cyrus/contrib/notify_unix': Permission denied
cvs server: failed to obtain dir lock in repository 
`/cvs/src/cyrus/contrib/notify_unix'
cvs [server aborted]: read lock failed - giving up




renaming users

2001-07-06 Thread Patrick Childers

I was having troube renaming users.
I wanted to rename users from user.patrickc to user.PatrickC

Is this possible?

Patrick Childers
[EMAIL PROTECTED]





Re: [SOLUTION] lmtpd signaled to death by 11

2001-07-07 Thread Patrick Boutilier

Ken,

Yes it does. I just tried the CVS version on RedHat 7.1 and there are no 
more "Death by 11" for lmptd.



Ken Murchison wrote:

>The attached patch *should* fix the problem of lmtpd crashes -- it did
>locally.  It was a simple problem of double-freeing memory, but a hard
>one to track down since it seemed to manifest itself differently each
>time.
>
>I just committed this fix to CVS, so it will be included in the upcoming
>2.0.15.
>






Re: deadlines suck! <- imtest = zero response

2001-07-16 Thread Patrick Boutilier

Brendon,

Did you compile the programs or are you using RPM packages?

Can you provide the ldd output from /usr/cyrus/bin/master, 
/usr/cyrus/bin/imapd, and /usr/local/lib/libsasl.so ?


Brendon M. Maragia wrote:

>hey list,
>
>
># quick details you should know:
>cyrus-imapd-2.0.15
>cyrus-sasl-1.5.24
>redhat 6.2 - kernel 2.4.6
>
>
>I'm a first time user of cyrus-imap and i'm trying to get it working like
>everyone else!  I've scoured the mailing list for an answer to my problems
>but have seen no one with a similar situation.  And If I don't have this
>issue resolved today, i'm in hot water!
>
>You can view my configuration below.  My main problem as of now is no
>response from the imap server.  Both with
>
>% imtest -m login -u cyrus -p imap localhost
>C: C01 CAPABILITY
>
>and with
>
>% telnet localhost imap
>Trying 127.0.0.1...
>Connected to pico.commaflex.com
>Escape character is '^]'.
>
>
>imtest produces this line in /var/log/messages
>
>Jul 16 09:17:20 pico master[692]: process 698 exited, signaled to death by
>11
>
>(as of now this is the only error message i've been able to produce in my
>logs).
>
>
>I have succesfully added the user cyrus (along with several others) to the
>sasldb (which for some reason I can not locate.  it is not in /etc/sasldb.
>the only libraries i seem to have installed are ones in /usr/local/lib/sasl
>i.e. /usr/local/lib/libsasl.so.7.1.8 ).  I believe they where successfully
>added because I can run this
>
>
>% sasldblistusers | sort
>user: admin03 realm: pico.commaflex.com mech: CRAM-MD5
>user: admin03 realm: pico.commaflex.com mech: DIGEST-MD5
>user: admin03 realm: pico.commaflex.com mech: PLAIN
>user: brendon realm: pico.commaflex.com mech: CRAM-MD5
>user: brendon realm: pico.commaflex.com mech: DIGEST-MD5
>user: brendon realm: pico.commaflex.com mech: PLAIN
>user: cyrus realm: pico.commaflex.com mech: CRAM-MD5
>user: cyrus realm: pico.commaflex.com mech: DIGEST-MD5
>user: cyrus realm: pico.commaflex.com mech: PLAIN
>
>
>Also I am starting the server using both
>
>%./master &
>and
>%./master -D
>
>neither of which produce any results in /var/log/messages besides
>
>Jul 16 09:17:07 pico master: unable to change limit of file descriptors
>available
>Jul 16 09:17:07 pico master[692]: process started
>Jul 16 09:17:08 pico ctl_mboxlist[693]: running mboxlist recovery
>Jul 16 09:17:08 pico ctl_mboxlist[693]: done running mboxlist recovery
>Jul 16 09:17:08 pico master[692]: ready for work
>Jul 16 09:17:08 pico ctl_mboxlist[695]: checkpointing mboxlist
>Jul 16 09:17:08 pico ctl_deliver[696]: duplicate_prune: pruning back 3 days
>Jul 16 09:17:08 pico ctl_deliver[696]: duplicate_prune:
>/var/imap/deliverdb/deliver-a.db: purged 0 out of 0 entries x20
>
>
>my 2 config files show as follows
>
>/etc/cyrus.conf
># standard standalone server implementation
>
>START {
>  # do not delete these entries!
>  mboxlist  cmd="ctl_mboxlist -r"
>  deliver   cmd="ctl_deliver -r"
>
>  # this is only necessary if using idled for IMAP IDLE
>#  idledcmd="idled"
>}
>
># UNIX sockets start with a slash and are put into /var/imap/socket
>SERVICES {
>  # add or remove based on preferences
>  imap  cmd="imapd" listen="imap" prefork=0
>#  imapscmd="imapd -s" listen="imaps" prefork=0
>  pop3  cmd="pop3d" listen="pop3" prefork=0
>#  pop3scmd="pop3d -s" listen="pop3s" prefork=0
>#  sievecmd="timsieved" listen="sieve" prefork=0
>
>  # at least one LMTP is required for delivery
>#  lmtp cmd="lmtpd" listen="lmtp" prefork=0
>  lmtpunix  cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
>}
>
>EVENTS {
>  # this is required
>  checkpointcmd="ctl_mboxlist -c" period=30
>
>  # this is only necessary if using duplicate delivery suppression
>  delprune  cmd="ctl_deliver -E 3" period=1440
>}
>
>/etc/imapd.conf
>configdirectory: /var/imap
>partition-default: /var/spool/imap
>admins: cyrus root
>allowanonymouslogin: no
>sasl_passwd_check: passwd
>
>I believe all my permissions are set correctly cyrus/mail owns all of
>/var/imap and /var/spool/imap
>
>
>Any help would be very much appreciated!
>
>
>Sincerely,
>Brendon M. Maragia
>
>"It is not the critic who counts: Not the man who points out how the strong
>man stumbles, or where the doer of deeds could have done them better.  The
>credit belongs to the man who is actually in the arena, whose face is marred
>by dust and sweat and blood: Who strives valiantly: Who errors, and comes
>short again and again: Because there is no effort without error and
>shortcoming:  But who does actually strive to do the deeds: Who knows the
>great enthusiasms, the great devotions: Who spends himself in a worthy
>cause, who at the best knos in the end the triumphs of high achievement and
>who at the worst, if he fails, at least fails while daring greatly, so that
>his place shall never be with those cold and timid souls who know neither
>victory nor defeat." -- Theodore Roosevelt
>



Re: pine thinks my INBOX is empty? Anyone know if this is a common pr oblem with pine and cyrus?

2001-07-17 Thread Patrick Boutilier

Have you configured Pine to check your IMAP mailbox? Pine defaults to 
checking /var/spool/mail by default I believe.


Lumpkin, Buddy wrote:

>Subject says it all ...
>
>TIA
>
>--Buddy
>






Re: pine thinks my INBOX is empty? Anyone know if this is a common pr oblem with pine and cyrus?

2001-07-17 Thread Patrick Boutilier

Or configure within Pine.

1. Choose the Setup option from the main Pine menu (S)
2. Choose C for config
3. Put something like this for inbox-path :

{your.imap.server/user=yourusername}INBOX

4. Choose E to exit config and save your changes



ronen amity wrote:

> in .pinerc that sits in your home dir look for folder-collection.
> this is my setup (my imap server is named imapserver):
>
> # List of directories where saved-message folders may be. First one is
> # the default for Saves. Example: Main {host1}mail/[], Desktop mail\[]
> # Syntax: optnl-label {optnl-imap-hostname}optnl-directory-path[]
> folder-collections={imapserver}INBOX.[]
>
> # List of folder pairs; the first indicates a folder to archive, and the
> # second indicates the folder read messages in the first should
> # be moved to.
> incoming-archive-folders={imapserver}INBOX.[]
>
>
> enjoy.
>
> ronen amity
>
> At 08:32 07/17/2001 -0300, you wrote:
>
>> Have you configured Pine to check your IMAP mailbox? Pine defaults to 
>> checking /var/spool/mail by default I believe.
>>
>>
>> Lumpkin, Buddy wrote:
>>
>>> Subject says it all ...
>>>
>>> TIA
>>>
>>> --Buddy
>>
>>
>>
>>
>
>






Re: imapd (2.0.15) dies immediately

2001-07-20 Thread Patrick Boutilier

Matt,

This is most likely the problem of imapd and sasl being linked against 
different libdb's

Can you provide the results of:

ldd /usr/cyrus/bin/imapd
ldd /usr/cyrus/bin/master
ldd /usr/local/lib/libsasl.so


Matt J Bradshaw wrote:

>hello all,
>
>i'm running into some (painful!) problems with my fresh cyrus-imap 2.0.15
>installation and would *really* appreciate any guru-advice i can get.
>
>master starts up fine (or at least appears to) and is listening on its
>specified ports (143 and 993).  however, any connection to those ports
>hangs waiting for the greeting and the spawned imapd process dies.  it
>leaves this in the syslog:
>
>process 17601 exited, signalled to death by 11
>
>ouch.  that's pretty much all the diagnostics i have.  it's not a system
>issue, packet-filtering and tcpwrappers are both fine.  :)
>
>build information:
>
>redhat-linux-6.2 (kernel2.2.16)
>cyrus-imap-2.0.15
>cyrus-sasl-1.5.24
>BerkeleyDB-3.2.9
>openssl-0.9.6b
>
>/etc/imapd.conf:
>
>configdirectory:   /var/imap
>partition-default: /var/spool/imap
>admins:cyrus
>sasl_pwcheck_method:   passwd
>tls_cert_file: /var/imap/server.pem
>tls_key_file:  /var/imap/server.pem
>allowplaintext:yes
>
>the only funny compile option was to disable libwrap (--without-libwrap i
>believe) as i thought tcpwrapper support was broken bc of past experience.
>btw, you *may* want to change your use of tcpwrappers to bring it in line
>with standard use.  this is with regard to the service name usually being
>the process name (*not* the service name).  perhaps creating a wrapper
>/usr/cyrus/bin/imapsd which calls 'imapd -s' would be appropriate.
>nothing big at all, and i just failed to read the cyrus.conf(5) man page.
>but still an issue.  i would either highlight it more prominently in the
>install docs or change the behavior...  back to the issue at hand.  sorry
>for the tangent.
>
>perhaps other issues revelent during the build:  i built sasl with almost
>all mechanisms disabled.  i want the PLAIN (login) mechanism only, over an
>ssl-encrypted channel.  so that's what i built for.  --enable-plain.
>
>any help would be *very* appreciated.  tia.
>
>regards,
>
>--matt
>
>






Re: SleepyCat 3.3.11

2001-07-25 Thread Patrick Boutilier

Cyrus imap 2.0.15 and SASL 1.5.24 compile fine on RedHat 7.1 using 
SleepyCat 3.3.11

I can also telnet to port 143 and sending mail using deliver works as well.


/usr/cyrus/bin/deliver -a boutilpj -m -- boutilpj I haven't tested it.  I scanned the release notes quickly and it
>didn't seem like they made any incompatible API changes (though I
>could have missed them).
>
>If someone could give it a try, I'd appreciate hearing about it (send
>mail here or to [EMAIL PROTECTED]).
>
>Larry
>
>   
>





Re: Moving accounts from one cyrus server to another

2001-07-26 Thread Patrick Boutilier

Dan,

I would just use rsync to move the relevant data from the old box to the 
new.



Dan Makovec wrote:

> Hi folks,
>
>  
>
> I've got an old FreeBSD 3.x server running cyrus 2.0.7, which I want 
> to decommission.  I've set up a new box with FreeBSD 4.3 and Cyrus 
> 2.0.15, and would like to essentially shift all the user accounts 
> (sieve scripts and all - not stored in user directories) to the new 
> server.  Passwords aren't a problem, being handled by LDAP.  Can 
> anybody tell me how I can do this easily, or point me to the relevent 
> documentation?
>
>  
>
> TIA!
>
>  
>
> Cheerio,
>
> d.
>
>  
>






Compiling 1.6.24 under Redhat 7.1

2001-07-28 Thread Patrick Boutilier

Has anybody successfully compiled cyrus-imap 1.6.24 or 1.6.25 under 
RedHat 7.1? I keep getting this from configure.

checking for dbopen... no
checking for dbopen in -ldb... no

When I compile I get this error:

dump_deliver.c
dump_deliver.c:47:18: ndbm.h: No such file or directory
make[1]: *** [dump_deliver.o] Error 1
make[1]: Leaving directory `/usr/local/src/iei/cyrus-imapd-1.6.25/imap'
make: *** [all] Error 1



Is there any way to get the configure script to check for dbopen in -ldb-3 ?




RedHat 6.2 to RedHat 7.1 upgrade notes

2001-07-28 Thread Patrick Boutilier

I just upgraded from RedHat 6.2 to RedHat 7.1. I am running imap 1.6.24 
and sasl 1.5.24. After the upgrade I kept getting these errors in my log 
even though I am using pam for authentication. Users could still login 
fine but the logs were filling up with this error.


unable to open Berkeley db /etc/sasldb: Invalid argument


Turns out the problem was with the cyrus-sasl RPM that was installed 
during the upgrade. imapd, deliver, /usr/local/lib/libsasl.so, etc.. 
where all linked against

libdb.so.3 => /usr/lib/libdb.so.3 (0x40037000)

on the RedHat 6.2 system while on the RedHat 7.1 system 
/usr/lib/libsasl.so was linked against (I think this was the link as I 
overwrote the sasl libs with compiled versions trying to fix the problem)

/lib/libdb-3.1.so


Now one wouldn't think this would be a problem since my imapd is linked 
against /usr/local/lib/libsasl.so which is a version that was compiled 
on RedHat 6.2. Turns out the problem was the RPM installed it's own 
version of /etc/sasldb which was probably created with the 
sasldblistusers binary linked against /lib/libdb-3.2.so

I deleted the /etc/sasldb file and ran sasldblistusers (linked against 
/usr/lib/libdb.so.3) and now the errors are gone. :-)

The other solution would have been to recompile imapd to link against 
the same db libraries that sasl does but I couldn't get 1.6.24 to 
compile under 7.1 (see previous post)






Sieve and Sendmail ........ lmpt config i think

2001-08-01 Thread Patrick LIN

hi everybody,

i hope someone  will be able to help me on that

when i set vacation on Websieve  for the user X
and try to send a email to this user:

i think my delivery is not by lmtp
so can someone tell me how verify if i use lmptp or not
if not how to change sendmail to use lmptp (probably off topic but just 
ask if someone can help)

thanks

patrick

i recieve :

---

The original message was received at Thu, 26 Jul 2001 16:11:45 -0400
from mailserv.domain.com [10.1.1.100]

 - The following addresses had permanent fatal errors -


- Transcript of session follows -
550 ... Host unknown (Name server:
unspecified-domain: host not found)


Reporting-MTA: dns; mailgate.domain.com
Received-From-MTA: DNS; mailserv.domain.com
Arrival-Date: Thu, 26 Jul 2001 16:11:45 -0400

Final-Recipient: RFC822; cyrus@unspecified-domain
Action: failed
Status: 5.1.2
Remote-MTA: DNS; unspecified-domain
Last-Attempt-Date: Thu, 26 Jul 2001 16:11:45 -0400



Subject:
Re: test6
From:
<[EMAIL PROTECTED]>
Date:
Thu, 26 Jul 2001 16:11:44 -0400
To:


On vacation for the next week

---







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




[Fwd: Re: Cyrus-IMAPD and LDAP]

2001-08-06 Thread Patrick LIN



 Original Message 
Subject: Re: Cyrus-IMAPD and LDAP
Date: Mon, 06 Aug 2001 02:10:53 -0400
From: Patrick LIN <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Organization: Steltor Inc,
To: [EMAIL PROTECTED]
References: <[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]>

hi,

i probably miss some mail :(

wheere i can find this patch

best regards,
Patrick

Tarjei Huse wrote:

 > Hia!
 >
 > How hard would it be to get this in as a feature in the next sasl 
version?
 > It seems to me the about 1/8 of all posts on the cyrus list are 
solved with
 > this patch.
 >
 >
 > Also, does the patch support useing ssl encryption between the host 
and the
 > ldap server?
 >
 > Tarjei
 > (Who is very greatfull to all the people who has ever done any coding on
 > the sasl-ldap patch ;D )
 >
 >
 >>Hey Prune,
 >>
 >>
 >>Friday, August 03, 2001, 3:24:05 AM, you wrote:
 >>
 >>P> Hi
 >>
 >>P> Isn't it the same thing as using pam_ldap for imap auth ??
 >>
 >>P> Prune
 >>
 >>Pretty much.  But Cyrus Imapd 2.0.x and pam_ldap and OpenLDAP 2.0.x do
 >>not mix well together at all.  I tried for 2 weeks to get any sort of
 >>authentication to work (note, that pam_ldap worked for postfix). And my
 >>ldap logs all said the cyrus searches were successful, so I suppose the
 >>bug lies in pam_ldap.
 >>
 >>Also, the patch is useful for those UNIX systems that don't have or use
 >>PAM.
 >>
 >>--
 >> Kevin
 >>
 >
 >
 > 
 > Tarjei Huse
 > 920 63 413
 >
 >
 >
 >


-- 

 __(   /
|  |  /
\   | This message is transmitted by   |  \
 \  |   100 % recycled electrons   |___\
 /  |__(
/__)


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




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   |___\
/  |__(
   /__)




[Fwd: Deliver problem with the "-r $g"]

2001-08-15 Thread Patrick LIN

hi,

i repost my message because i didn't receive it from the ML
didn't know if it goes

if it is a repost and you receive the original one
please discard and delete

also : cannot access anymore the archive , that normal ?

thanks
Best regards
patrick

 Original Message 
From: - Tue Aug 14 07:13:18 2001
X-Mozilla-Status: 0001
X-Mozilla-Status2: 
Message-ID: <[EMAIL PROTECTED]>
Date: Tue, 14 Aug 2001 07:13:15 -0400
From: Patrick LIN <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Organization: Steltor Inc,
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) 
Gecko/20010726 Netscape6/6.1
X-Accept-Language: fr, en-us
MIME-Version: 1.0
To: Cyrus Imap mailing List <[EMAIL PROTECTED]>
Subject: Deliver problem with the "-r $g"
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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   |___\
 /  |__(
/__)


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




Re: Questions about mass importing accounts

2001-08-17 Thread Patrick Boutilier

Jeff,

You could move the /var/spool/mail directory off the old machine (using 
rsync for example) and the run the following perl script on the new 
machine. This will create the cyrus mail accounts and migrate the mail 
from /var/spool/mail into the cyrus format.

ftp://ftp.ednet.ns.ca/pub/its/mail/mbox2cyrus.pl






Exim, Cyrus, and LMTP

2001-08-17 Thread Patrick Boutilier

Hello,

Has anybody setup exim to deliver directly to lmtp (instead of using the 
delivery program) on Cyrus 2.0.16?




Re: Exim, Cyrus, and LMTP

2001-08-20 Thread Patrick Boutilier

Thanks for the responses. I also noticed that in /etc/cyrus.conf you 
have to use lmtpunix as lmtp gives this error in the Exim logs:


2001-08-20 11:13:55 15YpoR-0001uB-00 == [EMAIL PROTECTED] 
T=local_delivery_cyruslmtp defer (-1): Malformed LMTP response after 
initial connection: connect failed: Connection refused




Exim transport:

 
local_delivery_cyruslmtp:
  driver = lmtp
  command = /usr/cyrus/bin/deliver -l
  batch = all
  batch_max = 35
  user = cyrus





>
>
> Patrick Boutilier wrote:
>
>> Hello,
>>
>> Has anybody setup exim to deliver directly to lmtp (instead of using 
>> the delivery program) on Cyrus 2.0.16?
>>
>
>






Re: turning off AUTH=CRAM-MD5

2001-08-20 Thread Patrick Boutilier

Also note that sasl will look for the plugins in /usr/lib/sasl even if 
you install to /usr/local/lib

I had plugins from the RedHat cyrus-sasl RPM in /usr/lib/sasl so I 
renamed /usr/lib/sasl to /usr/lib/sasl.OLD and made a link from 
/usr/local/lib/sasl to /usr/lib/sasl to only use the plugins I wanted.


Marco Colombo wrote:

>On Mon, 20 Aug 2001, Amos Gouaux wrote:
>
>>>On Sun, 19 Aug 2001 21:51:33 -0700,
>>>David Wright <[EMAIL PROTECTED]> (dw) writes:
>>>
>>dw> Cyrus-imapd (1.6.24) insists on advertising AUTH=CRAM-MD5, even
>>dw> though this is a lie. This is (I think) one of the (many bad)
>>dw> side-effects of SASL -- because of SASL cyrus advertises this AUTH,
>>dw> but in fact my sasldb is utterly empty (all authentication is via
>>dw> PAM) and so any client that takes cyrus up on the offer gets told
>>dw> the user doesn't exist.
>>
>>dw> So... how can I get cyrus to stop advertising AUTH=CRAM-MD5?
>>
>>Configure cyrus-sasl accordingly.  Use the various --disable-*
>>options to configure.  See --help for details.
>>
>>
>
>You don't need to recompile, just remove the crammd5 mech pluging
>from the pluging directory (/usr/lib/sasl on my system). I had the
>same problem with GSSAPI (Pine starts complaining for the lack of kerberos
>setup on the client - then it falls back to CRAM-MD5, but if CRAM-MD5
>fails, it doesn't try PLAIN).
>
>I think the client should try different mechs if the preferred one fails,
>since a certain mech can be unavailable to some users, but the users can
>be authenticated by means of a different mech. It is true that some
>clients (or some servers, like sendmail) can be configured to require
>secure authentication, and thus they refuse to fallback to PLAIN. If
>this is your case, the only way to enable PLAIN is to have the client
>use setup a SSL/TLS connection before authentication. Sendmail offers
>PLAIN only *after* a successful STARTTLS.
>
>.TM.
>






PAM woes

2001-08-21 Thread Patrick Boutilier

Hello,

Just a note about PAM and 2.0.16.  The cyrus user must be able to read 
/etc/pam.d/imap in order for PAM authentication to work under 2.0.16. 
When using 1.6.24 the cyrus user *does not* need to have read access to 
/etc/pam.d/imap

I ran into that problem last night trying to upgrade. :-)






Re: perl scripts

2001-08-23 Thread Patrick Boutilier

I use the following perl script to create users: (Put in valid 
userid/passwd for $user and $pass)





#!/usr/bin/perl -w
# adduser.pl
# Usage: adduser.pl newuser
#
use File::Basename;
use Net::IMAP;
 
$newuser = "user.$ARGV[0]";
$user = "user";
$pass = "password";
 
# Set this to the hostname of your IMAP server
#$IMAPSERVER = "142.227.51.106";
$IMAPSERVER = "localhost";
#
# Main Code
#
# Login to IMAP server
$imap = new Net::IMAP($IMAPSERVER, Synchronous => 1) || die "no go 
$! !";
$response = $imap->login($user, $pass);
print "Login: ", $response->status, "-", $response->status_text, "\n";
 
# Create the new mailbox
$response = $imap->create($newuser);
print "Create: ", $response->status, "-", $response->status_text, "\n";
 
# Disconnect from IMAP server
$response = $imap->logout();
print "Logout: ", $response->status, "-", $response->status_text, "\n";


Sandra Regina wrote:

>I have been searching the archive messages for a script to create
>mailbox,  but I have found it only in TCL. I have read on man pages
>that  cyradm in tcl is not supported any more.
>Does anyone has the following script  in Perl ?
>
>Thanks a lot
>
>Sandra
>
>su first
> cyradm -file adduser.tcl
>
> if {$argc != 1} {
>   puts "usage: No user list specifiled."
>   exit 1
> }
>
> set infile [lindex $argv 0 ]
> set quota 512
>
> eval cyradm connect cyr_conn host
> eval cyr_conn authenticate -pwcommand {{
>   set hostname "myhost"
>   set adminid "cyrus"
>   set adminpw "the password"
>   list $adminid $adminpw
>   }
> }
>
> if [catch {open $infile} IN] {
>   puts stderr "Can not open file $infile: $IN"
>   exit 1
> }
>
> while {[gets $IN mailbox] >= 0} {
>   exec /usr/sbin/adduser -batch $mailbox email $mailbox $mailbox
>   cyr_conn createmailbox user.$mailbox
>   cyr_conn setquota user.$mailbox storage $quota
>   cyr_conn createmailbox user.$mailbox.sentmail
> }
> close $IN
>
>
>






Deliver -l -q

2001-08-27 Thread Patrick Boutilier

Can the deliver options -l and -q be used together? I have tried and 
receive this in my exim logs:

2001-08-27 14:43:23 15bQPz-0001qN-00 == 
[EMAIL PROTECTED] T=local_delivery_cyruslmtp defer 
(-1): LMTP error after end of data: 452 4.2.2 Over quota

If I use deliver without the -l option then -q works as desired.




Re: NIS+, Cyrus-IMAP, PAM and SASL

2001-08-28 Thread Patrick Boutilier

What do you have in /etc/imapd.conf ?



Benjamin Bacon wrote:

> Hi everyone,
>
>  
>
> I started setting up Cyrus IMAP server a few weeks ago and I had to 
> take a break to setup a several NIS+ domains.  Now the machine that I 
> am planning on being the IMAP server is a NIS+ client.  The problem I 
> have run into is that I am not able to authenticate any users through 
> imtest.  I think this is because of NIS+.  Here is the errors I am 
> getting in the imapd.log file.
>
>  
>
> Aug 28 13:00:00 regprod8 imapd[7849]: accepted connection
> Aug 28 13:00:05 regprod8 imapd[7849]: authdes_refresh: keyserv(1m) is 
> unable to encrypt session key
> Aug 28 13:00:05 regprod8 imapd[7849]: User ben needs Secure RPC 
> credentials to login.
> Aug 28 13:00:05 regprod8 imapd[7849]: pam_authenticate: error Error in 
> underlying service module
> Aug 28 13:00:08 regprod8 master[7840]: process 7849 exited, status 0
> Aug 28 13:00:18 regprod8 master[7851]: about to exec /usr/cyrus/bin/imapd
> Aug 28 13:00:18 regprod8 service-imap[7851]: executed
> Aug 28 13:00:18 regprod8 imapd[7851]: accepted connection
> Aug 28 13:00:31 regprod8 imapd[7851]: authdes_refresh: keyserv(1m) is 
> unable to encrypt session key
> Aug 28 13:00:31 regprod8 imapd[7851]: Permissions on the password 
> database may be too restrictive
> Aug 28 13:00:31 regprod8 imapd[7851]: pam_authenticate: error 
> Authentication failed
> Aug 28 13:00:34 regprod8 master[7840]: process 7851 exited, status 0
>
>  
>
> Here is the output from /local/bin/imtest -m login -a ben localhost
>
> C: C01 CAPABILITY
> S: * OK regprod8 Cyrus IMAP4 v2.0.16 server ready
> S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS 
> ID NO_ATOMIC_RENAME UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT 
> THREAD=REFERENCES IDLE
> S: C01 OK Completed
> Password:
> C: L01 LOGIN ben {7}
> + go ahead
> C: 
> L01 NO Login failed: authentication failure
> Authentication failed. generic failure
> Security strength factor: 0
> select: Invalid argument
> failure: select
>
> Unfortunately I am new to both NIS+ and Cyrus IMAP so i may be missing 
> something importent. I have a few ideas what might be wrong but if 
> anyone out there has seen this problem let me know! 
>
>  
>
>  
>
> Thanks a bunch!
>
> Benjamin
>
>
> Benjamin Bacon
> Senior Unix Administrator
> Omnipod
> 440 9th Ave. 8th Floor
> New York, NY 10001
> (212)404-3021
>






Re: Deliver -l -q

2001-09-04 Thread Patrick Boutilier


Sorry. I am using Cyrus 2.0.16


Lawrence Greenfield wrote:

>What version are you using?  The latest version has support for this.
>
>Please specify your version when asking questions.
>
>Larry
>
>   Date: Mon, 27 Aug 2001 14:46:55 -0300
>   From: Patrick Boutilier <[EMAIL PROTECTED]>
>
>   Can the deliver options -l and -q be used together? I have tried and 
>   receive this in my exim logs:
>
>   2001-08-27 14:43:23 15bQPz-0001qN-00 == 
>   [EMAIL PROTECTED] T=local_delivery_cyruslmtp defer 
>   (-1): LMTP error after end of data: 452 4.2.2 Over quota
>
>   If I use deliver without the -l option then -q works as desired.
>
>






deliver lock mail box when i put option -r $g .......

2001-09-06 Thread Patrick LIN

hello

i really need help on that one
cannot find what going on 

i upgrade to v2.0.16 and after 14 days the problem come back

please help

patrick

 Original Message 
From: - Tue Aug 14 07:13:18 2001
X-Mozilla-Status: 0001
X-Mozilla-Status2: 
Message-ID: <[EMAIL PROTECTED]>
Date: Tue, 14 Aug 2001 07:13:15 -0400
From: Patrick LIN <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Organization: Steltor Inc,
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) 
Gecko/20010726 Netscape6/6.1
X-Accept-Language: fr, en-us
MIME-Version: 1.0
To: Cyrus Imap mailing List <[EMAIL PROTECTED]>
Subject: Deliver problem with the "-r $g"
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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: Compiling cyrus-imap 1.6.24

2001-09-10 Thread Patrick Boutilier

Yes I did. Change line 47 of dump_deliver.c and line 51 of deliver.c from

#include 

to

#include 



Frederik Seiffert wrote:

>Hello!
>
>In the cyrus mailing list, you wrote on Jul 28 2001:
>---
>Has anybody successfully compiled cyrus-imap 1.6.24 or 1.6.25 under
>RedHat 7.1? I keep getting this from configure.
>
>checking for dbopen... no
>checking for dbopen in -ldb... no
>
>When I compile I get this error:
>
>dump_deliver.c
>dump_deliver.c:47:18: ndbm.h: No such file or directory
>make[1]: *** [dump_deliver.o] Error 1
>make[1]: Leaving directory `/usr/local/src/iei/cyrus-imapd-1.6.25/imap'
>make: *** [all] Error 1
>
>Is there any way to get the configure script to check for dbopen in -ldb-3 ?
>---
>
>As I'm getting just the same errors, I would like to ask if you have found a
>way to compile cyrus imapd?
>
>Thank you very much!
>Frederik
>






Problem with deliver [URGENT]

2001-09-13 Thread Patrick LIN

Please someone can help me with that
3 times i post about this problem and never get any answer :((

i use sendmail Swict 2.1
cyrus 2.0.16
on Solaris 2.6

my syrus mailer specification :

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

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



sometine (randomly)
no deliver is made to one of my user (random)
when i do a ps -ef |grep deliver
i have :

  cyrus 19672 19671  0 00:03:19 ?0:00 deliver -e -m  -- toto
cyrus 20763 20762  0 10:17:56 ?0:00 deliver -e -m  -- toto
cyrus  9690  9689  0 20:14:56 ?0:00 deliver -e -m  -- toto
cyrus   411   410  0 04:11:46 ?0:00 deliver -e -m  -- toto
cyrus  9874  9873  0 07:47:16 ?0:00 deliver -e -m  -- toto
cyrus 22026 22025  0 10:31:19 ?0:00 deliver -e -m  -- toto
cyrus   406   405  0 04:11:45 ?0:00 deliver -e -m  -- toto
cyrus 14624 14619  0 22:05:45 ?0:00 deliver -e -m  -- toto
cyrus  5614  5613  0 18:42:28 ?0:00 deliver -e -m  -- toto
cyrus   456   455  0 04:12:12 ?0:00 deliver -e -m  -- toto
cyrus 24718 24716  0 11:09:13 ?0:00 deliver -e -m  -- toto
cyrus   435   434  0 04:11:54 ?0:00 deliver -e -m  -- toto
 root 26057 10426  0 11:26:41 pts/00:00 grep deliver
cyrus 23954 23953  0 10:58:35 ?0:00 deliver -e -m  -- toto
cyrus 22926 22925  0 10:42:55 ?0:00 deliver -e -m  -- toto
cyrus 24751 24750  0 11:09:34 ?0:00 deliver -e -m  -- toto
cyrus   400   399  0 04:11:43 ?0:00 deliver -e -m  -- toto
cyrus   429   428  0 04:11:52 ?0:00 deliver -e -m  -- toto
cyrus 17313 17312  0 09:43:20 ?0:00 deliver -e -m  -- toto
cyrus   447   445  0 04:12:06 ?0:00 deliver -e -m  -- toto
cyrus 21787 21786  0 10:30:18 ?0:00 deliver -e -m  -- toto
cyrus 16114 16113  0 09:30:27 ?0:00 deliver -e -m  -- toto
cyrus 16559 16558  0 09:35:29 ?0:00 deliver -e -m  -- toto
cyrus   423   422  0 04:11:48 ?0:00 deliver -e -m  --  toto 
  cyrus   452   451  0 04:12:08 ?0:00 deliver -e -m  -- toto
cyrus 18770 18769  0 09:57:34 ?0:00 deliver -e -m  -- toto
cyrus  6995  6994  0 19:14:27 ?0:00 deliver -e -m  -- toto
cyrus   417   416  0 04:11:47 ?0:00 deliver -e -m  -- toto
cyrus 17214 17213  0 09:40:50 ?0:00 deliver -e -m  -- toto

the user cannot receive any mail
each mail sent creat a new entry in the ps
only one user is affected at the same time

PLEASE HELP

Best Regards
Patrick
-- 
   
__(   /
   |  |  /
   \   | This message is transmitted by   |  \
\  |   100 % recycled electrons   |___\
/  |__(
   /__)




Re: Problem with deliver [URGENT]

2001-09-13 Thread Patrick LIN



Scot W. Hetzel wrote:

> From: "Patrick LIN" <[EMAIL PROTECTED]>
> 
>>Please someone can help me with that
>>3 times i post about this problem and never get any answer :((
>>
>>
> 
>>sometine (randomly)
>>no deliver is made to one of my user (random)
>>when i do a ps -ef |grep deliver
>>i have :
>>
>>  cyrus 19672 19671  0 00:03:19 ?0:00 deliver -e -m  -- toto
>>cyrus 20763 20762  0 10:17:56 ?0:00 deliver -e -m  -- toto
>>cyrus  9690  9689  0 20:14:56 ?0:00 deliver -e -m  -- toto
>>cyrus   411   410  0 04:11:46 ?0:00 deliver -e -m  -- toto
>>cyrus  9874  9873  0 07:47:16 ?0:00 deliver -e -m  -- toto
>>cyrus 22026 22025  0 10:31:19 ?0:00 deliver -e -m  -- toto
>>
> 
>>the user cannot receive any mail
>>each mail sent creat a new entry in the ps
>>only one user is affected at the same time
>>
>>
> 
> The problem is that a lock is being held on the users INBOX by either
> deliver (1.6.x) or lmtpd (2.x), and these deliver processes are waiting for
> the lock to be released.  You need to kill all the deliver processes for
> this user and also kill all the lmtpd processes (2.x) to get mail flowing to
> this users mailbox.
> 
> Scot

hi scot,

first thanks for your answer , i feel less alone now :)

ok when i reboot everything seems rewrork , but it is not a good 
solution for me :(


NOw the problem is know why this happen 

and i have 2 questioon :
1- how to find the good lmtpd process for this user (need i to kill all 
of the lmptpd process ? )
2 - how to prevent that ?

thanks a lot

patrick



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




Re: Problem with deliver [URGENT]

2001-09-13 Thread Patrick LIN

thanks
i will give it a try this week-end and let the list know
but it is diffcult for me to upgrade to sendmail 8.12 because i am using
Sendmail switch , i will call my rep to see

Best Regards
patrick

Scott Adkins wrote:

> --On Thursday, September 13, 2001 11:45 AM -0400 Patrick LIN 
> <[EMAIL PROTECTED]> wrote:
> 
>> Please someone can help me with that
>> 3 times i post about this problem and never get any answer :((
>>
>> i use sendmail Swict 2.1
>> cyrus 2.0.16
>> on Solaris 2.6
>>
>> my syrus mailer specification :
>>
>> 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
>>
>> Mcyrusbb,   P=/usr/local/bin/deliver, F=lsDFMnPu, S=EnvFromL,
>> R=EnvToL/HdrToL,  U=cyrus:cyrus, T=DNS/RFC822/X-Unix,
>>  A=deliver -e -m $u
> 
> 
> So, basically, you are saying that your deliver's are stacking up and not
> actually delivering email.  Do you see anything in your imap log?  We had
> something similar as well, and it somehow seemed tied to the fact that
> we were using an unix domain socket for LMTP instead of a TCP socket.  The
> problem is that deliver can't handle anything other than a unix domain
> socket.  So, we solved it by configuring LMTP for TCP socket use and then
> dumped deliver altogether and configure sendmail to talk to LMTP via TCP
> instead.  That solved our problem and we haven't had any more issues with
> it since.
> 
> If you hack the sendmail.cf file directly, the following is my cyrus
> configuration:
> 
> Mcyrus,P=[IPC], F=lsDFMnqAw@/:|SmXzu, E=\r\n,
>   S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix,
>   U=cyrus:mail, A=TCP [localhost] lmtp
> 
> However, I would really use the MC files instead:
> 
> The bottom part of the MC file will probably look more like the following:
> 
> MAILER_DEFINITIONS
> Mcyrus,P=[IPC], F=lsDFMnqAw@/:|SmXz, E=\r\n,
>   S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix,
>   U=cyrus:mail, A=TCP $h lmtp
> 
> LOCAL_RULE_0
> Rbb + $+ < @ $=w . >  $#cyrus $: + $1
> 
> Whereever  is listed above, replace it and the surrounding whitespace
> with one or more tabs.  It does make a difference...
> 
> Also, you should think about upgrading your sendmail to the latest 8.12
> release.  There are apparently some problems with sendmail + lmtp + tcp.
> Basically, sendmail will connect to the lmtp server and shove as many mail
> messages down that connection to lmtp as it can.  However, if any one of
> those failed, all the messages following it would also fail... This was
> fixed in 8.12.
> 
> Finally, the cyrus.conf file has these 2 following lines:
> 
>  lmtpunix  cmd="lmtpd" listen="/var/imap/socket/lmtp"
>  lmtp  cmd="lmtpd -a" listen="localhost:lmtp"
> 
> You should still keep the lmtpunix socket around in case you need to use
> deliver for anything.  Sendmail will no longer need it, but you might need
> it for shell scripts or something.  The tcp socket is configured with the
> "localhost:" prepended on it so that you can limit access to the server.
> 
> Anyways, give it a try and let us know what happens.
> 
> 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
> 


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




Re: Migrating existing mailboxes to cyrus imapd

2001-09-18 Thread Patrick Boutilier

You can use a script like the following:

ftp://ftp.ednet.ns.ca/pub/its/mail/mbox2cyrus.pl



Sherpya wrote:

>I must migrate existing unix mailboxes (e.g. /var/spool/mail/bill)
>to a cyrus imapd server. I have access to the filesystem (I'm root)
>but I don't known user's passwords.
>What is the right procedure? (User creation is not a problem, my problem
>is moving the emails)
>Thx
>Sherpya
>






Re: rfc822.h and cyrus

2001-10-29 Thread Patrick Boutilier

I think you need the UW Imap code to compile imap support in PHP.

ftp://ftp.cac.washington.edu/imap/imap-2001a.RELEASE-CANDIDATE.2.tar.Z




Chris Beggy wrote:

>I'm trying to build php with imap support, and I can't find an
>rfc822.h in 2.0.16.  Is there one available someplace else?
>
>Thanks.
>
>Chris
>






Re: pam/mysql doesnt work

2001-10-11 Thread Patrick Boutilier

Mark,

Try substituting --with-pam for --with-passwd_method=PAM when 
configuring sasl.


Also try removing:

 pwcheck_method: PAM

from your /etc/imapd.conf . You should only require:

 sasl_pwcheck_method: pam




Mark Davis wrote:

>Hi all...
>
>I want to authenticate the users via a mysql-db. So i compiled pam_mysql and 
>made the files pop3/imap in the /etc/pam.d/ directory. 
>
>I read all the mailings about pam / mysql... But i still have problems to get 
>the thing to work...
>
>I always get the following message in /var/log/messages or /var/log/auth.log:
>
>Oct 10 15:33:24 mail imapd[10949]: unrecognized plaintext verifier PAM
>
>It seems, that sasl doesnt know what PAM is ?! 
>
>I compiled sasl with:
>$ ./configure  \
>--prefix=/usr \
>--with-passwd_method=PAM
>
>and the result auf the configure-script looks as PAM should work (see below). 
>
>sasldb works fine... Any ideas ? All my configuration files are listed below.
>
>Greets
>Mark Davis
>
>$ ldd /usr/local/imapd/bin/imapd
>libsasl.so.7 => /usr/local/lib/libsasl.so.7 (0x40017000)
>libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x40026000)
>libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40054000)
>libdb-3.3.so => /usr/lib/libdb-3.3.so (0x40115000)
>libresolv.so.2 => /lib/libresolv.so.2 (0x40196000)
>libnsl.so.1 => /lib/libnsl.so.1 (0x401a8000)
>libc.so.6 => /lib/libc.so.6 (0x401be000)
>libdl.so.2 => /lib/libdl.so.2 (0x402db000)
>libcrypt.so.1 => /lib/libcrypt.so.1 (0x402df000)
>/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)
>
>
>$ more /usr/local/sasl/cyrus.conf
>pwcheck_method: PAM
>
>
>$ more /etc/imapd.conf:
>configdirectory: /var/imap
>partition-default: /var/spool/imap
>admins: root cyrus
>sasl_pwcheck_method: PAM
>srvtab: /var/imap/srvtab
>allowanonymouslogin: no
>pwcheck_method: PAM
>allowplaintext: yes
>
>
>$ ./configure  --prefix=/usr --with-passwd_method=PAM
>...
>checking for syslog... yes
>checking for crypt... no
>checking for crypt in -lcrypt... yes
>checking for connect... yes
>checking for pam_start in -lpam... yes
>checking for security/pam_appl.h... yes
>checking PAM support... yes
>checking CRAM-MD5... enabled
>checking SCRAM-MD5... disabled
>checking for des_pcbc_encrypt in -ldes... no
>checking for RSAPublicEncrypt in -lrsaref... no
>checking for des_pcbc_encrypt in -lcrypto... yes
>checking for openssl/des.h... yes
>checking DIGEST-MD5... enabled
>checking for res_search in -lresolv... yes
>checking for krb.h... no
>configure: warning: No Kerberos V4 found
>checking KERBEROS_V4... disabled
>checking for gssapi.h... no
>checking for gssapi/gssapi.h... no
>configure: warning: Disabling GSSAPI
>checking GSSAPI... disabled
>checking ANONYMOUS... enabled
>checking PLAIN... enabled
>checking LOGIN... disabled
>checking SRP... disabled
>checking X509... disabled
>
>
>$more /etc/pam.d/imap (or pop3)
>#%PAM-1.0
>authoptional/lib/security/pam_mysql.so user=test passwd=word 
>host=localhost table=user db=mail crypt=2
>password   required /lib/security/pam_mysql.so user=test passwd=word 
>host=localhost table=user db=mail crypt=2
>






Re: PAM + Cyrus

2002-02-15 Thread Patrick Boutilier

Do you have this line in your /etc/imapd.conf ?


sasl_pwcheck_method: pam



E M Recio wrote:

>Is there a 'special' configuration option I have to give cyrus (when
>compiling) so that it looks at PAM for authentication? I tried the following
>(On RH7.2): 
>
>./configure  --with-sasl=/usr/lib/sasl --with-cyrus-user=cyrus
>--with-cyrus-group=mail --without-krb=/usr/kerberos --with-auth=unix
>--with-perl=/usr/bin/perl
>I pointed the machine (pam) to use the ldap for authentication. This works
>fine for logging in to the machine (ie: telnet ssh etc.) but when I try to
>login via cyradm (cyradm -u cyrus localhost) it doesn't work.
>
>My imapd.conf has 'sasl_pwcheck_method: pam' but no luck authenticating under
>PAM. In /etc/pam.d/imap I have:
>#%PAM-1.0
>authsufficient  pam_ldap.so
>authrequiredpam_unix.so
>account sufficient  pam_ldap.so
>account requiredpam_unix.so
>
>and I've even tried copying the /etc/pam.d/ssh to /etc/pam.d/imap (figuring
>that if I can ssh via PAM, then I would be able to do IMAP via pam) but no
>luck there either. Any help on these matters would be greatly appreciated.
>
>Best Regards,
>Elmo Recio
>
>
>Get free e-mail and a permanent address at http://www.amexmail.com/?A=1
>






Re: [Re: PAM + Cyrus]

2002-02-15 Thread Patrick Boutilier

I didn't see that the first read through. :-)

What about the permissions of /etc/pam.d/imap ?

I do believe the cyrus user needs to be able to read the file

-rw-r-1 cyruscyrus 285 Dec 21 12:02 imap




E M Recio wrote:

>Patrick Boutilier <[EMAIL PROTECTED]> wrote:
>
>>Do you have this line in your /etc/imapd.conf ?
>>
>>
>>sasl_pwcheck_method: pam
>>
>
>Yeah (see original email):
>
>
>>>My imapd.conf has 'sasl_pwcheck_method: pam' but no luck authenticating
>>>
>under
>
>>>PAM.
>>>
>
>
>
>Best Regards,
>E. M. Recio
>
>
>* Chief Systems Engineer, Behavioral Informatics Inc.  *
>* EMAIL: [EMAIL PROTECTED] |  AIM: emrecio *
>* PAGER: (215) 314-2622|  FAX: (215) 503-2648  *
>*  CELL: (215) 681-5612| WORK: (215) 503-0986  *
>
>
>
>
>Get free e-mail and a permanent address at http://www.amexmail.com/?A=1
>






RE: Cyrus IMAP, Steltor Calendar and Outlook

2002-04-12 Thread Patrick Lin

Hi,

We actually , use this setting internally here 
- Cyrus IMAP Server 
- Steltor Calendar Server
- CTOC 
- LDAP Server

We move to this setting from Exchange while ago 
OK I am Working at Steltor , it is why I didn't say nothing else, only
what work actually here :) :)
Feel to ask any other questions who can help take a decision (and the
good one :) :) )

Best Regards
Patrick  
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of 
> Anthony Brock
> Sent: vendredi 12 avril 2002 00:20
> To: Cyrus Info
> Subject: Cyrus IMAP, Steltor Calendar and Outlook
> 
> 
> Does anyone use Cyrus IMAP with the Steltor Calendar server? 
> Specifically, 
> do you use the Steltor Outlook connector?
> 
> We're evaluating the possibility of using Cyrus IMAP with 
> Steltor instead 
> of using an Exchange Server. At this time, there is heavy pressure to 
> implement an Exchange solution (which I would prefer to 
> avoid). Experiences 
> would be greatly appreciated (especially with regard to 
> functionality/testimonials/etc).
> 
> Tony
> 
> **
> 
> * Anthony Brock 
> [EMAIL PROTECTED] *
> * Director of Network Services George 
> Fox University *
> **
> 
> 
> 
> 





RE: Cyrus IMAP, Steltor Calendar and Outlook

2002-04-12 Thread Patrick Lin

We ahave a Admin tool (Gui) who manage anything related to calendar on
ldap

Patrick

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of 
> Tarjei Huse
> Sent: vendredi 12 avril 2002 03:47
> To: Paul Fleming
> Cc: Anthony Brock; Cyrus Info
> Subject: Re: Cyrus IMAP, Steltor Calendar and Outlook
> 
> 
> Hmm. Just one question:
> Do you have a gui to propperly admin your ldap/kerberos 
> database, or is everything done on the commandline or w/ some 
> custom perl scripts?
> 
> Tarjei
> 
> Paul Fleming wrote:
> > 
> > We use Steltor, Cyrus IMAP, Keberos V & OpenLdap works 
> great.. Not as 
> > tightly integrated as exchange on the user side but we're a 
> UNIX shop 
> > so not a problem plus our solution lets users select there 
> preferred 
> > mail client -- something many of them like to do. We're 
> also able to 
> > support Macintosh clients natively for Calendar & Email.  
> You can't do 
> > the outlook workflow stuff (custom apps ala lotus notes). 
> We're also 
> > behind on Cyrus installs and our users are looking forward 
> to having 
> > Server Side (Sieve) rules. We support between 2000 & 3000 email 
> > accounts and about 1300-1500 Steltor accounts. We're an 
> email intense 
> > institution. Calendar use is split about half of our users are 
> > hardcore 8hours day / 5days a week users other half casual 
> use. Some 
> > specs
> > 
> > Cyrus IMAP (current 1.5.19 going to 2.1.3)
> > Authenticate via Kerberos V
> > mail on 4 PII400 machines front-ended by a custom 
> load-balancing IMAP 
> > proxy -- see Cyrus Murder page for more info and a link to my 
> > solution.
> > 
> > Steltor (2 nodes in network config using same LDAP)
> > 1100 users on E3000 w/ 512Mb 2x250Mhz CPUs
> > 400 users on Netra  w/ 256Mb 1x170Mhz CPU 2nd location
> > 
> > OpenLDAP
> > Authenticate via Kerberos V
> > master PIII 1Ghz 512Mb RAM
> > slaves
> > 2 x PIII 1ghz 512Mb Primary Public Address book servers -- 
> double as 
> > IMAP proxy frontend - perform 5-10 connections per second 
> for IMAP and 
> > 3-5 connections per second for LDAP during business hours PIII 1ghz 
> > 512Mb RAM -- 2nd location PII 350 128Mb -- External LDAP server
> > 
> > Web Interfaces
> > IMP & Steltor Web Client on PII 350Mhz w/ 256Mb
> > 
> > Anthony Brock wrote:
> > >
> > > Does anyone use Cyrus IMAP with the Steltor Calendar server? 
> > > Specifically, do you use the Steltor Outlook connector?
> > >
> > > We're evaluating the possibility of using Cyrus IMAP with Steltor 
> > > instead of using an Exchange Server. At this time, there is heavy 
> > > pressure to implement an Exchange solution (which I would 
> prefer to 
> > > avoid). Experiences would be greatly appreciated (especially with 
> > > regard to functionality/testimonials/etc).
> > >
> > > Tony
> > >
> > > 
> **
> 
> > > * Anthony Brock 
> [EMAIL PROTECTED] *
> > > * Director of Network Services 
> George Fox University *
> > > 
> 
> > > **
> 
> 





Re: update: Re: cyrus, mysql, is anyone out there?

2002-05-03 Thread Patrick Boutilier

Here is what I have in my /etc/pam.d/pop file in Redhat 7.2:




#%PAM-1.0
auth   required /lib/security/pam_mysql.so user=xxx passwd=xxx 
db=school table=user usercolumn=userid passwdcolumn=passwd

accountrequired /lib/security/pam_mysql.so user=xxx passwd=xxx 
db=school table=user usercolumn=userid passwdcolumn=passwd


Also make sure that the cyrus user can read the pam file. Are the 
permissions the same on both the imap and pop pam files?



Dustin Puryear wrote:
> At 09:48 PM 5/1/2002 -0500, you wrote:
> 
>> Okay, one final try. Is anyone in the world that happens to be on this 
>> list using mysql with cyrus? I can't be the only one. If you do exist, 
>> and I'm happy to see that you do, I
> 
> 
> Okay, at some point I realized I'm wasn't getting anywhere, so I 
> abandoned trying to use Cyrus' mysql support to authenticate users 
> directly against a mysql database. Instead, I'm falling back to the pam 
> method via pam_mysql, which seems to have been successful from the 
> responses I've gotten.
> 
> Unfortunately, I again have a problem.
> 
> I have the pam solution WORKING for imap authentication, but not for 
> pop3 authentication. Weird, I know. First, let me show you the test 
> connections:
> 
> Here you can see that imap works:
> 
> freebsd# telnet localhost 143
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> * OK freebsd.dpbox.dhs.org Cyrus IMAP4 v2.0.16 server ready
> a0001 login dom0001 password
> a0001 OK User logged in
> May  1 21:57:03 freebsd imapd[5489]: login: localhost[::1] dom0001 
> plaintext
> ^]
> telnet> quit
> Connection closed.
> 
> But pop3 fails:
> 
> freebsd# telnet localhost 110
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> +OK <[EMAIL PROTECTED]> Cyrus POP3 v2.0.16 
> server ready
> user dom0001
> +OK Name is a valid mailbox
> pass password
> May  1 21:57:39 freebsd pop3d[5491]: login: localhost[::1] dom0001 
> plaintext
> -ERR Invalid login
> ^]
> telnet> quit
> Connection closed.
> 
> Well, that's no good. So, I must have configured pam wrong. Now, if 
> anyone here has played with pam they know about the pam-service-guessing 
> game. It's actually quite fun. In this game you get to guess the service 
> name that a program will use; it's not always what you think it will be.
> 
> So, I initially had a service defined using the service name 'pop'. 
> Well, that's not working, so I created a configuration for 'pop', 
> 'pop3', and 'pop3d', a sample being shown below:
> 
> pop3d auth sufficient pam_mysql.so user=mail passwd=secret \
> host=localhost db=mail table=accountuser 
> usercolumn=username \
> passwdcolumn=password crypt=0
> pop3d account required pam_mysql.so user=mail passwd=secret \
> host=localhost db=mail table=accountuser 
> usercolumn=username \
> passwdcolumn=password crypt=0
> 
> Now, the imap configuration has the same format and information:
> 
> imap auth sufficient pam_mysql.so user=mail passwd=secret \
> host=localhost db=mail table=accountuser 
> usercolumn=username \
> passwdcolumn=password crypt=0
> imap account required pam_mysql.so user=mail passwd=secret \
> host=localhost db=mail table=accountuser 
> usercolumn=username \
> passwdcolumn=password crypt=0
> 
> The difference between imap and pop? imap works. Any ideas?
> 
> Regards, Dustin
> 
> 
> ---
> Dustin Puryear <[EMAIL PROTECTED]>
> UNIX and Network Consultant
> http://members.telocity.com/~dpuryear
> PGP Key available at http://www.us.pgp.net
> In the beginning the Universe was created.
> This has been widely regarded as a bad move. - Douglas Adams
> 






RE: 2.0 to 2.1 migration procedure

2002-05-03 Thread Patrick Lin

I will be very interested by that too

Best Regards
P.

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of 
> David Wright
> Sent: vendredi 3 mai 2002 03:14
> To: [EMAIL PROTECTED]
> Subject: 2.0 to 2.1 migration procedure
> 
> 
> I'm about to try out imapd-2.1.4 (as packaged by Henrique for 
> Debian). I 
> am currently running imapd-2.0.16 (custom-compiled) on a different 
> machine. Can somone point me to tips for how to migrate my users and 
> their mail? Do I just need to copy over the mailbox directory 
> hierarchy 
> and run reconstruct? Or do I also need to import and/or 
> reconstruct the 
> metadata?
> 
> 
> 





Migrate From 2.0 to 2.1.4

2002-05-06 Thread Patrick Lin

I actually Run :

- Cyrus imap 2.0.16 (auth against sasldb)
- Cyrus SASL 1.5.24
- Sendmail Switch 2.1.0

And want to use :

- Cyrus Imap 2.1.4 (auth against LDAP)
- Cyrus Sasl 2.1.2
- Sendmail 8.12.3 + SASLv2 Patch (from Ken)
- LDAP (probably open ldap)
- OpensSSL 0.9.6c


I want to know 
 * If I have something to aware of ?
 * Any tips .
 * Comments 

Thanks a lot 
P.





RE: Migrate From 2.0 to 2.1.4

2002-05-07 Thread Patrick Lin

Ok

Will try this week any way and will try write something
P.

> -Original Message-
> From: Lawrence Greenfield [mailto:[EMAIL PROTECTED]] 
> Sent: mardi 7 mai 2002 11:53
> To: David Wright
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Migrate From 2.0 to 2.1.4
> 
> 
> If someone tries Ken's instructions and finds problems (or it 
> works) I'd really appreciate them being written up in HTML 
> for inclusion into the doc/ directory.
> 
> thanks,
> Larry
> 
> 
> 





Re: Folder deliver

2002-10-03 Thread Patrick Welche

On Wed, Oct 02, 2002 at 03:53:15PM +0400, Sergey Merkuriev wrote:
> Hello All,
> 
> I know what this is not exim mail list, but I ask one question.
> I have Exim SMTP Server and have rule for deliver mail to Cyrus:
> 
> local_delivery:
> driver = smtp
> protocol = lmtp
> hosts = 127.0.0.1
> allow_localhost
> 
> How to create deliver mail  from some senders to IMAP user folder such as
> vasia.spam.
> LMTP protocol posible do it?

As Exim has now delivered the mail to Cyrus, why not write a sieve script
so that Cyrus sorts the mail into folders?

Patrick



Re: pop3d unstable

2002-10-30 Thread Patrick Boutilier
You might be running out of entrophy. What happens when you:

cat /dev/random

?



Felix Cuello wrote:

Hello,

   i'm using cyrus-2.1.9 and sasl 2.1.9, and pop3d sometimes doesn't respond.
That means, when I do this:

[root@sinclair tmp]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

pop3d does't respond...

but

[root@sinclair tmp]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK sinclair Cyrus IMAP4 v2.1.9 server ready

quickly show me OK.

---

This problem only occurs into my production server, in fact in my desktop computer
all works fine... with exactly the same configuration and packages

Do you know where can I start?

Thanks a lot,

Sorry for my poor english,

Felix
___ http://www.palermo.edu ___





Re: Strange compilation problem

2002-11-03 Thread Patrick Boutilier
Adrian,

Could be a wrong db.h
Which version is /usr/include/db.h ?



Adrian Senn wrote:

Hi list

I've got a strange compilation problem with cyrus and i've got no
idea how to resolve it.

I found on the googe group search someone other which got
the same problems as i do.

http://groups.google.de/groups?q=cyrusdb_db3.c:+In+function+%60mysync%27:&hl
=de&lr=&ie=UTF-8&selm=8131e265.0209180627.3d3f27fb%40posting.google.com&rnum
=1

The error which i get is

cyrusdb_db3.c
cyrusdb_db3.c: In function `mysync':
cyrusdb_db3.c:241: `DB_INCOMPLETE' undeclared (first use in this function)
cyrusdb_db3.c:241: (Each undeclared identifier is reported only once
cyrusdb_db3.c:241: for each function it appears in.)
cyrusdb_db3.c: In function `myopen':
cyrusdb_db3.c:350: warning: passing arg 2 of pointer to function from
incompatible pointer type
cyrusdb_db3.c:350: warning: passing arg 4 of pointer to function makes
pointer from integer without a cast
cyrusdb_db3.c:350: too few arguments to function
make[1]: *** [cyrusdb_db3.o] Error 1
make[1]: Leaving directory `/home/downloads/cyrus-imapd-2.1.9/lib'
make: *** [all] Error 1

Is there something wrong with the berkeley db?
I compiled it from the source (BerkeleyDB.4.1)
The SASL version is 2.1.9. Cyrus has the same version.

It's a SUSE Linux (8.1) Box. But i head the same problem before
the upgrading on the 8.0 version.

Thanks for any idea.

Regards Adrian Senn

--
|p mbox: [EMAIL PROTECTED] _ |
|g mbox: [EMAIL PROTECTED]  ASCII ribbon campaign ( )|
|www:    - against HTML email  X |
|     & vCards / \|







Re: quota corruption

2007-12-27 Thread Patrick Boutilier

Erol YILDIZ wrote:
I found it now. Its under /usr/lib/cyrus/bin but when I send quota -f 
command it gives 'quota: System I/O error No such file or directory'. Do you 
know why does it give this error?


Check your log files (usually /var/log/messages or /var/log/maillog) . 
There should be some indication as to what file/directory it can not find.


Otherwise you could strace the quota process.






- Original Message - 
From: "Simon Matter" <[EMAIL PROTECTED]>

To: "Alain Spineux" <[EMAIL PROTECTED]>
Cc: "Erol YILDIZ" <[EMAIL PROTECTED]>; 


Sent: Thursday, December 27, 2007 4:53 PM
Subject: Re: quota corruption



On Dec 27, 2007 2:44 PM, Erol YILDIZ <[EMAIL PROTECTED]>
wrote:


Hi,

I am using Suse linux enterprise server 9 with cyrus and for a few days
having some problems. For example when a user tries to purge deleted
mails,
outlook says 'The folder Inbox cannot be selected. This may be because
of a
limitation of your IMAP server or the folder may have been deleted or
moved.' and we have different similar connection problems and
syronization
problems. When I disable quota for the users, the problem ends. I read
about
corrupted quota files and that I can fix this by using 'quota -f'
command
but on SLES9 quota command doesnt have -f parameter.

Are you speaking about the linux "quota" command or
the cyrus one "cyrquota" ?

Alain, there is space for confusion here because there is no "cyrquota" in
the cyrus distribution, only Debian (any maybe others) rename it so.
However, I don't know how SuSE does it.

Simon






Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:[EMAIL PROTECTED]
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: quota corruption

2007-12-27 Thread Patrick Boutilier
Erol YILDIZ wrote:
> I get the error below. a_akpinar is an old user which I have deleted but 
> seems like its not been deleted from somewhere. How can I solve this?

What happens when you try to delete a_akpinar again? You will probably 
get the same I/O errors in which case just touch the needed files and 
try to delete a_akpinar again.

touch /var/spool/imap/user/a_akpinar/cyrus.header
touch /var/spool/imap/user/a_akpinar/cyrus.index
touch /var/spool/imap/user/a_akpinar/cyrus.cache


> 
> Dec 27 19:33:30 sles quota[14313]: IOERROR: opening 
> /var/spool/imap/user/a_akpinar/cyrus.header: No such file or directory
> 


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: 2.3.11 STARTTLS broken if tls_ca_file is defined

2008-01-15 Thread Patrick Boutilier

Sebastian Hagedorn wrote:

Hi,

please don't write to me personally but keep this on the list instead.

--On 15. Januar 2008 10:32:16 +0100 [EMAIL PROTECTED] wrote:


Here is my log, when i try to open a connection in TLS.

Jan 15 10:29:54 imaptest master[1024]: about to exec
/usr/local/cyrus/bin/imapd Jan 15 10:29:54 imaptest imap[1024]: executed
Jan 15 10:29:54 imaptest imap[1024]: accepted connection
Jan 15 10:29:54 imaptest imap[1024]: imapd:Loading hard-coded DH
parameters Jan 15 10:29:54 imaptest imap[1024]: wrong version number in
SSL_accept() -> fail Jan 15 10:29:54 imaptest imap[1024]: STARTTLS
negotiation failed: [10.1.45.1] Jan 15 10:29:55 imaptest imap[1024]:
accepted connection
Jan 15 10:29:55 imaptest imap[1024]: wrong version number in SSL_accept()
-> fail Jan 15 10:29:55 imaptest imap[1024]: STARTTLS negotiation failed:
[10.1.45.1]

Thanks a lot for further information.


OK, I guess that's helpful. The reason for the failure is this line:

wrong version number in SSL_accept() -> fail

Now the question is why that happens. This is the code that logs the line:

   case SSL_ERROR_SSL:
   err = ERR_get_error();
   if (err == 0) {
   syslog(LOG_DEBUG, "protocol error in SSL_accept() -> fail");
   } else {
   syslog(LOG_DEBUG, "%s in SSL_accept() -> fail",
  ERR_reason_error_string(err));
   }
   break;

So the server notes an SSL error, logs it and drops the connection. The 
cause for the error seems to be something like this:


"Versions in client/server SSL records do not agree.
Probably your client sends SSL2 client_hello handshake
message and server is configured only for SSL3/TLS1.
In this situation server does not accept SSL2
client_hello what is being manifested by "wrong version
number" error.
To resolve this error you may disable SSL2 on client
or enable SSL2 handshake on server.
tcpdump output from wrong session handshake
may be helpful too."

What I don't understand is how it could've worked in earlier versions. 
Anyway, could this be a client issue? Can you try other clients to see 
if they handle this differently? Can you disable SSLv2 in your client?




I had the same problem this morning after running 2.3.11 for over nine 
days. In my case restarting Thunderbird fixed my problem for now.




Jan 15 13:28:42 student imap[9814]: wrong version number in SSL_accept() 
-> fail


Jan 15 13:28:42 student imap[9814]: STARTTLS negotiation failed: 
TradeMart-2.EDnet.NS.CA [142.227.51.61]








Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:[EMAIL PROTECTED]
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Can't access the imap server using telnet, nor send email.

2008-01-22 Thread Patrick Boutilier
Adam Tauno Williams wrote:
>>> OK, so with PAM, how do you set passwords to your virtual users ?
>>> sorry, i'm like _really_ lost, and running out of time :-/
> 
> Then take a breather and go back to the documentation.
> 
> I'm not aware of any remotely normal configuration that would
> authenticate virtual user's against PAM. 

We use pam_mysql to authenticate against a MySQL database therefore have 
saslauthd configured to use PAM. :-)


   Virtual users are (AFAIK)
> usually authenticated against LDAP or an RDBMS since the essence of
> virtual users is that they are *not* system accounts.   It would be
> simpler to just authenticate them against whatever ident backend you are
> actually using (either via saslauthd or straight SASL).
> 
>> Virtual user ? This mean your user don have local access to the server
>> (ssh, ftp ...)
>> Then you can use sasldb, without saslauth
>> Exactly as I said.
>> Maybe you have some problem with domain.
>> 1 saspasswd2 foobar
>> 2 saspasswd2 [EMAIL PROTECTED]
>> 3 saspasswd2 [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Moving some files to another mount point

2008-02-16 Thread Patrick Boutilier
Josh Endries wrote:
> Hello,
> 
> My mail store is almost out of space. I have another disk partition I can 
> use, 
> but I'm not sure how to make it available. I'm using 2.2 with virtdomains, so 
> I 
> don't think I can move things to another Cyrus partition (no way that I'm 
> aware 
> of). I can't seem to rename a mailbox...
> 
> Is it possible to mount another partition (e.g. ad0s1d) within my 
> /var/spool/imap hierarchy (e.g. mount another it as 
> /var/spool/imap/domain/blah.com)? Would that cause all sorts of problems? I 
> don't know if Cyrus uses fs-specific things, like inodes or anything, that 
> would 
> cause conflicts...

We use many mount points and symbolic links inside the Cyrus partition. 
Should work the same way for virtual domains and a direct mount. The 
only draw back is that singleinstancestore won't be as efficient as hard 
links can not be made between mount points. But it is better than 
running out of disk space. :-)



ll /imap/mail
total 0

lrwxrwxrwx  1 root  root  10 Apr 20  2005 A -> /mnt/ABC/A
lrwxrwxrwx  1 root  root  10 Apr 20  2005 B -> /mnt/ABC/B
lrwxrwxrwx  1 root  root  10 Apr 20  2005 C -> /mnt/ABC/C
lrwxrwxrwx  1 root  root   9 Nov 25 12:06 D -> /mnt/DE/D
lrwxrwxrwx  1 root  root   9 Nov 25 12:06 E -> /mnt/DE/E
lrwxrwxrwx  1 root  root  10 Nov 25 12:06 F -> /mnt/FSW/F
lrwxrwxrwx  1 root  root  10 Apr 20  2005 G -> /mnt/GHI/G
lrwxrwxrwx  1 root  root  10 Apr 20  2005 H -> /mnt/GHI/H
lrwxrwxrwx  1 root  root  10 Apr 20  2005 I -> /mnt/GHI/I
lrwxrwxrwx  1 root  root  10 Apr 20  2005 J -> /mnt/JKL/J
lrwxrwxrwx  1 root  root  10 Apr 20  2005 K -> /mnt/JKL/K
lrwxrwxrwx  1 root  root  10 Apr 20  2005 L -> /mnt/JKL/L
lrwxrwxrwx  1 root  root  10 Apr 20  2005 M -> /mnt/MNO/M
lrwxrwxrwx  1 root  root  10 Apr 20  2005 N -> /mnt/MNO/N
lrwxrwxrwx  1 root  root  10 Apr 20  2005 O -> /mnt/MNO/O
lrwxrwxrwx  1 root  root  10 Nov 25 12:07 P -> /mnt/PQR/P
lrwxrwxrwx  1 root  root  10 Nov 25 12:07 Q -> /mnt/PQR/Q
lrwxrwxrwx  1 root  root  10 Nov 25 12:07 R -> /mnt/PQR/R
lrwxrwxrwx  1 root  root  10 Nov 25 12:07 S -> /mnt/FSW/S
drwx--  2 cyrus cyrus  1 Feb 16 10:49 stage.
lrwxrwxrwx  1 root  root  10 Nov 25 12:07 T -> /mnt/TUV/T
lrwxrwxrwx  1 root  root  10 Nov 25 12:07 U -> /mnt/TUV/U
lrwxrwxrwx  1 root  root  10 Nov 25 12:07 V -> /mnt/TUV/V
lrwxrwxrwx  1 root  root  10 Nov 25 12:08 W -> /mnt/FSW/W

> 
> Thank you!
> 
> J
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Miserable performance of cyrus-imapd 2.3.9 -- seems to be lockingissues

2008-03-06 Thread Patrick Boutilier
Vincent Fox wrote:
> Jeff Fookson wrote:
>> We are planning to run the mirrors
>> off a 4-port 3ware RAID card even though we're not overly fond of 
>> 3ware (we have a fair amount of experience
>> with RAID5 arrays on 3ware cards on our research  machines where they 
>> perform adequately but
>> not more). We are hoping the 3ware RAID1 will be a bit better than 
>> software RAID1.
> 
> I used to use those, awesome little cards!

We have used 3ware cards as well but are now switching to Highpoint RAID 
cards.

> 
>> Can someone in fact suggest a good battery of testing software so that 
>> we don't prematurely certify that a new system
>> is ready for production use (or a useful statistic to monitor)?
> 
> This has been a sticky issue for UC Davis.  Run filebench test "varmail" 
> to prove disk subsystem.
> The SLAMd stuff seems to work for simulating client load, but all 
> attempts to simulate
> a client load-pattern are devilishly difficult to get right.
> 
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Miserable performance of cyrus-imapd 2.3.9 -- seems to be lockingissues

2008-03-06 Thread Patrick Boutilier
Zachariah Mully wrote:
> Patrick Boutilier wrote:
> 
>> We have used 3ware cards as well but are now switching to Highpoint 
>> RAID cards.
>>
> 
> Hopefully you're testing them extensively. I found them, at least the 
> last time I used them (RocketRAID?), to be woefully lacking in the linux 
> driver area as well as performance.

We are using the RocketRAID 3xxx series which has the drivers in the 
Linux kernel. Just to clarify, we are using 3ware and RocketRAID cards 
for disk based backups, not for Cyrus, although we might in the future.

  In fact, I've still got a server
> with a Highpoint dedicated SATA RAID card in it which has 6 of 8 drives 
> popped out, since I could never get it to reliably work under RH ES4, so 
> had to use the two sata connectors luckily present on the mobo.
> 
> Z


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Refusing users without a mailbox?

2008-03-11 Thread Patrick Boutilier
Paul van der Vlis wrote:
> Hello,
> 
> A customer is using a system with a mailserver and a FTP-server on one
> machine.
> 
> Now a FTP-user found out, that he can login with his FTP-username and
> password into the webmail (Horde/IMP), and send mail.
> 
> FTP-users do not have a mailbox. Is there a way to make the
> authentication "not OK" for users without a mailbox?
> Or only "OK" for users who are member of a group?


You should be able to use pam_require 
(http://www.splitbrain.org/projects/pam_require). Make a group for your 
mail users and put the users in that group. Then configure 
/etc/pam.d/imap (or wherever your pam config is located) to use 
pam_require to require that users that want to log into Cyrus be in that 
group.


> 
> I am using Cyrus with saslauthd, PAM and the traditional Unix
> authentication mechanism (pam_unix.so).
> 
> With regards,
> Paul van der Vlis.
> 
> 
> 
> 


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: IMAPS problem

2008-03-30 Thread Patrick Boutilier
Bernhard D Rohrer wrote:
> Hi all
> 
> I have created my TLS cert according to these instructions:
> 
> openssl req -new -nodes -out req.pem -keyout key.pem  
> openssl rsa -in key.pem -out new.key.pem
> openssl x509 -in req.pem -out ca-cert -req \
> -signkey new.key.pem -days 999 
> 
> mkdir /var/imap
> 
> cp new.key.pem /var/imap/server.pem
> rm new.key.pem
> cat ca-cert >> /var/imap/server.pem
> 
> chown cyrus:mail /var/imap/server.pem
> chmod 600 /var/imap/server.pem # Your key should be protected
> 
> echo tls_ca_file: /var/imap/server.pem >> /etc/imapd.conf
> echo tls_cert_file: /var/imap/server.pem >> /etc/imapd.conf
> echo tls_key_file: /var/imap/server.pem >> /etc/imapd.conf
> 
> [EMAIL PROTECTED]:/usr/lib/ssl# ls -al im*
> -rw--- 1 cyrus mail 5219 2008-03-31 00:12 imap.pem
> 
> and I am getting this error:
> 
> Mar 31 01:33:41 collab cyrus/imaps[12733]: unable to get certificate 
> from '/usr/lib/ssl/imap.pem'
> Mar 31 01:33:41 collab cyrus/imaps[12733]: TLS server engine: cannot 
> load cert/key data, may be a cert/key mismatch?
> Mar 31 01:33:41 collab cyrus/imaps[12733]: error initializing TLS
> Mar 31 01:33:41 collab cyrus/imaps[12733]: Fatal error: tls_init() failed
> Mar 31 01:33:41 collab cyrus/imaps[12733]: DBERROR: error exiting 
> application: Invalid argument
> 
> help??


unable to get certificate from '/usr/lib/ssl/imap.pem'

Look in /etc/imapd.conf and make sure you don't have tls_cert_file 
defined twice.


> 
> thanks
> 
> Bernhard
> 


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: second instance of cyrus imapd should obey /etc/pam.d/imapnew

2008-06-23 Thread Patrick Boutilier
Ashay Chitnis wrote:
> Hi guys,
> 
> Here is my query. I have cyrus-imapd (with cyrus-sasl)which runs on 143 
> and 110. I want to have user level restrictions on my 143 port.. I have 
> generated two instances on imapd one on 143 and other on 5122 ports.
> 
> SERVICES {
>   # add or remove based on preferences
>   imap  cmd="imapd" listen="imap" prefork=5
> #imaps  cmd="imapd -s" listen="imaps" prefork=1
>   pop3  cmd="pop3d" listen="pop3" prefork=3
> #pop3s  cmd="pop3d -s" listen="pop3s" prefork=1
>   sieve cmd="timsieved" listen="sieve" prefork=0
> #Added by Ashay
>  * imapnew cmd="imapd" listen="imapnew" prefork=5*
> etc..
> }
> 
> now i want one imap on 143 to obey /etc/pam.d/imap and other imapnew 
> (5122) instance to obey /etc/pam.d/imapnew
> 
> can anyone tell me how this is possible?
> 
> my /etc/pam.d/imap file:
> */
> cat /etc/pam.d/imap
> authrequired/lib/security/pam_ldap.so
> auth  required /lib/security/pam_listfile.so  item=user sense=allow 
> file=/usr/local/etc/imapallow onerr=fail
> account required/lib/security/pam_ldap.so/*
> 
> 
> my /etc/pam.d/imapnew file:
> */
> cat /etc/pam.d/imapnew
> authsufficient  /lib/security/pam_ldap.so
> account sufficient  /lib/security/pam_ldap.so/*
> 
> can anyone suggest how to achieve this? is there any PAM_SERVICE=imapnew 
> parameter i can pass??

Do you compile from source? If so you can change the 2 lines in imapd.c 
that read:

sasl_server_new("imap"...

to

sasl_server_new("imapnew"...

Compile imapd again and copy the resulting binary to imapdnew. Then use 
this line in cyrus.conf:

imapnew cmd="imapdnew" listen="imapnew" prefork=5*


> 
> regards,
> Ashay
> 
> 
> 
> 
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Several cyrus instances on same host.

2008-08-01 Thread Patrick Boutilier
UnlimitedMail.net - Carles Xavier Munyoz Baldó wrote:
> Hello,
> Is it possible to run several cyrus imap instances (with different cyrus.conf 
> and imapd.conf files) on the same server?
> 
> I will like to have all related files for imap server A in one directory 
> (/imapA) and all the related files for imap server B in another directory 
> (/imapB). Is it possible?

 From "man master" . Configure your alternate config files to point to 
different directories.


OPTIONS
-C alternate imapd.conf
   Specifies an alternate imapd.conf for use by master (note 
that this will not affect any sub-processes spawned by master, you 
should specify those specifically in the respective entries in cyrus.conf).

-M alternate cyrus.conf
   Specifies an alternate cyrus.conf for use by master.


> 
> Best regards.
> ---
> UnlimitedMail.net - Carles Xavier Munyoz Baldó
> [EMAIL PROTECTED]
> http://www.unlimitedmail.net/
> ---
> 
> ---
> La información contenida en este e-mail es confidencial, 
> siendo para uso exclusivo del destinatario arriba mencionado.
> Le informamos que está totalmente prohibida cualquier 
> utilización, divulgación, distribución y/o reproducción de 
> esta comunicación sin autorización expresa en virtud de la 
> legislación vigente. Si ha recibido este mensaje por error, 
> le rogamos nos lo notifique inmediatamente por la misma vía 
> y proceda a su eliminación.
> ---
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Cyrus Deadblocking

2008-12-15 Thread Patrick Boutilier
Henrique de Moraes Holschuh wrote:
> On Mon, 15 Dec 2008, Teresa wrote:
>> since yesterday i have strange behavier of my productive mail server, and i
>> cannt find the reason for 2 days allready.
> 
> Which kernel?  If it is Linux 2.6.27.8 or 2.6.27.9, try downgrading...
> 

What is wrong with those kernels?

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: choosing a file system

2009-01-05 Thread Patrick Boutilier

David Lang wrote:

On Sat, 3 Jan 2009, Rob Mueller wrote:


But the new Solid-State-Disks seem very promising. They are claimed to
give 30x the throughput of a 15k rpm disk. If IO improves by 30 times
that should make all these optimizations unnecessary.
As my boss used to tell me ... Good hardware always compensates for
not-so-good software.

What we've found is that the meta-data (eg mailbox.db, seen db's, quota
files, cyrus.* files) use WAY more IO than the email data, but only use
1/20th the space.

By separating the meta data onto RAID1 10k/15k RPM drives, and the email
data onto RAID5/6 7.2k RPM drives, you can get a good balance of
space/speed.


how do you move the cyrus* files onto other drives?


metapartition_files and metapartition-default imapd.conf options in 
cyrus-imapd 2.3.x





David Lang

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:bouti...@ednet.ns.ca
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: migrate from 64 to 32 bits

2009-01-14 Thread Patrick Boutilier
Simon Matter wrote:
>> On Tue, 2009-01-13 at 10:34 +0100, s.de...@computel.nl wrote:
>>> Hi,
>>>
>>> A customer of outs wishes to migrate cyrus and postfix from a 64 bits to
>>> a
>>> 32 bits server. Normally I just copy yhe configuration files and several
>>> directories ( /var/lib/imap and /var/spool/imap) but the question is,
>>> are
>>> the file compatible in a 32 bits environment when copied from a 64 bits
>>> environment?
>>>
>>> Regards,
>>>
>> How strange , I had a problem doing right the opposite. ( from 32 to
>> 64 )
>>
>> We migrated the mailboxes , from 32 bit to 64 bit ,  and all the seen
>> flags got messed up. I had to run imapsync to get all the seen flags set
>> up
> 
> Interesting. Did you have the same version of Cyrus-IMAPd on both servers?
> I recently did a migration of 2.3.13 from RHEL3/i386 to RHEL5/x86_64
> without any such issues. So, I'm really wondering why it sometimes works
> and for others it does not.


We went from Fedora Core 2 (32 bit) to CentOS 5.2 (64 bit) without any 
issues. Both were running Cyrus 2.3.x.


> 
> Simon
> 
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Best install path for Redhat Enterprise 5

2009-02-03 Thread Patrick Boutilier
D G Teed wrote:
> I'm looking at the various guides I see from google and from
> that deposited by Redhat's RPM for cyrus-imapd.  Nothing
> appears to be really current.
> 
> Most guides refer to building cyrus from source. I usually
> avoid doing that as it is a hassle to maintain packages that way,
> but then again Redhat has not updated their build in the last
> 2 years so perhaps it doesn't matter.
> 
> I have a problem starting cyrus from the Redhat package and
> the init script.
> 
> I can start /usr/lib/cyrus-imapd/cyrus-master as root
> and it works OK.   I can login as cyrus with imtest.
> 
> If I run the cyrus-impad init, which works fine on
> another Redhat install, I get errors:
> 
> Feb  3 16:20:34 navi master[13825]: process started
> Feb  3 16:20:34 navi master[13827]: about to exec 
> /usr/lib/cyrus-imapd/ctl_cyrusdb
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR db4: /cyrus/imap/db: 
> Permission denied
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR db4: 
> /cyrus/imap/db/__db.001: Permission denied
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: dbenv->open 
> '/cyrus/imap/db' failed: Permission denied
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: init() on berkeley
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: writing 
> /cyrus/imap/db/skipstamp: Permission denied
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: init() on skiplist
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: recovering cyrus databases
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: IOERROR: opening 
> /cyrus/imap/mailboxes.db: Permission denied
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: opening 
> /cyrus/imap/mailboxes.db: cyrusdb error
> Feb  3 16:20:34 navi master[13825]: process 13827 exited, status 75
> Feb  3 16:20:34 navi master[13828]: about to exec /usr/lib/cyrus-imapd/idled
> Feb  3 16:20:34 navi idled[13828]: DBERROR: dbenv->open '/cyrus/imap/db' 
> failed: Permission denied
> Feb  3 16:20:34 navi idled[13828]: DBERROR: init() on berkeley
> Feb  3 16:20:34 navi idled[13828]: DBERROR: reading 
> /cyrus/imap/db/skipstamp, assuming the worst: Permission denied
> 
> And it goes on until I stop the service.
> 
> The files and directories are owned by cyrus, so the permissions issue
> seems odd.  E..g.
> 
> ls -l /cyrus/imap/
> total 100
> -rw--- 1 cyrus mail  144 Feb  3 16:15 annotations.db
> drwx-- 2 cyrus mail 4096 Feb  3 16:20 db
> drwx-- 2 cyrus mail 4096 Feb  3 16:15 db.backup1
> -rw--- 1 cyrus mail 8192 Feb  3 16:15 deliver.db
> drwx-- 2 cyrus mail 4096 Feb  3 13:40 log
> -rw--- 1 cyrus mail  144 Feb  3 16:15 mailboxes.db
> drwx-- 2 cyrus mail 4096 Feb  3 13:40 msg
> drwx-- 2 cyrus mail 4096 Feb  3 16:17 proc
> drwx-- 2 cyrus mail 4096 Feb  3 13:40 ptclient
> drwx-- 2 cyrus mail 4096 Feb  3 16:20 rpm
> drwxr-x--- 2 cyrus mail 4096 Feb  3 16:15 socket
> drwx-- 2 cyrus mail 4096 Feb  3 13:40 sync
> 
> I have one other Redhat server running this OK, but I don't know what 
> the difference is.
> For this reason, I'd rather not fix the problem by building from source
> and having different styles of cyrus running.
> 
> Does anyone have a pointer?


What does the following commands output?

ls -ld /cyrus
ls -ld /cyrus/imap




> 
> --Donald
> 
> 
> 
> 
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Another cache bug!

2009-02-08 Thread Patrick Boutilier
Bron Gondwana wrote:
> Wow, this is the thanks I get for doing sanity checks on files, find more 
> bugs!
> 
> This one is due to delayed expunge, plain and simple.  Cyrus decides what 
> cache
> records to copy during an IMAP COPY command by reading the cache offsets for
> msgno and msgno+1 (or the end of the cache file if it's the last msgno).
> 
> Obviously if some intervening messages have already been deleted from the
> cyrus.index then it will be copying all those cache records as well to the
> destination folder.  Oops.
> 
> The attached patch reworks mailbox_cache_size into two functions, the second
> being mailbox_cache_size_detail that takes memory locations for the cache mmap
> rather than a mailbox object (because imapd doesn't update the locations in
> the object correctly according to my testing, *sigh*.  Gotta love global
> variables)
> 
> It then uses mailbox_cache_size_detail to calculate the ACTUAL record length
> for this single cache item rather than blindly copying everything up to the
> next index record's pointer.
> 
> Also note: in the event of cache corruption, mailbox_cache_size_detail returns
> zero bytes, which correctly makes append_copy re-parse the message file.  It's
> all shiny :)
> 
> Wes/Ken - please apply to CVS :)
> 
> Thanks,
> 
> Bron.


I was wondering if this bug would account for the behaviour that I am 
seeing. I am getting corrupt cyrus.expunge files that are causing 
unexepunge to segfault.

Looking at the metadata I have noticed that I am getting NEW files for 
expunge,index, and cache on affected mail boxes.




[r...@student2 boutilpj]# find -name \*.NEW\*
./RSS Feeds/KDE-Apps-org Content/cyrus.expunge.NEW
./RSS Feeds/KDE-Apps-org Content/cyrus.index.NEW
./RSS Feeds/KDE-Apps-org Content/cyrus.cache.NEW
./RSS Feeds/Secunia - Latest Secunia Security Advisories/cyrus.expunge.NEW
./RSS Feeds/Secunia - Latest Secunia Security Advisories/cyrus.index.NEW
./RSS Feeds/Secunia - Latest Secunia Security Advisories/cyrus.cache.NEW
./RSS Feeds/Linux Today/cyrus.expunge.NEW
./RSS Feeds/Linux Today/cyrus.index.NEW
./RSS Feeds/Linux Today/cyrus.cache.NEW
./RSS Feeds/Slashdot/cyrus.expunge.NEW
./RSS Feeds/Slashdot/cyrus.index.NEW
./RSS Feeds/Slashdot/cyrus.cache.NEW
./RSS Feeds/Freshmeat/cyrus.expunge.NEW
./RSS Feeds/Freshmeat/cyrus.index.NEW
./RSS Feeds/Freshmeat/cyrus.cache.NEW
./cyrus.expunge.NEW
./Mailing Lists/IMP/cyrus.expunge.NEW
./Mailing Lists/IMP/cyrus.index.NEW
./Mailing Lists/IMP/cyrus.cache.NEW
./cyrus.cache.NEW

> 
> 
> 
> 
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Another cache bug!

2009-02-08 Thread Patrick Boutilier
Bron Gondwana wrote:
> On Sun, Feb 08, 2009 at 08:18:44AM -0400, Patrick Boutilier wrote:
>> Bron Gondwana wrote:
>>> Also note: in the event of cache corruption, mailbox_cache_size_detail 
>>> returns
>>> zero bytes, which correctly makes append_copy re-parse the message file.  
>>> It's
>>> all shiny :)
>>>
>>> Wes/Ken - please apply to CVS :)
>>>
>>> Thanks,
>>>
>>> Bron.
>>
>> I was wondering if this bug would account for the behaviour that I am  
>> seeing. I am getting corrupt cyrus.expunge files that are causing  
>> unexepunge to segfault.
>>
>> Looking at the metadata I have noticed that I am getting NEW files for  
>> expunge,index, and cache on affected mail boxes.
> 
> Unlikely.  This bug caused extra junk (sometimes quite a lot of it!) to
> be padded into the cyrus.cache file, but the offsets were still correct
> in the index file, so it shouldn't have caused any user-visible
> breakage.
> 
>> [r...@student2 boutilpj]# find -name \*.NEW\*
>> ./RSS Feeds/KDE-Apps-org Content/cyrus.expunge.NEW
>> ./RSS Feeds/KDE-Apps-org Content/cyrus.index.NEW
>> ./RSS Feeds/KDE-Apps-org Content/cyrus.cache.NEW
>> ./RSS Feeds/Secunia - Latest Secunia Security Advisories/cyrus.expunge.NEW
>> ./RSS Feeds/Secunia - Latest Secunia Security Advisories/cyrus.index.NEW
>> ./RSS Feeds/Secunia - Latest Secunia Security Advisories/cyrus.cache.NEW
>> ./RSS Feeds/Linux Today/cyrus.expunge.NEW
>> ./RSS Feeds/Linux Today/cyrus.index.NEW
>> ./RSS Feeds/Linux Today/cyrus.cache.NEW
>> ./RSS Feeds/Slashdot/cyrus.expunge.NEW
>> ./RSS Feeds/Slashdot/cyrus.index.NEW
>> ./RSS Feeds/Slashdot/cyrus.cache.NEW
>> ./RSS Feeds/Freshmeat/cyrus.expunge.NEW
>> ./RSS Feeds/Freshmeat/cyrus.index.NEW
>> ./RSS Feeds/Freshmeat/cyrus.cache.NEW
>> ./cyrus.expunge.NEW
>> ./Mailing Lists/IMP/cyrus.expunge.NEW
>> ./Mailing Lists/IMP/cyrus.index.NEW
>> ./Mailing Lists/IMP/cyrus.cache.NEW
>> ./cyrus.cache.NEW
> 
> Yeah, so something is crashing.  There are a huge variety of things
> that could have caused problems (including kernels 2.6.22 -> 2.6.25.7 or
> so on 64 bit processors, where there was an MMAP page fault bug.  But you
> should have seen a LOT more corruption in that case.  Maybe you just
> haven't noticed it yet!)

Cyrus 2.3.13 compiled from source
Kernel 2.6.27.7 , x86_64
CentOS 5.2

> 
> What are you seeing in your syslog?  You do read your syslog, right?
> (actually, I don't - it's bloody huge.  We have auditlog as well, which
> more that doubles its size.  On the other hand, we have a perl program
> which reads it in real time and emails us if it sees anything
> unexpected)

Lots of these:

Feb  8 13:33:59 student2 cyr_expire[29242]: IOERROR: reading cache 
record for user.wooddm: got bogus offset 0 for 68/3; try reconstruct
Feb  8 13:33:59 student2 cyr_expire[29242]: failure expiring 
user.wooddm: System I/O error


> 
> Also, if it's segfaulting, you should be able to load the core file up
> in gdb and get a backtrace - any chance of emailing that to the list
> along with your imapd.conf and the exact version of cyrus that you're
> running.

I managed to "fix" things by lowering -X from 7 days to 1 day . For some 
reason cyr_expire ran without errors with -X1

/usr/local/cyrus/bin/cyr_expire -E 77 -X 3 -v -a -p 'user.wooddm'


Which brings me to another question. Why does cyr_expire have to be run 
with -E ? I put it up to 77 when running cyr_expire manually just so it 
wouldn't spend 30 minutes cleaning up the duplicate delivery database. :-)

When the corruption comes back I will attempt to get a backtrace from 
unexpunge, as it does segfault.

Feb  8 09:56:31 student2 kernel: unexpunge[21258]: segfault at 
7fa403d862dc ip 00405d64 sp 7fff9b1abd70 error 4 in 
unexpunge[40+cb000]


> 
> Thanks,
> 
> Bron.


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Another cache bug!

2009-02-08 Thread Patrick Boutilier
Bron Gondwana wrote:
> On Sun, Feb 08, 2009 at 09:01:47PM -0400, Patrick Boutilier wrote:
>> Bron Gondwana wrote:
>>> What are you seeing in your syslog?  You do read your syslog, right?
>>> (actually, I don't - it's bloody huge.  We have auditlog as well, which
>>> more that doubles its size.  On the other hand, we have a perl program
>>> which reads it in real time and emails us if it sees anything
>>> unexpected)
>> Lots of these:
>>
>> Feb  8 13:33:59 student2 cyr_expire[29242]: IOERROR: reading cache  
>> record for user.wooddm: got bogus offset 0 for 68/3; try reconstruct
>> Feb  8 13:33:59 student2 cyr_expire[29242]: failure expiring  
>> user.wooddm: System I/O error
> 
> Wow, didn't I write a nice syslog message for you.
> 
> So - did you try a reconstruct?

No, I wasn't sure if reconstructing would bring back expunged e-mails or 
not. Plus I had 3893 accounts showing these errors and once cyr_expire 
started working with -X1 I didn't pursue reconstruct. :-)

One thing I forgot to mention is that /var/imap is on an ext4 filesystem 
and all the metadata is stored there.


metapartition_files: header index cache expunge squat
metapartition-default: /var/imap/metadata
delete_mode:delayed
expunge_mode:delayed

> 
> 68/3 - yeah, so not such a nice message after all.  I need
> mailbox->expunge_exists or something!
> 
> Bron.


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Another cache bug!

2009-02-08 Thread Patrick Boutilier
Bron Gondwana wrote:
> On Sun, Feb 08, 2009 at 09:01:47PM -0400, Patrick Boutilier wrote:
>> Feb  8 13:33:59 student2 cyr_expire[29242]: IOERROR: reading cache  
>> record for user.wooddm: got bogus offset 0 for 68/3; try reconstruct
>> Feb  8 13:33:59 student2 cyr_expire[29242]: failure expiring  
>> user.wooddm: System I/O error
> 
> OK - so apart from the "you need to reconstruct" bit, this message
> actually sucks.
> 
> The attached patch will make things much more useful! (but the core
> message of "things are messed up in those there index files, just
> reconstruct the sucker already) is the same.
> 
> Bron ( going to commit this to CVS too )
> 

Patch applied and I will post log entries when the errors come back.

Thanks.



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Another cache bug!

2009-02-09 Thread Patrick Boutilier

Patrick Boutilier wrote:

Bron Gondwana wrote:

On Sun, Feb 08, 2009 at 09:01:47PM -0400, Patrick Boutilier wrote:
Feb  8 13:33:59 student2 cyr_expire[29242]: IOERROR: reading cache  
record for user.wooddm: got bogus offset 0 for 68/3; try reconstruct
Feb  8 13:33:59 student2 cyr_expire[29242]: failure expiring  
user.wooddm: System I/O error

OK - so apart from the "you need to reconstruct" bit, this message
actually sucks.

The attached patch will make things much more useful! (but the core
message of "things are messed up in those there index files, just
reconstruct the sucker already) is the same.

Bron ( going to commit this to CVS too )



Patch applied and I will post log entries when the errors come back.

Thanks.



Feb  9 03:31:21 student2 cyr_expire[4527]: IOERROR: reading cache record 
for user.wwood: item 1 has bogus offset 1818891452 of 56252 for 2/8; 
mailbox needs a reconstruct


Feb  9 03:31:21 student2 cyr_expire[4527]: failure expiring user.wwood: 
System I/O error




Running reconstruct on the mailbox does fix the problem.





Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:bouti...@ednet.ns.ca
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Another cache bug!

2009-03-03 Thread Patrick Boutilier

Patrick Boutilier wrote:

Patrick Boutilier wrote:

Bron Gondwana wrote:

On Sun, Feb 08, 2009 at 09:01:47PM -0400, Patrick Boutilier wrote:
Feb  8 13:33:59 student2 cyr_expire[29242]: IOERROR: reading cache  
record for user.wooddm: got bogus offset 0 for 68/3; try reconstruct
Feb  8 13:33:59 student2 cyr_expire[29242]: failure expiring  
user.wooddm: System I/O error

OK - so apart from the "you need to reconstruct" bit, this message
actually sucks.

The attached patch will make things much more useful! (but the core
message of "things are messed up in those there index files, just
reconstruct the sucker already) is the same.

Bron ( going to commit this to CVS too )



Patch applied and I will post log entries when the errors come back.

Thanks.



Feb  9 03:31:21 student2 cyr_expire[4527]: IOERROR: reading cache record 
for user.wwood: item 1 has bogus offset 1818891452 of 56252 for 2/8; 
mailbox needs a reconstruct


Feb  9 03:31:21 student2 cyr_expire[4527]: failure expiring user.wwood: 
System I/O error




Running reconstruct on the mailbox does fix the problem.



I wrote a script to reconstruct any mailbox that showed corruption 
during cyr_expire. I had to reconstruct about 4000 accounts the first 
week and another 5000 or so the second week. It has been well over two 
weeks now since any further corruption.


The only thing I can think of is that these mailboxes have been 
"corrupt" for quite a while (years maybe) but they only started showing 
problems once we enabled delayed expunge/delete .










Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:bouti...@ednet.ns.ca
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

mailbox directory

2009-03-03 Thread Tanis Patrick
Greetings,
I am using cyrus on redhat enterprise linux 5.3. Since i have upgraded to the 
last version, i notice the partition mailbox grow everyday.
Any idea.

Tanis Patrick
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

unexpunge segfaults with -l on some mailboxes

2009-03-11 Thread Patrick Boutilier

Cyrus 2.3.13:


[cy...@student2 ~]$ gdb /usr/local/cyrus/bin/unexpunge core.16094
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.

Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...(no debugging 
symbols found)

Using host libthread_db library "/lib64/libthread_db.so.1".


warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/local/lib64/libsasl2.so.2...done.
Loaded symbols for /usr/local/lib64/libsasl2.so.2
Reading symbols from /lib64/libssl.so.6...done.
Loaded symbols for /lib64/libssl.so.6
Reading symbols from /lib64/libcrypto.so.6...done.
Loaded symbols for /lib64/libcrypto.so.6
Reading symbols from /lib64/libresolv.so.2...done.
Loaded symbols for /lib64/libresolv.so.2
Reading symbols from /lib64/libdb-4.3.so...done.
Loaded symbols for /lib64/libdb-4.3.so
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/libdl.so.2...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /usr/lib64/libgssapi_krb5.so.2...done.
Loaded symbols for /usr/lib64/libgssapi_krb5.so.2
Reading symbols from /usr/lib64/libkrb5.so.3...done.
Loaded symbols for /usr/lib64/libkrb5.so.3
Reading symbols from /lib64/libcom_err.so.2...done.
Loaded symbols for /lib64/libcom_err.so.2
Reading symbols from /usr/lib64/libk5crypto.so.3...done.
Loaded symbols for /usr/lib64/libk5crypto.so.3
Reading symbols from /usr/lib64/libz.so.1...done.
Loaded symbols for /usr/lib64/libz.so.1
Reading symbols from /lib64/libpthread.so.0...done.
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib64/libkrb5support.so.0...done.
Loaded symbols for /usr/lib64/libkrb5support.so.0
Reading symbols from /lib64/libkeyutils.so.1...done.
Loaded symbols for /lib64/libkeyutils.so.1
Reading symbols from /lib64/libselinux.so.1...done.
Loaded symbols for /lib64/libselinux.so.1
Reading symbols from /lib64/libsepol.so.1...done.
Loaded symbols for /lib64/libsepol.so.1
Core was generated by `/usr/local/cyrus/bin/unexpunge -l user.boutilpj'.
Program terminated with signal 11, Segmentation fault.
#0  0x00405d64 in list_expunged ()
(gdb) bt
#0  0x00405d64 in list_expunged ()
#1  0x004073f1 in main ()
(gdb)

begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:bouti...@ednet.ns.ca
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: unexpunge segfaults with -l on some mailboxes

2009-03-11 Thread Patrick Boutilier

Patrick Boutilier wrote:

Cyrus 2.3.13:


[cy...@student2 ~]$ gdb /usr/local/cyrus/bin/unexpunge core.16094
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you 
are
welcome to change it and/or distribute copies of it under certain 
conditions.

Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...(no debugging 
symbols found)

Using host libthread_db library "/lib64/libthread_db.so.1".


warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/local/lib64/libsasl2.so.2...done.
Loaded symbols for /usr/local/lib64/libsasl2.so.2
Reading symbols from /lib64/libssl.so.6...done.
Loaded symbols for /lib64/libssl.so.6
Reading symbols from /lib64/libcrypto.so.6...done.
Loaded symbols for /lib64/libcrypto.so.6
Reading symbols from /lib64/libresolv.so.2...done.
Loaded symbols for /lib64/libresolv.so.2
Reading symbols from /lib64/libdb-4.3.so...done.
Loaded symbols for /lib64/libdb-4.3.so
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/libdl.so.2...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /usr/lib64/libgssapi_krb5.so.2...done.
Loaded symbols for /usr/lib64/libgssapi_krb5.so.2
Reading symbols from /usr/lib64/libkrb5.so.3...done.
Loaded symbols for /usr/lib64/libkrb5.so.3
Reading symbols from /lib64/libcom_err.so.2...done.
Loaded symbols for /lib64/libcom_err.so.2
Reading symbols from /usr/lib64/libk5crypto.so.3...done.
Loaded symbols for /usr/lib64/libk5crypto.so.3
Reading symbols from /usr/lib64/libz.so.1...done.
Loaded symbols for /usr/lib64/libz.so.1
Reading symbols from /lib64/libpthread.so.0...done.
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib64/libkrb5support.so.0...done.
Loaded symbols for /usr/lib64/libkrb5support.so.0
Reading symbols from /lib64/libkeyutils.so.1...done.
Loaded symbols for /lib64/libkeyutils.so.1
Reading symbols from /lib64/libselinux.so.1...done.
Loaded symbols for /lib64/libselinux.so.1
Reading symbols from /lib64/libsepol.so.1...done.
Loaded symbols for /lib64/libsepol.so.1
Core was generated by `/usr/local/cyrus/bin/unexpunge -l user.boutilpj'.
Program terminated with signal 11, Segmentation fault.
#0  0x00405d64 in list_expunged ()
(gdb) bt
#0  0x00405d64 in list_expunged ()
#1  0x004073f1 in main ()
(gdb)



Darn. This is caused by mailbox corruption again. My script to detect 
corruption wasn't working properly. Any idea how we can track down what 
is causing the corruption?


Thanks.


Mar 11 03:05:52 student2 cyr_expire[7604]: IOERROR: reading cache record 
for user.boutilpj: item 1 has bogus offset 1685634032 of 2049160 for 
5020/6938; mailbox needs a reconstruct


Mar 11 03:05:52 student2 cyr_expire[7604]: failure expiring 
user.boutilpj: System I/O error






Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:bouti...@ednet.ns.ca
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: unexpunge segfaults with -l on some mailboxes

2009-03-12 Thread Patrick Boutilier

Bron Gondwana wrote:

On Wed, Mar 11, 2009 at 12:40:28PM -0300, Patrick Boutilier wrote:
Darn. This is caused by mailbox corruption again. My script to detect  
corruption wasn't working properly. Any idea how we can track down what  
is causing the corruption?


Yeah, I was going to say.

It's corrupted cache file offset pointers.  Assuming you upgraded
this from an earlier version of Cyrus at some point,


I believe we started at 1.5.19 and then migrated up through the 2.0 , 
2.2 series. Our last major update was from 2.2.13 to 2.3.11. Currently 
on 2.3.13


 cyrus.expunge

and cyrus.index files had issues maintaining cache pointer
consistency.  You pretty much have to reconstruct all your mailboxes
to guarantee consistency I think.


This latest list of corrupted mailboxes includes many that were 
correupted a couple of weeks ago (including mine) so this is the second 
time they have been reconstructed.




I'm tempted to protect the code from crashing though... we don't
use unexpunge at FastMail, which is probably why I haven't already
done so.

Something like the attached should do it.  I'll test it more
completely and commit it to CVS for 2.3.14 (since Ken hasn't
cut a release candidate yet!)


Thanks for the patch.

Would ipurge be causing the corruption? We currently purge e-mails older 
than 31 days on a weekly basis. I will turn that off for a bit (since 
disk space is not as much of an issue as it used to be) and see if the 
corruption returns.




Bron.



begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:bouti...@ednet.ns.ca
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: unexpunge segfaults with -l on some mailboxes

2009-03-12 Thread Patrick Boutilier
Bron Gondwana wrote:


> Not so good.  Crap.  And this is on 2.3.13?  I don't see any changes
> touching that code in the post 2.3.13 changelogs...


Correct. We have been running 2.3.13 pretty much since it was released, 
2.3.12 before that, and 2.3.11 before that.

> 
>>> I'm tempted to protect the code from crashing though... we don't
>>> use unexpunge at FastMail, which is probably why I haven't already
>>> done so.
>>>
>>> Something like the attached should do it.  I'll test it more
>>> completely and commit it to CVS for 2.3.14 (since Ken hasn't
>>> cut a release candidate yet!)
>> Thanks for the patch.
> 
> Hey, don't use it though - it doesn't even compile!  It was a first
> draft.  I'll give you a real patch soon... been working on doing it
> _properly_ :)

Ok. :-)

> 
>> Would ipurge be causing the corruption? We currently purge e-mails older  
>> than 31 days on a weekly basis. I will turn that off for a bit (since  
>> disk space is not as much of an issue as it used to be) and see if the  
>> corruption returns.
> 
> Oooh... maybe.  I don't use ipurge.  Let me know what you find with
> turning it off.  I've never even _looked_ at that code.
> 

The more I think of it, the more I believe that ipurge will be the 
source of the problem. When I was manually checking for corruption (and 
reconstructing the mailboxes that had problems) there would be no 
corruption for 6 days. On the 7th day (always Sunday morning if I recall 
correctly) corruption would reappear in many mailboxes. As it turns out, 
our weekly ipurge ran on Saturday morning.

This will be real easy to test though. I will just run ipurge on a 
subfolder of my mailbox and see if it corrupts it. :-)

> Bron.


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: unexpunge segfaults with -l on some mailboxes

2009-03-13 Thread Patrick Boutilier

Patrick Boutilier wrote:

Bron Gondwana wrote:



Not so good.  Crap.  And this is on 2.3.13?  I don't see any changes
touching that code in the post 2.3.13 changelogs...



Correct. We have been running 2.3.13 pretty much since it was released, 
2.3.12 before that, and 2.3.11 before that.



I'm tempted to protect the code from crashing though... we don't
use unexpunge at FastMail, which is probably why I haven't already
done so.

Something like the attached should do it.  I'll test it more
completely and commit it to CVS for 2.3.14 (since Ken hasn't
cut a release candidate yet!)

Thanks for the patch.

Hey, don't use it though - it doesn't even compile!  It was a first
draft.  I'll give you a real patch soon... been working on doing it
_properly_ :)


Ok. :-)

Would ipurge be causing the corruption? We currently purge e-mails older  
than 31 days on a weekly basis. I will turn that off for a bit (since  
disk space is not as much of an issue as it used to be) and see if the  
corruption returns.

Oooh... maybe.  I don't use ipurge.  Let me know what you find with
turning it off.  I've never even _looked_ at that code.



The more I think of it, the more I believe that ipurge will be the 
source of the problem. When I was manually checking for corruption (and 
reconstructing the mailboxes that had problems) there would be no 
corruption for 6 days. On the 7th day (always Sunday morning if I recall 
correctly) corruption would reappear in many mailboxes. As it turns out, 
our weekly ipurge ran on Saturday morning.


This will be real easy to test though. I will just run ipurge on a 
subfolder of my mailbox and see if it corrupts it. :-)


I can duplicate the corruption by following steps similar to this report:

http://archives.devshed.com/forums/networking-100/cyr-expire-sigsegv-2146878.html


Current directory here is /var/imap/metadata/G/user/boutilpj/Testmail


   Clean mailbox:


[cy...@student2 Testmail]$ ll
total 60
-rw--- 1 cyrus cyrus 49612 Mar 13 10:03 cyrus.cache
-rw--- 1 cyrus cyrus   189 Mar 13 10:03 cyrus.header
-rw--- 1 cyrus cyrus  3792 Mar 13 10:03 cyrus.index


   Quick way to show number of messages in the folder:



[cy...@student2 Testmail]$ cat cyrus.cache |grep -a Prec|wc -l
42


   Delete 11 messages through IMAP client:

[cy...@student2 Testmail]$ ll
total 64
-rw--- 1 cyrus cyrus 49612 Mar 13 10:03 cyrus.cache
-rw--- 1 cyrus cyrus  1064 Mar 13 10:05 cyrus.expunge
-rw--- 1 cyrus cyrus   189 Mar 13 10:03 cyrus.header
-rw--- 1 cyrus cyrus  2824 Mar 13 10:05 cyrus.index


   Run ipurge with a number high enough not to delete anything. I purge 
only sees 31 messages and removes them from cyrus.cache:



[cy...@student2 Testmail]$ /usr/local/cyrus/bin/ipurge -f -d 2333 
user.boutilpj.Testmail

Working on user.boutilpj.Testmail...
total messages   31
total bytes  539400
Deleted messages 0
Deleted bytes0
Remaining messages   31
Remaining bytes  539400

[cy...@student2 Testmail]$ ll
total 48
-rw--- 1 cyrus cyrus 36652 Mar 13 10:08 cyrus.cache
-rw--- 1 cyrus cyrus  1064 Mar 13 10:05 cyrus.expunge
-rw--- 1 cyrus cyrus   189 Mar 13 10:03 cyrus.header
-rw--- 1 cyrus cyrus  2824 Mar 13 10:08 cyrus.index

[cy...@student2 Testmail]$ cat cyrus.cache |grep -a Prec|wc -l
31


   Run cyr_expire and corruption occurs:

[cy...@student2 Testmail]$ /usr/local/cyrus/bin/cyr_expire -E 333 -X 7 
-p user.boutilpj.Testmail -v

Expunging deleted messages in mailboxes older than 7 days

Expunged 0 out of 33 messages from 1 mailboxes
[cy...@student2 Testmail]$ ll
total 96
-rw--- 1 cyrus cyrus 36652 Mar 13 10:08 cyrus.cache
-rw--- 1 cyrus cyrus 37852 Mar 13 10:15 cyrus.cache.NEW
-rw--- 1 cyrus cyrus  1064 Mar 13 10:05 cyrus.expunge
-rw--- 1 cyrus cyrus   272 Mar 13 10:15 cyrus.expunge.NEW
-rw--- 1 cyrus cyrus   189 Mar 13 10:03 cyrus.header
-rw--- 1 cyrus cyrus  2824 Mar 13 10:08 cyrus.index
-rw--- 1 cyrus cyrus  2824 Mar 13 10:15 cyrus.index.NEW


Mar 13 10:15:40 student2 cyr_expire[8725]: IOERROR: reading cache record 
for user.boutilpj.Testmail: item 1 has bogus offset 576450680 of 36652 
for 2/11; mailbox needs a reconstruct








Bron.



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:bouti...@ednet.ns.ca
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: unexpunge segfaults with -l on some mailboxes

2009-03-25 Thread Patrick Boutilier

David R Bosso wrote:
--On March 13, 2009 10:18:53 AM -0300 Patrick Boutilier 
 wrote:





This will be real easy to test though. I will just run ipurge on a
subfolder of my mailbox and see if it corrupts it. :-)


FWIW we see the same corruption here with ipurge.  We use ipurge to clean 
out old messages from a spam box for each user.  We've worked around it 
currently by reconstructing the box after the ipurge which adds a lot of 
work to our nightly maintenance.


Plus you lose all the messages that are in "delayed expunge" state after 
running a reconstruct. :-(




I'd love to see a fix for this.

-David



begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:bouti...@ednet.ns.ca
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: unexpunge segfaults with -l on some mailboxes

2009-03-25 Thread Patrick Boutilier

Raphael Jaffey wrote:

Quoting Patrick Boutilier :


David R Bosso wrote:
--On March 13, 2009 10:18:53 AM -0300 Patrick Boutilier   
 wrote:





This will be real easy to test though. I will just run ipurge on a
subfolder of my mailbox and see if it corrupts it. :-)
FWIW we see the same corruption here with ipurge.  We use ipurge to  
 clean out old messages from a spam box for each user.  We've  
worked  around it currently by reconstructing the box after the  
ipurge  which adds a lot of work to our nightly maintenance.

Plus you lose all the messages that are in "delayed expunge" state
after running a reconstruct. :-(


Have you tried using '-k' when running reconstruct?


Uh, no. :-(

But I will from now on. :-)


 -k Preserve the cyrus.expunge file and the corresponding message 
files instead of deleting them.





I'd love to see a fix for this.

-David








Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:bouti...@ednet.ns.ca
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: unexpunge segfaults with -l on some mailboxes

2009-03-25 Thread Patrick Boutilier
Bron Gondwana wrote:
> On Mon, Mar 23, 2009 at 04:08:47PM -0700, David R Bosso wrote:
>> I'd love to see a fix for this.
> 
> Here's one:
> 
>>From 8448c2f304bd61fe073b1d98a0d614b69b0ee184
> Subject: [PATCH] Don't immediate expunge in ipurge
> 
> This has two benefits.
> 
> 1) you can unexpunge
> 2) it won't corrupt the cache pointers in the expunge file
> 
> NOTE: this only applies if you have delayed expunge enabled
> in your configuration, otherwise the behaviour is unchanged.
> ---
>  imap/ipurge.c |2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/imap/ipurge.c b/imap/ipurge.c
> index a8c6228..1a76ede 100644
> --- a/imap/ipurge.c
> +++ b/imap/ipurge.c
> @@ -268,7 +268,7 @@ int purge_me(char *name, int matchlen 
> __attribute__((unused)),
>(void) mailbox_lock_index(&the_box);
>the_box.index_lock_count = 1;
>  
> -  mailbox_expunge(&the_box, purge_check, &stats, EXPUNGE_FORCE);
> +  mailbox_expunge(&the_box, purge_check, &stats, 0);
>  
>sync_log_mailbox(the_box.name);
>mailbox_close(&the_box);

Looks good. Passes my earlier test. And you are correct. You can 
unexpunge messages that ipurge purges. Slick :-)



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Question regarding ctl_mboxlist -u

2009-09-04 Thread Patrick Boutilier

Cyrus 2.2.14

I have a user that I can not delete:

[r...@student2 cyrus]# /home/cyrus/deluser.pl cyrust
Login: No Errors
User ACL:  OK Completed
IMAP::Admin [ delete ]: couldn't delete user.cyrust : * BYE Fatal error: 
Internal error: assertion failed: cyrusdb_skiplist.c: 758: db->is_open



So I plan on fixing this by dumping and then importing mailboxes.db 
using something like the following. My question is will this be 
sufficient? I wouldn't have to run any reconstructs afterwards would I?



service cyrus stop
/usr/local/cyrus/bin/ctl_mboxlist -d > /home/cyrus/mailboxes.txt
grep -v 'user.cyrust' /home/cyrus/mailboxes.txt > 
/home/cyrus/mailboxes-new.txt

cat /home/cyrus/mailboxes-new.txt|/usr/local/cyrus/bin/ctl_mboxlist -u
service cyrus start
<>
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Question regarding ctl_mboxlist -u

2009-09-05 Thread Patrick Boutilier
On 09/04/2009 09:06 AM, Patrick Boutilier wrote:
> Cyrus 2.2.14
>
> I have a user that I can not delete:
>
> [r...@student2 cyrus]# /home/cyrus/deluser.pl cyrust
> Login: No Errors
> User ACL: OK Completed
> IMAP::Admin [ delete ]: couldn't delete user.cyrust : * BYE Fatal error:
> Internal error: assertion failed: cyrusdb_skiplist.c: 758: db->is_open
>
>
> So I plan on fixing this by dumping and then importing mailboxes.db
> using something like the following. My question is will this be
> sufficient? I wouldn't have to run any reconstructs afterwards would I?
>
>
> service cyrus stop
> /usr/local/cyrus/bin/ctl_mboxlist -d > /home/cyrus/mailboxes.txt
> grep -v 'user.cyrust' /home/cyrus/mailboxes.txt >
> /home/cyrus/mailboxes-new.txt

#Important to remove mailboxes.db at this point otherwise you are just 
#adding to mailboxes.db, not replacing it.

mv /var/imap/mailboxes.db /var/imap/mailboxes.db.OLD

> cat /home/cyrus/mailboxes-new.txt|/usr/local/cyrus/bin/ctl_mboxlist -u
> service cyrus start
>
>
> 
>
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Moving Cyrus TLS component files (.CA, .crt, .key) between servers ?

2009-09-25 Thread Patrick Boutilier
Eric Luyten wrote:
> Colleagues,
> 
> I am in the process of moving Cyrus service from a Cyrus 2.2.13 / Solaris9
> system to a Cyrus 2.3.15 / Solaris10 system and all is running pretty well
> 
> EXCEPT
> 
> for authenticated IMAP/POP sessions.
> 
> CSRs and key on the first server were generated using OpenSSL 0.9.7e while
> there is OpenSSL 0.9.8k on the second one (if that matters).
> 
> I copied the three files referenced by
>   tls_cert_file:
>   tls_key_file:
>   tls_ca_file:
> in /etc/imapd.conf to the new server but appear to have overlooked something,
> because my logfile now shows :
> 
> Sep 24 16:42:44 mini pop3smvub[5569]: [ID 897861 local6.error] unable to get
> certificate from '/usr/local/ssl/official/popimap-vub.crt'
> Sep 24 16:42:44 mini pop3smvub[5569]: [ID 925991 local6.error] TLS server
> engine: cannot load cert/key data
> Sep 24 16:42:44 mini pop3smvub[5569]: [ID 528583 local6.error] [pop3d] error
> initializing TLS
> Sep 24 16:42:44 mini pop3smvub[5569]: [ID 637875 local6.error] Fatal error:
> tls_init() failed
> 
> 
> Can I still repair this situation or am I heading towards the generation of
> completely new CSRs and key ?


Does the cyrus user have permissions to read the cert and key?


> 
> 
> Eric Luyten.
> 
> 
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Trouble with building Cyrus on amd64

2009-09-26 Thread Patrick Boutilier
On 09/26/2009 09:21 AM, mozafar roshany wrote:
> Hello everyone.
>
> I want to apply this patch:
> http://www.pramberger.at/peter/software/patches/#cyrus
> (cyrus-imapd-2.2.12-md5hash.patch
> )
> to increase the directory levels of mailboxes. But I've had many
> problems with compiling Cyrus. My system is: Debian Lenny,
> 2.6.26-2-amd64 x86_64. The last one I can't resolve. The following is
> the end of make:
>
> +++
> ...
> ### Making all in /root/src/cyrus/cyrus-imapd-2.2.12/perl
> make[1]: Entering directory `/root/src/cyrus/cyrus-imapd-2.2.12/perl'
> ### Making all in /root/src/cyrus/cyrus-imapd-2.2.12/perl/imap
> Writing Makefile for Cyrus::IMAP
> make[2]: Entering directory `/root/src/cyrus/cyrus-imapd-2.2.12/perl/imap'
> cc -c  -I../../lib   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN
> -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\"
> -fPIC "-I/usr/lib/perl/5.10/CORE"  -DPERL_POLLUTE IMAP.c
> Running Mkbootstrap for Cyrus::IMAP ()
> chmod 644 IMAP.bs
> rm -f blib/arch/auto/Cyrus/IMAP/IMAP.so
> cc  -shared -O2 -g -L/usr/local/lib IMAP.o  -o
> blib/arch/auto/Cyrus/IMAP/IMAP.so ../../lib/libcyrus.a
> ../../lib/libcyrus_min.a\
> -ldb-4 -lsasl2 -lssl -lcrypto  \
>
> /usr/bin/ld: ../../lib/libcyrus.a(imclient.o): relocation R_X86_64_32S
> against `a local symbol' can not be used when making a shared object;
> recompile with -fPIC
> ../../lib/libcyrus.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [blib/arch/auto/Cyrus/IMAP/IMAP.so] Error 1
> make[2]: Leaving directory `/root/src/cyrus/cyrus-imapd-2.2.12/perl/imap'
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/root/src/cyrus/cyrus-imapd-2.2.12/perl'
> make: *** [all] Error 1
> +++
>
> It tells about adding -fPIC flag, but I've had no success with adding it
> to Makefiles.

make all CFLAGS=-fPIC

>
> I should mention the number of my test users are more than that be
> handled by fulldirhash parameter. With this I will have several
> thousands of mailboxes at one [A-Z] directory.
>
> Thanks for any suggestions.
>
>
> 
>
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: unrecognized options: --with-auth

2009-09-30 Thread Patrick Boutilier

On 09/30/2009 09:31 AM, Dirk Piethan wrote:

Hi,

I can't configure cyrus-imapd-2.3.15. Every time I get the same error. I build 
it on an AMD64 machine with debian-lenny.
I use the Howto www.postfix-howto.de (german translated page)

Openssl will compiled with this options:
./config --prefix=/usr

And SASL build with follow options:

./configure \
--enable-anon \
--enable-plain \
--enable-login \
--enable-sql \
--enable-pam \
--disable-krb4 \
--disable-otp \
--disable-cram \
--disable-digest \
--with-saslauthd=/var/run/saslauthd \
--with-mysql=/usr/local/mysql \
--with-dblib=berkeley \
--with-bdb-libdir=/usr/local/bdb/lib \
--with-bdb-incdir=/usr/local/bdb/include \
--with-openssl=/usr/ssl \
--with-plugindir=/usr/local/lib/sasl2


Cyrus-imapd will be configured by follow attributes:

./configure --with-sasl=/usr/local/lib --with-perl --with-auth=unix 
--with-dbdir=/usr/local/bdb --with-bdb-libdir=/usr/local/bdb/lib 
--with-bdb-incdir=/usr/local/bdb/include --with-openssl=/usr/ssl/ 
--without-ucdsnmp>/tmp/conflog.log

configure: WARNING: unrecognized options: --with-auth
configure: WARNING: No Kerberos V4 found
config.status: WARNING:  'man/Makefile.in' seems to ignore the --datarootdir 
setting
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
configure: WARNING: unrecognized options: --with-auth


Which way I have to go?


Have you tried to remove "--with-auth=unix" from your configure statement?






Thanks @ ALL
Dirk

Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


<>
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Recovering a folder from DELETED hierarchy

2009-10-15 Thread Patrick Boutilier
On 10/15/2009 10:52 AM, Khalid Mehmood wrote:
> Hello everyone!
>
> I'm facing a problem, and don't know how to fix this. I have tried the list 
> and googled but couldn't find any solution. One of our user deleted a folder 
> and the folder name contains spaces e.g (New, Folder). Is there any 
> possibility of recovering such a folder? The imapd.conf uses "delete_mode: 
> delayed".
>

Are you using cyradm? You should be able to put single quotes around the 
DELETED mailbox name.



> Thanks.
>
> Regards
>
>
>
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


ipurge syntax

2009-11-10 Thread Patrick Boutilier
How can you get ipurge to only work on the INBOX? If I try this nothing 
happens:

ipurge -d 31 user.spam


If I put in -f then the INBOX and every folder underneath gets processed.


man page seems to indicate that only processing the INBOX is not possible:

Ipurge by default only deletes mail below shared folders, which means 
that  mails  in  mailbox(es)  below  INBOX.*  and  user.*  stay
untouched. Use the option -f to also delete mail in mailbox(es) 
below these folders.

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: general question, how to do this?

2009-11-13 Thread Patrick Boutilier
On 11/13/2009 09:46 AM, Adam Tauno Williams wrote:
>> One user is out sick, another user asked me to search the first user's
>> email for a specific message. If I had found that message and the second
>> user wanted to access that message in the second user's normal INBOX
>> would I do this:
>> # cd /var/spool/imap/a/user/auser
>> # cp 99. /var/spool/imap/b/user/buser
>> # su - cyrus
>> # reconstruct -r user.buser
>> # exit
>> # exit
>
> Don't do any of the above.  Just grant the use the rights to access the
> other user's folder.

That would give access to all the e-mail in the folder, not just one 
specific message.



>
>> The message was not found, so no urgent need for this. I want to know
>> how for next time.
>
>
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Quick SASL question

2009-11-16 Thread Patrick Boutilier
I am setting up a murder environment in testing. The backends use
SASL with pam for imap/pop authentication. I have to configure a user 
for "proxyservers" on the backends for the frontends to use. Is there 
anyway to configure it so that the "proxyservers" user can be in 
/etc/sasldb2 while still using pam for the "real" users?

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: setting up replication

2009-11-17 Thread Patrick Boutilier
On 11/17/2009 01:03 PM, Johannes Rußek wrote:
> hello everybody,
> i'm trying to replicate an existing imap servers over to a new one, this
> is basically fedora core 6 to rhel5.
> i've set up the replication as per the howto and it appears to basically
> work. however, when sync_client reaches the point of creating a mailbox,
> i get the following error in the log:
>
> sync_client[30485]: CREATE received BAD response: Unexpected extra
> arguments to Create
>
> is there anything i am doing wrong?

Are you running the same version of imapd on both the master and slave?




> regards,
> Johannes
>
>
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: setting up replication

2009-11-17 Thread Patrick Boutilier
On 11/17/2009 01:34 PM, Johannes Rußek wrote:
> Nope, i'm not. is this necessary?
> it's 2.3.9 on the master and 2.3.7 on the replica.
> if that's the problem i will take care of that first.

They are both 2.3.x so that shouldn't be a problem. However those 
versions are relatively old. 2.3.15 is the latest in the 2.3 series.

I just setup replication a couple of weeks ago and haven't seen any of 
those errors.


> regards,
> johannes
>
>
> Am Dienstag, den 17.11.2009, 13:26 -0400 schrieb Patrick Boutilier:
>> On 11/17/2009 01:03 PM, Johannes Rußek wrote:
>>> hello everybody,
>>> i'm trying to replicate an existing imap servers over to a new one, this
>>> is basically fedora core 6 to rhel5.
>>> i've set up the replication as per the howto and it appears to basically
>>> work. however, when sync_client reaches the point of creating a mailbox,
>>> i get the following error in the log:
>>>
>>> sync_client[30485]: CREATE received BAD response: Unexpected extra
>>> arguments to Create
>>>
>>> is there anything i am doing wrong?
>>
>> Are you running the same version of imapd on both the master and slave?
>>
>>
>>
>>
>>> regards,
>>> Johannes
>>>
>>>
>>> 
>>> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
>>> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
>>> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>
>
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: setting up replication

2009-11-18 Thread Patrick Boutilier
On 11/18/2009 01:15 PM, Johannes Rußek wrote:
> Hi Brian,
> thanks for the recommendation, but you have to note that this is RHEL
> cyrus, which means there are a lot of backports in it..

Usually security fixes though.

> As usual, RH version is not the same as upstream version. Also with RH
> you are pretty much bound to what you get :)

You could try this source RPM:


http://www.invoca.ch/pub/packages/cyrus-imapd/cyrus-imapd-2.3.15-4.src.rpm




> I'll get both machines to RHEL's 2.3.9 first, then try replication
> again.
> Thanks everybody,
> Johannes
>
> Am Mittwoch, den 18.11.2009, 10:43 -0500 schrieb Brian Awood:
>> On Tuesday 17 November 2009 @ 13:11, Patrick Boutilier wrote:
>>> On 11/17/2009 01:34 PM, Johannes Rußek wrote:
>>>> Nope, i'm not. is this necessary?
>>>> it's 2.3.9 on the master and 2.3.7 on the replica.
>>>> if that's the problem i will take care of that first.
>>>
>>> They are both 2.3.x so that shouldn't be a problem. However those
>>> versions are relatively old. 2.3.15 is the latest in the 2.3
>>> series.
>>>
>>> I just setup replication a couple of weeks ago and haven't seen any
>>> of those errors.
>>
>> I believe there were major changes in the sync protocol between 2.3.7
>> &  2.3.9, enough to probably make them incompatible.  Although, I
>> would also recommend running 2.3.15 over anything older.
>>
>> -Brian
>> 
>> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
>> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
>> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

  1   2   3   4   5   6   7   8   9   >