POP3 timeout, IMAP OK

2004-05-26 Thread Bagt
Hello,
I have Redhat Enterprise AS 3.0 ( update 2 not installed ) and Cyrus-imap 
2.2.3-8 ( from RPM Simon Matter ) + SASL + PAM + OpenLDAP

Yesterday for the first time I have problem with POP3 server.

> telnet localhost 110
+OK Cyrus POP3 v2.2.3 server ready
user username
+OK Name is a valid mailbox
pass password
wait wait and wait and timeout

No error in logs files. Same problem for all users.
If I connect with Webmail (IMAP port), no problem I can see all messages.
I restart all service ( saslauthd,ldap,cyrus-imap ) and the problem 
persists, I reboot the server and it's OK.

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


Cyrus IMAP not recieving mail

2004-05-26 Thread Kent L. Nasveschuk
Hello,
I have my IMAP server v 2.2.4 behind a firewall that I'm doing port
forwarding on (Slackware 9.1). Using a mail client like Evolution or
Outlook Express I can authenticate using saslauthd (LDAP) and recieve my
folders. I can also create folders. Seems like the IMAP side is working.

I'm using sendmail as the MTA. I used the cyrusv2.mc posted on the
internet to create the sendmail.cf.I can telnet to port 25 and get a
sendmail connection:
220 mail.tow.net ESMTP Sendmail 8.12.10/8.12.10; Wed, 26 May 2004
06:11:03 -0400
When I do netstat I see that I've established a tcp connection smtp.

I just can't seem to get anything delevered to the IMAP server from
sendmail. Any suggestions on where to look?



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

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


Re: Cyrus IMAP not recieving mail

2004-05-26 Thread Rob Siemborski
On Wed, 26 May 2004, Kent L. Nasveschuk wrote:
Hello,
I have my IMAP server v 2.2.4 behind a firewall that I'm doing port
forwarding on (Slackware 9.1). Using a mail client like Evolution or
Outlook Express I can authenticate using saslauthd (LDAP) and recieve my
folders. I can also create folders. Seems like the IMAP side is working.
I'm using sendmail as the MTA. I used the cyrusv2.mc posted on the
internet to create the sendmail.cf.I can telnet to port 25 and get a
sendmail connection:
220 mail.tow.net ESMTP Sendmail 8.12.10/8.12.10; Wed, 26 May 2004
06:11:03 -0400
When I do netstat I see that I've established a tcp connection smtp.
I just can't seem to get anything delevered to the IMAP server from
sendmail. Any suggestions on where to look?
The sendmail mail logs are generally illuminating.
Note that if you are running 2.2.4 you'll want the patch to hash_enumerate 
that was posted a few days ago to to the list (or wait a few more days 
until 2.2.5 is out)...

-Rob
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus IMAP not recieving mail

2004-05-26 Thread Ken Murchison
Kent L. Nasveschuk wrote:
Hello,
I have my IMAP server v 2.2.4 behind a firewall that I'm doing port
forwarding on (Slackware 9.1). Using a mail client like Evolution or
Outlook Express I can authenticate using saslauthd (LDAP) and recieve my
folders. I can also create folders. Seems like the IMAP side is working.
I'm using sendmail as the MTA. I used the cyrusv2.mc posted on the
internet to create the sendmail.cf.I can telnet to port 25 and get a
sendmail connection:
220 mail.tow.net ESMTP Sendmail 8.12.10/8.12.10; Wed, 26 May 2004
06:11:03 -0400
When I do netstat I see that I've established a tcp connection smtp.
I just can't seem to get anything delevered to the IMAP server from
sendmail. Any suggestions on where to look?
This might be related to a bug uncovered by 2.2.4.  Try 2.2.3 or apply 
the following patch to 2.2.4:

https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/lib/hash.c.diff?r1=1.11&r2=1.12&f=u
--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


post test do not reply

2004-05-26 Thread Jeff Donovan

---
jeff donovan
basd network operations
(610) 807 5571 x41
AIM  xtdonovan
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus IMAP not recieving mail

2004-05-26 Thread Frank Zhang
It maybe the path problem for the program "deliver", sendmail will look
for /usr/cyrus/bin/deliver, but actually its location is
/usr/lib/cyrus-imapd/deliver, so you may need to make a UNIX link.
Frank

On Wed, 26 May 2004, Ken Murchison wrote:

> Kent L. Nasveschuk wrote:
>
> > Hello,
> > I have my IMAP server v 2.2.4 behind a firewall that I'm doing port
> > forwarding on (Slackware 9.1). Using a mail client like Evolution or
> > Outlook Express I can authenticate using saslauthd (LDAP) and recieve my
> > folders. I can also create folders. Seems like the IMAP side is working.
> >
> > I'm using sendmail as the MTA. I used the cyrusv2.mc posted on the
> > internet to create the sendmail.cf.I can telnet to port 25 and get a
> > sendmail connection:
> > 220 mail.tow.net ESMTP Sendmail 8.12.10/8.12.10; Wed, 26 May 2004
> > 06:11:03 -0400
> > When I do netstat I see that I've established a tcp connection smtp.
> >
> > I just can't seem to get anything delevered to the IMAP server from
> > sendmail. Any suggestions on where to look?
>
> This might be related to a bug uncovered by 2.2.4.  Try 2.2.3 or apply
> the following patch to 2.2.4:
>
> https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/lib/hash.c.diff?r1=1.11&r2=1.12&f=u
>
> --
> Kenneth Murchison Oceana Matrix Ltd.
> Software Engineer 21 Princeton Place
> 716-662-8973 x26  Orchard Park, NY 14127
> --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
> ---
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>
---
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


Install problems:invoca cyrus-imapd from rpm

2004-05-26 Thread Alex
Hi
I'm trying to build an RPM from 
http://www.invoca.ch/pub/packages/cyrus-imapd/cyrus-imapd-2.2.4-1.src.rpm 
on a Redhat7.3 box.

I've run into problems near the end of the build, it dies with the 
following error:

+ find 
/var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus 
/var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Cyrus 
-type f -print
find: 
/var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus: 
No such file or directory
find: 
/var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Cyrus: 
No such file or directory
+ /bin/sed '[EMAIL PROTECTED]/var/tmp/cyrus-imapd-2.2.4-root@@g'
+ /bin/grep -v perllocal.pod
+ /bin/grep -v '\.packlist'
error: Bad exit status from /var/tmp/rpm-tmp.45149 (%install)

I have previously managed to install the invoca cyrus-sasl-2.1.18-1 RPM. 
I've spent some time playing with RPM dependancies which has helped 
overcome other problems, but this one remains.

There's an older non-Invoca cyrus RPM (cyrus-imapd-2.0.16-4) in use on the 
box, but that shouldn't matter as I'm building an RPM from src, not 
installing it

Can anyone help me here? I'd be very grateful!
thanks
Alex
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus HA Scalable Solution? Rsync

2004-05-26 Thread Jason Munro
On 4:39:45 pm 05/25/04 "Kevin Baker" <[EMAIL PROTECTED]> wrote:
> We are testing a number of email configurations for a
> 10,000+ user-base. Was hoping to get some thoughts on
> below:
>
> - Postfix
> - Cyrus-SASL
> - Mysql Auth
>
> We will likely start with 3 frontend servers and 3 backend
> servers. Replicate MySQL across all servers auth, maildrop
> routing.
>
> We were thinking of doing some sort of rysync of the imap
> mailstore across the backend servers. Then Heartbeat on
> the backend servers with IP takeover to handle failover.
>
> The hope is that if a server goes down the mailstore will
> be sync'ed up on the server that takes over.
>
> Thought? This is obviously just a sketch... but I haven't
> seen a this done before as far as the failover solution
> with rsync and thought it might work pretty well.

I have been doing this with an 18 gig mailstore that uses maildirs. After
the first sync I can run rsync every 5 minutes and it only takes 35-40
seconds to complete, even if I move/delete a few thousand messages at a
time.

\__ Jason Munro
 \__ [EMAIL PROTECTED]
  \__ http://hastymail.sourceforge.net/


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


Per-user archive and restore

2004-05-26 Thread Karl Boyken
I'm using Cyrus IMAPD 2.2.3.  When I delete a user, I'd like to first 
archive his folders, so that I can restore them later, if necessary. 
What's the best way to accomplish this?  Thanks in advance.

Karl Boyken
--
Karl Boyken, system administrator 
[EMAIL PROTECTED]
303A MLH, Dept. of Comp. Sci. 
http://www.cs.uiowa.edu/~boyken/
The U. of Iowa, Iowa City, IA  52242   319-335-2730 (voice) 
319-335-3668 (fax)
---
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: Install problems:invoca cyrus-imapd from rpm

2004-05-26 Thread Simon Matter
> Hi
>
> I'm trying to build an RPM from
> http://www.invoca.ch/pub/packages/cyrus-imapd/cyrus-imapd-2.2.4-1.src.rpm
> on a Redhat7.3 box.
>
> I've run into problems near the end of the build, it dies with the
> following error:
>
> + find
> /var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus
> /var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Cyrus
> -type f -print
> find:
> /var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus:
> No such file or directory
> find:
> /var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Cyrus:
> No such file or directory
> + /bin/sed '[EMAIL PROTECTED]/var/tmp/cyrus-imapd-2.2.4-root@@g'
> + /bin/grep -v perllocal.pod
> + /bin/grep -v '\.packlist'
> error: Bad exit status from /var/tmp/rpm-tmp.45149 (%install)
>
> I have previously managed to install the invoca cyrus-sasl-2.1.18-1 RPM.
> I've spent some time playing with RPM dependancies which has helped
> overcome other problems, but this one remains.
>
> There's an older non-Invoca cyrus RPM (cyrus-imapd-2.0.16-4) in use on the
> box, but that shouldn't matter as I'm building an RPM from src, not
> installing it

Hi,

The rpm builds fine on stock RedHat 7.3 (I'm testing it on 7.3 with all
errata packages applied). You have somehow modified your box so the src
rpm won't build. Try to either find out what you
modified/installed/whatever or build on a clean, stock RedHat 7.3 box.

HTH
Simon

>
> Can anyone help me here? I'd be very grateful!
>
> thanks
>
> Alex
>
> ---
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>
>


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


Corrupt inbox, related to size?

2004-05-26 Thread Kevin Baker
I had to reconstruct my first cyrus user inbox today.

I have to say it makes me a bit nervous. We are running
Postfix+Cyrus+LDAP with about 500 user, pretty good
traffic, on 512Ram Raid1.

This particular user had about 1000 messages in her inbox.

It was fine after I ran reconstruct, but this is very
inconvient as I need to take down cyrus during the
process.

Does anyone have ideas as to what would cause this. Could
it be related to the number of messages in her inbox?


Thanks,

Kevin
---
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: Corrupt inbox, related to size?

2004-05-26 Thread Michael Loftis
cyrus versions, filesystems, postfix versions, cyrus database formats being 
used.

1k messages is nothing, i have severa with 300k or more, one with a 
million messages or more.  No problems I've used 1.6.x series nad now I'm 
in the 2.2.x series.  Only time I had corrupt mailboxes was from an unclean 
nasty shutdown and from bad RAM.

--On Wednesday, May 26, 2004 10:23 -0700 Kevin Baker <[EMAIL PROTECTED]> 
wrote:

I had to reconstruct my first cyrus user inbox today.
I have to say it makes me a bit nervous. We are running
Postfix+Cyrus+LDAP with about 500 user, pretty good
traffic, on 512Ram Raid1.
This particular user had about 1000 messages in her inbox.
It was fine after I ran reconstruct, but this is very
inconvient as I need to take down cyrus during the
process.
Does anyone have ideas as to what would cause this. Could
it be related to the number of messages in her inbox?
Thanks,
Kevin
---
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

--
Undocumented Features quote of the moment...
"It's not the one bullet with your name on it that you
have to worry about; it's the twenty thousand-odd rounds
labeled `occupant.'"
  --Murphy's Laws of Combat
---
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


Postfix and Cyrus-IMAP using virtdomains: userid and SQL

2004-05-26 Thread Psi-Jack
I'm trying to setup my postfix to use PgSQL lookups for virtual domains, 
and to deliver mail for virtual domains into Cyrus-IMAP.

My method is to use Cyrus-IMAP's virtdomains: userid option, so that 
Cyrus-IMAP uses it's built-in virtual-domains support and mailboxes that 
are accessable as [EMAIL PROTECTED]

Now, does anyone know any ideas of how to actually get Postfix itself to 
actually /deliver/ mail to [EMAIL PROTECTED] into Cyrus-IMAP, and what 
kind of SQL structures and lookups I'd need to do to actually fully 
accomplish this task?

I have my virtual_alias_maps pulling pgsql queries out and apparently 
looking up [EMAIL PROTECTED] if it exists, and if so, returns that 
exact same [EMAIL PROTECTED] It accepts mail for it, but when it gets 
beyond that, I get an error with postfix:

May 25 23:06:29 netgear postfix/error[37479]: DAAE117043: 
to=<[EMAIL PROTECTED]>, relay=none, delay=1, status=bounced (User unknown 
in virtual alias table)

And so, it bounces it back after it's already accepted it.
Any ideas anyone?
Eric
---
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: Corrupt inbox, related to size?

2004-05-26 Thread Ken Murchison
Kevin Baker wrote:
I had to reconstruct my first cyrus user inbox today.
I have to say it makes me a bit nervous. We are running
Postfix+Cyrus+LDAP with about 500 user, pretty good
traffic, on 512Ram Raid1.
This particular user had about 1000 messages in her inbox.
It was fine after I ran reconstruct, but this is very
inconvient as I need to take down cyrus during the
process.
You don't need to take down Cyrus to reconstruct a mailbox.

Does anyone have ideas as to what would cause this. Could
A Cyrus process crash while the mailbox was open.

it be related to the number of messages in her inbox?
I doubt it.  The mailbox which archives this list at CMU has close to 
30K messages in it as we speak.

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


Re: Cyrus IMAP not recieving mail

2004-05-26 Thread Kent L. Nasveschuk
It was my sendmail configuration. I believe I have it set up correctly
but more testing is needed. Thanks.



On Wed, 2004-05-26 at 11:00, Frank Zhang wrote:
> It maybe the path problem for the program "deliver", sendmail will look
> for /usr/cyrus/bin/deliver, but actually its location is
> /usr/lib/cyrus-imapd/deliver, so you may need to make a UNIX link.
> Frank
> 
> On Wed, 26 May 2004, Ken Murchison wrote:
> 
> > Kent L. Nasveschuk wrote:
> >
> > > Hello,
> > > I have my IMAP server v 2.2.4 behind a firewall that I'm doing port
> > > forwarding on (Slackware 9.1). Using a mail client like Evolution or
> > > Outlook Express I can authenticate using saslauthd (LDAP) and recieve my
> > > folders. I can also create folders. Seems like the IMAP side is working.
> > >
> > > I'm using sendmail as the MTA. I used the cyrusv2.mc posted on the
> > > internet to create the sendmail.cf.I can telnet to port 25 and get a
> > > sendmail connection:
> > > 220 mail.tow.net ESMTP Sendmail 8.12.10/8.12.10; Wed, 26 May 2004
> > > 06:11:03 -0400
> > > When I do netstat I see that I've established a tcp connection smtp.
> > >
> > > I just can't seem to get anything delevered to the IMAP server from
> > > sendmail. Any suggestions on where to look?
> >
> > This might be related to a bug uncovered by 2.2.4.  Try 2.2.3 or apply
> > the following patch to 2.2.4:
> >
> > https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/lib/hash.c.diff?r1=1.11&r2=1.12&f=u
> >
> > --
> > Kenneth Murchison Oceana Matrix Ltd.
> > Software Engineer 21 Princeton Place
> > 716-662-8973 x26  Orchard Park, NY 14127
> > --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
> > ---
> > Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> > Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
> >
> ---
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
-- 
Kent L. Nasveschuk <[EMAIL PROTECTED]>

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


cyrus hanging (possible saslauthd problem)

2004-05-26 Thread Colin Bruce
Dear All,

We have been running cyrus imap for a couple of months now and it works well
most of the time. We have something like 20,000 registered users with around
800 simultaneous users most of the day. Lately we have noticed a strange
problem which we suspect might be saslauthd but might not. I thought it
might be worth asking if anyone else has seen this.

The facts are:

cyrus imap 2.2.3
saslauthd  2.1.8

We are currently using /etc/shadow so saslauthd only supports

[EMAIL PROTECTED]: /usr/local/sbin/saslauthd -v
saslauthd 2.1.18
authentication mechanisms: getpwent rimap shadow

We are running on a Linux server

[EMAIL PROTECTED]: uname -a
Linux imap2 2.4.25 #1 SMP Thu Apr 15 21:58:02 BST 2004 i686 unknown unknown 
GNU/Linux

The symptoms depend on the e-mail client. However, I think pine shows it
best.

I can login and read e-mail quite happily most of the time. However,
sometimes it accepts my username and password and then says "opening inbox"
for ever. Usually, while this is in progress a message will flash up about
an untagged response. However, it is not visible long enough to see what
the message is about. In any event it will never open the inbox. We have
noticed that this is accompanied by a message in the auth file that
saslauthd writes failures to such as:

May 26 20:31:29 imap2 saslauthd[6296]: do_auth : auth failure: [user=tellingj] 
[service=imap] [realm=] [mech=shadow] [reason=Unknown]

This happens even when the password that was typed in was correct.

We have also noticed that if this is happening then it does it for most (if
not all) people. However, after a minute or two it stops again and everything
is fine for a little while.

If the same thing happens with other clients the behaviour may vary. For
example, Netscape just reports an incorrect password immediately and continues
to do so each time the person tries to enter the password for a few minutes.
After a minute or two of this it works fine again.

What I am not sure about is whether it is happening every so often or
whether I am seeing it every so often and others are seeing the same thing
at different times.

Has anyone seen this type of thing before? Does anyone know how to fix it?
Could it be a locking thing? Is there some resource that is being dead locked?

We will be moving to Kerberos in the not too distant future but if there is
a quick and easy fix now I would be most grateful.

Best wishes
Colin Bruce


---
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: Install problems:invoca cyrus-imapd from rpm

2004-05-26 Thread Alex
Thanks - I shall review what's installed. I have upgraded some perl modules 
via CPAN, which would break some of the RH perl RPMs. Do you think that 
might be the problem, given the errors below..?

regards
Alex
At 17:45 26/05/2004, Simon Matter wrote:
> Hi
>
> I'm trying to build an RPM from
> http://www.invoca.ch/pub/packages/cyrus-imapd/cyrus-imapd-2.2.4-1.src.rpm
> on a Redhat7.3 box.
>
> I've run into problems near the end of the build, it dies with the
> following error:
>
> + find
> 
/var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus
> 
/var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Cyrus
> -type f -print
> find:
> 
/var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus:
> No such file or directory
> find:
> 
/var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Cyrus:
> No such file or directory
> + /bin/sed '[EMAIL PROTECTED]/var/tmp/cyrus-imapd-2.2.4-root@@g'
> + /bin/grep -v perllocal.pod
> + /bin/grep -v '\.packlist'
> error: Bad exit status from /var/tmp/rpm-tmp.45149 (%install)
>
> I have previously managed to install the invoca cyrus-sasl-2.1.18-1 RPM.
> I've spent some time playing with RPM dependancies which has helped
> overcome other problems, but this one remains.
>
> There's an older non-Invoca cyrus RPM (cyrus-imapd-2.0.16-4) in use on the
> box, but that shouldn't matter as I'm building an RPM from src, not
> installing it

Hi,
The rpm builds fine on stock RedHat 7.3 (I'm testing it on 7.3 with all
errata packages applied). You have somehow modified your box so the src
rpm won't build. Try to either find out what you
modified/installed/whatever or build on a clean, stock RedHat 7.3 box.
HTH
Simon
>
> Can anyone help me here? I'd be very grateful!
>
> thanks
>
> Alex
>
> ---
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>
>
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus dies

2004-05-26 Thread Colin Bruce
Dear All,

Another problem which may be related to the one I reported earlier but I
don't think so.

The facts

cyrus imap 2.2.3
Linux 2.4.25

The server only runs cyrus imap. There are no other services on this machine
and only a few administrators can login.

The Problem

As far as I can tell every night at approximately 21:15 the server dies.
Here is some uptimes as that times approaches.

[EMAIL PROTECTED]: uptime
 21:01:19  up 40 days, 22:48, 21 users,  load average: 0.88, 0.55, 0.33
[EMAIL PROTECTED]: uptime
 21:17:33  up 40 days, 23:05, 21 users,  load average: 0.18, 0.27, 0.31
[EMAIL PROTECTED]: uptime
 21:17:37  up 40 days, 23:05, 21 users,  load average: 0.18, 0.27, 0.31
[EMAIL PROTECTED]: uptime
 21:17:55  up 40 days, 23:05, 21 users,  load average: 0.74, 0.39, 0.34


Following that last one I cant type anything at all. I also can't login
to the server and anyone using it will find that they can't read any e-mail.
After 10 or 15 minutes like this it will start responding again and the
load average will be falling from somewhere between 80 and 100. It will
fairly quickly fall to values of less than 1 again. There are no cron or
at jobs running at this time.

This seems to happen most evenings.

Does anyone know what might be the cause?

Best wishes.
Colin Bruce

---
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: Install problems:invoca cyrus-imapd from rpm

2004-05-26 Thread Simon Matter
> Thanks - I shall review what's installed. I have upgraded some perl
> modules
> via CPAN, which would break some of the RH perl RPMs. Do you think that
> might be the problem, given the errors below..?

Yes, that might break it. Unfortunately the perl part is quite tricky to
build on all the different RedHat distributions (in a faked root like the
rpm build process).

Simon

>
> regards
>
> Alex
>
> At 17:45 26/05/2004, Simon Matter wrote:
>> > Hi
>> >
>> > I'm trying to build an RPM from
>> > http://www.invoca.ch/pub/packages/cyrus-imapd/cyrus-imapd-2.2.4-1.src.rpm
>> > on a Redhat7.3 box.
>> >
>> > I've run into problems near the end of the build, it dies with the
>> > following error:
>> >
>> > + find
>> >
>> /var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus
>> >
>> /var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Cyrus
>> > -type f -print
>> > find:
>> >
>> /var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus:
>> > No such file or directory
>> > find:
>> >
>> /var/tmp/cyrus-imapd-2.2.4-root/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Cyrus:
>> > No such file or directory
>> > + /bin/sed '[EMAIL PROTECTED]/var/tmp/cyrus-imapd-2.2.4-root@@g'
>> > + /bin/grep -v perllocal.pod
>> > + /bin/grep -v '\.packlist'
>> > error: Bad exit status from /var/tmp/rpm-tmp.45149 (%install)
>> >
>> > I have previously managed to install the invoca cyrus-sasl-2.1.18-1
>> RPM.
>> > I've spent some time playing with RPM dependancies which has helped
>> > overcome other problems, but this one remains.
>> >
>> > There's an older non-Invoca cyrus RPM (cyrus-imapd-2.0.16-4) in use on
>> the
>> > box, but that shouldn't matter as I'm building an RPM from src, not
>> > installing it
>>
>>Hi,
>>
>>The rpm builds fine on stock RedHat 7.3 (I'm testing it on 7.3 with all
>>errata packages applied). You have somehow modified your box so the src
>>rpm won't build. Try to either find out what you
>>modified/installed/whatever or build on a clean, stock RedHat 7.3 box.
>>
>>HTH
>>Simon
>>
>> >
>> > Can anyone help me here? I'd be very grateful!
>> >
>> > thanks
>> >
>> > Alex
>> >
>> > ---
>> > Cyrus Home Page: http://asg.web.cmu.edu/cyrus
>> > Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
>> > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>> >
>> >
>
>


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


Re: Cyrus dies

2004-05-26 Thread Michael Loftis
I suggest you use 'top', 'ps', and 'pstree' to find out what's running. 
BEcause obviously something is.  In Linux if something is blocking on Disk 
I/O it will push up the load average.  IT sounds almost like your daily 
cron jobs are scanning the cyrus mail spool and pushing over some cheap IDE 
drives.

--On Wednesday, May 26, 2004 21:26 +0100 Colin Bruce 
<[EMAIL PROTECTED]> wrote:

Dear All,
Another problem which may be related to the one I reported earlier but I
don't think so.
The facts
cyrus imap 2.2.3
Linux 2.4.25
The server only runs cyrus imap. There are no other services on this
machine and only a few administrators can login.
The Problem
As far as I can tell every night at approximately 21:15 the server dies.
Here is some uptimes as that times approaches.
[EMAIL PROTECTED]: uptime
 21:01:19  up 40 days, 22:48, 21 users,  load average: 0.88, 0.55, 0.33
[EMAIL PROTECTED]: uptime
 21:17:33  up 40 days, 23:05, 21 users,  load average: 0.18, 0.27, 0.31
[EMAIL PROTECTED]: uptime
 21:17:37  up 40 days, 23:05, 21 users,  load average: 0.18, 0.27, 0.31
[EMAIL PROTECTED]: uptime
 21:17:55  up 40 days, 23:05, 21 users,  load average: 0.74, 0.39, 0.34
Following that last one I cant type anything at all. I also can't login
to the server and anyone using it will find that they can't read any
e-mail. After 10 or 15 minutes like this it will start responding again
and the load average will be falling from somewhere between 80 and 100.
It will fairly quickly fall to values of less than 1 again. There are no
cron or at jobs running at this time.
This seems to happen most evenings.
Does anyone know what might be the cause?
Best wishes.
Colin Bruce
---
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

--
Undocumented Features quote of the moment...
"It's not the one bullet with your name on it that you
have to worry about; it's the twenty thousand-odd rounds
labeled `occupant.'"
  --Murphy's Laws of Combat
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus dies

2004-05-26 Thread Rob Siemborski
On Wed, 26 May 2004, Colin Bruce wrote:
to the server and anyone using it will find that they can't read any e-mail.
After 10 or 15 minutes like this it will start responding again and the
load average will be falling from somewhere between 80 and 100. It will
fairly quickly fall to values of less than 1 again. There are no cron or
at jobs running at this time.
I doubt this -- maybe this is when you started cyrus and there's a daily 
EVENT running?  If it is very repeatable at the same time that really 
smacks of something automated.

-Rob
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: cyrus hanging (possible saslauthd problem)

2004-05-26 Thread Rob Siemborski
On Wed, 26 May 2004, Colin Bruce wrote:
   May 26 20:31:29 imap2 saslauthd[6296]: do_auth : auth failure: 
[user=tellingj] [service=imap] [realm=] [mech=shadow] [reason=Unknown]

This happens even when the password that was typed in was correct.
Can you run an strace on saslauthd and perhaps find out why it might be 
feeling ill occasionally?

I do know that on Solaris with unix sockets it can behave like this, but 
I've never seen it on Linux.

Is it possible there is some sort of intermittant hardware problem on the 
machine?

-Rob
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


newbie authentication problem

2004-05-26 Thread Peter Duda
I am new to this whole cyrus thing, but I am trying to learn.  

RedHat 9.0
Cyrus 2.2.3-8
Cyrus SASL 2.1.18
Postfix
Mysql 3.23.58

I sort of had everything working so far by myself and a lot of Googleing
:).  But now I am having a difficult time getting the authentication to
work properly.  Web-cyradm works fine and sees all the cyrus info in the
mysql database, but I cannot connect to cyrus through other means:
imtest gives

S: L01 NO Login failed: user not found
Authentication failed. generic failure
Security strength factor: 0
C: Q01 LOGOUT
Connection closed.

use not found shows up when I try and connect through evolution or OGo,
etc.

I know the user is there because I can see them in web-cyradm

I have tried multiple imapd.conf files including the HOWTO with
pam_mysql etc, but that didn't work.

/var/log/messages gives a lot of these

Flashy pop3[11789]: sql_select option missing
Flashy pop3s[11790]: auxpropfunc error no mechanism available


I have tried auth with auxprop but it's not working either:
this was the imapd.conf file

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus root
allowplaintext: yes
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_ca_file: /usr/share/ssl/certs/ca-bundle.ca
pwcheck_method: auxprop
auxprop_plugin: sql
sql_engine: mysql
mech_list: login plain
sql_hostnames: localhost
sql_user: user
sql_passwd: password
sql_database: mail
sql_verbose: yes
sql_select: SELECT password FROM accountuser WHERE username = '[EMAIL PROTECTED]'

/var/log/messages gives more of these:

pop3[11465]: sql_select option missing
pop3[11465]: auxpropfunc error no mechanism available
pop3[11465]: unable to open Berkeley db /etc/sasldb2: Permission denied


the closest i came was when my imapd.conf looked like this:

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus root
allowplaintext: yes
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
pwcheck_method: saslauthd
sasl_mech_list: PLAIN
sasl_sql_engine: mysql
sasl_sql_hostnames: localhost
sasl_sql_user: user
sasl_sql_passwd: password
sasl_database: mail
sasl_sql_select: select password from accountuser where username = '%u'
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_ca_file: /usr/share/ssl/certs/ca-bundle.ca

/var/log/messages doesnt give any errors upon startup, but when you try
and login then:

Flashy imap[11940]: sql plugin could not connect to host localhost
Flashy imap[11940]: sql plugin couldn't connect to any host
Flashy imap[11940]: unable to open Berkeley db /etc/sasldb2: Permission
denied

Now I used to just get the plugin error and not the Berkeley db error
and when that was happening I could login under the admins, but it
wouldn't work with a user - it still wasn't querying the mysql
database.  But with all the changes now I can't open the Berkeley db
which put me a step backwards.

Can someone point me in the right direction?  I am really new to all of
this so forgive my rambling, but I would like to get this working

Peter













---
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: Corrupt inbox, related to size?

2004-05-26 Thread Jim Levie
On Wed, 2004-05-26 at 12:23, Kevin Baker wrote:
> I had to reconstruct my first cyrus user inbox today.
> 
> I have to say it makes me a bit nervous. We are running
> Postfix+Cyrus+LDAP with about 500 user, pretty good
> traffic, on 512Ram Raid1.
> 
> This particular user had about 1000 messages in her inbox.
> 
> It was fine after I ran reconstruct, but this is very
> inconvient as I need to take down cyrus during the
> process.
> 
> Does anyone have ideas as to what would cause this. Could
> it be related to the number of messages in her inbox?
> 
Not likely... I've seen this from time to time with ever version of
Cyrus that I've used. The only common thread that I've observed has been
that the mailboxes that need a reconstruct always seem to be accessed
via POP. And in most cases a check with the user has revealed that
his/her client aborted, was killed or they rebooted the system because
something was hung, misbehaving, etc. Oh yeah, so far it has always been
a windows user. Go figure...

In the general case it isn't necessary to take the Cyrus server down
just to reconstruct a single mailbox, I don't and nothing bad has ever
happened.
-- 
The instructions said to use Windows 98 or better, so I installed
RedHat.


---
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: Corrupt inbox, related to size?

2004-05-26 Thread Kevin Baker
How about this. I found out that the previous
administrator was restarting Cyrus and Flushing Postfix
every couple hours as Cyrus seemed to be having problems
with hanging. A sneaky hidden cron...

So I will look into this... but

If the user happened to be accessing Cyrus when the server
was "bounced" could this corrupt the mailbox.

That is great to know about not restarting Cyrus.. I was
just following a man of mine. I guess I'm curious how it
would handle receiving a message while reconstructing.

Configuration (previous request)
- RH9
- Cyrus 2.1.15
- Postfix 2.0.16
- OpenLDAP 2.0.27





> On Wed, 2004-05-26 at 12:23, Kevin Baker wrote:
>> I had to reconstruct my first cyrus user inbox today.
>>
>> I have to say it makes me a bit nervous. We are running
>> Postfix+Cyrus+LDAP with about 500 user, pretty good
>> traffic, on 512Ram Raid1.
>>
>> This particular user had about 1000 messages in her
>> inbox.
>>
>> It was fine after I ran reconstruct, but this is very
>> inconvient as I need to take down cyrus during the
>> process.
>>
>> Does anyone have ideas as to what would cause this.
>> Could
>> it be related to the number of messages in her inbox?
>>
> Not likely... I've seen this from time to time with ever
> version of
> Cyrus that I've used. The only common thread that I've
> observed has been
> that the mailboxes that need a reconstruct always seem to
> be accessed
> via POP. And in most cases a check with the user has
> revealed that
> his/her client aborted, was killed or they rebooted the
> system because
> something was hung, misbehaving, etc. Oh yeah, so far it
> has always been
> a windows user. Go figure...
>
> In the general case it isn't necessary to take the Cyrus
> server down
> just to reconstruct a single mailbox, I don't and nothing
> bad has ever
> happened.
> --
> The instructions said to use Windows 98 or better, so I
> installed
> RedHat.
>
>
>
>

---
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: Corrupt inbox, related to size?

2004-05-26 Thread Michael Loftis

--On Wednesday, May 26, 2004 18:13 -0700 Kevin Baker <[EMAIL PROTECTED]> 
wrote:

How about this. I found out that the previous
administrator was restarting Cyrus and Flushing Postfix
every couple hours as Cyrus seemed to be having problems
with hanging. A sneaky hidden cron...
God that'd cause corruption heh.  No need to restart it like that.
And oyu said there were no crons! ;)  Need to check your logs :)

So I will look into this... but
If the user happened to be accessing Cyrus when the server
was "bounced" could this corrupt the mailbox.
That is great to know about not restarting Cyrus.. I was
just following a man of mine. I guess I'm curious how it
would handle receiving a message while reconstructing.
E_TEMPFAIL/RC=75/4xx depending on what layer you're talking about.
---
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: Corrupt inbox, related to size?

2004-05-26 Thread Kevin Baker
Thank yeah.. I'm taking down this cron.



>
>
> --On Wednesday, May 26, 2004 18:13 -0700 Kevin Baker
> <[EMAIL PROTECTED]>
> wrote:
>
>> How about this. I found out that the previous
>> administrator was restarting Cyrus and Flushing Postfix
>> every couple hours as Cyrus seemed to be having problems
>> with hanging. A sneaky hidden cron...
>
> God that'd cause corruption heh.  No need to restart it
> like that.
>
> And oyu said there were no crons! ;)  Need to check your
> logs :)
>
>
>> So I will look into this... but
>>
>> If the user happened to be accessing Cyrus when the
>> server
>> was "bounced" could this corrupt the mailbox.
>>
>> That is great to know about not restarting Cyrus.. I was
>> just following a man of mine. I guess I'm curious how it
>> would handle receiving a message while reconstructing.
>
> E_TEMPFAIL/RC=75/4xx depending on what layer you're
> talking about.
>
> ---
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info:
> http://asg.web.cmu.edu/cyrus/mailing-list.html
>
>

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