Re: cyrus + sasl + pam + mysql problem

2006-03-22 Thread Rudy Gevaert

Hi,

With the help of the list I have set up cyrus + sasl + pam + mysql.  The 
only problem I still have is that I can't log in for a user with the 
cyradm password.


My cyradm password is set and can be found in the /etc/sasldb2 file.

 How can I further debug this?

Thanks in advance,
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert e-mail: [EMAIL PROTECTED]
Directie ICT, Afdeling Infrastructuur
Groep Systemen  tel: +32 9 264 4734
Universiteit Gent / Ghent Universityfax: +32 9 264 4994
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

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 + sasl + pam + mysql problem

2006-03-22 Thread Simon Matter
 Hi,

 With the help of the list I have set up cyrus + sasl + pam + mysql.  The
 only problem I still have is that I can't log in for a user with the
 cyradm password.

 My cyradm password is set and can be found in the /etc/sasldb2 file.

If you have your users in mysql, you don't need anything in /etc/sasldb2.
You have to set your admin accounts for cyradm in the mysql db.

Simon


   How can I further debug this?

 Thanks in advance,
 --
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 Rudy Gevaert e-mail: [EMAIL PROTECTED]
 Directie ICT, Afdeling Infrastructuur
 Groep Systemen  tel: +32 9 264 4734
 Universiteit Gent / Ghent Universityfax: +32 9 264 4994
 Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 
 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: what happens to mail after sieve error?

2006-03-22 Thread Lars Schimmer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andreas Hasenack wrote:
 On Tue, Mar 21, 2006 at 11:51:04PM +1030, Daniel O'Connor wrote:
 
On Tuesday 21 March 2006 23:00, Lars Schimmer wrote:

I use exim4 4.5 and cyrus 2.1.18-1 on a debian stable system with sieve
scripts.
But now 1 sievescript hit an error for a mail received by exim:
Mar 19 20:56:55 europa cyrus/lmtpd[23422]: sieve runtime error for
UseraBC id [EMAIL PROTECTED]: Fileinto: Mailbox
does not exist

What happens with THIS mail?
Exim4 is happy and done, because it delivered the mail to cyrus, no
error in logfile.
And there is NO mailbox in which sieve could drop the mail.
Is the mail being deleted to nirvana?

It should go straight into the user inbox.
(Does for me anyway)
 
 
 And if there isn't an INBOX, the email will bounce.

We've got a complicated system here in which I'm not sure, it will
bounce secure.

Our System:
A bunch of 20-30 similar email addresses like [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED] ...
In the aliases file we forward these all to ONE account [EMAIL PROTECTED]
With a sieve filter we sort all mails from this [EMAIL PROTECTED] account to
different non-user-accounts in cyrus (not inbox.aac but aac), because
more than 10 users need access to these.
And I'm not really sure if the mail bounce for sure if the aac-boy
doesn't exist in which the sieve script should put the mail.

Cya
Lars Schimmer
- --
- -
TU Graz, Institut für ComputerGraphik  WissensVisualisierung
Tel: +43 316 873-5405   E-Mail: [EMAIL PROTECTED]
Fax: +43 316 873-5402   PGP-Key-ID: 0x4A9B1723
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEIVPtmWhuE0qbFyMRAlkvAJwNCJgDvNKC6WBa/8ResXiJtOjmFQCfVYA9
iN79KHRCkR0hORBQ/78gWf0=
=KjRn
-END PGP SIGNATURE-

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 + sasl + pam + mysql problem

2006-03-22 Thread Rudy Gevaert

Simon Matter wrote:

Hi,

With the help of the list I have set up cyrus + sasl + pam + mysql.  The
only problem I still have is that I can't log in for a user with the
cyradm password.

My cyradm password is set and can be found in the /etc/sasldb2 file.



If you have your users in mysql, you don't need anything in /etc/sasldb2.
You have to set your admin accounts for cyradm in the mysql db.


Ok: I removed /etc/sasldb2 and added a user cyradm in my mysql db.  With 
a password.


opening an imap connection for a user and using the password of the 
cyradm user doesn't work.


Neighter does
sieveshell  -a cyrus -u rgevaert localhost
(Before with the sasldb2 file I could get logged in)

(I have a /etc/pam.d/sieve in place that points to pam-mysql)

Does anyone have any ideas?

Thanks in advance,

--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert e-mail: [EMAIL PROTECTED]
Directie ICT, Afdeling Infrastructuur
Groep Systemen  tel: +32 9 264 4734
Universiteit Gent / Ghent Universityfax: +32 9 264 4994
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

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


terminated abnormally

2006-03-22 Thread Patrick Radtke
Every day we get a number of 'terminated abnormally' messages on our  
frontends.
When they happen just occasionally then everything still seems to run  
fine.


However sometimes, there will be a large number of them in a short  
time span and this is a sure sign that people are having trouble  
logging in or are being disconnected.



here is examples from the log

Mar 22 10:50:07 tofu master[19506]: service pop3s pid 18311 in READY  
state: terminated abnormally
Mar 22 10:50:10 tofu master[19506]: service imaps pid 18128 in READY  
state: terminated abnormally
Mar 22 10:50:20 tofu master[19506]: service imaps pid 18348 in READY  
state: terminated abnormally
Mar 22 10:50:23 tofu master[19506]: service imaps pid 13063 in READY  
state: terminated abnormally
Mar 22 10:50:32 tofu master[19506]: service pop3s pid 18404 in READY  
state: terminated abnormally
Mar 22 10:50:33 tofu master[19506]: service pop3s pid 18218 in READY  
state: terminated abnormally


Mar 22 11:01:42 valoney master[2581]: service imaps pid 25617 in  
READY state: terminated abnormally
Mar 22 11:01:46 valoney master[2581]: service pop3s pid 25682 in  
READY state: terminated abnormally
Mar 22 11:01:47 valoney master[2581]: service imaps pid 25903 in  
READY state: terminated abnormally


searching on just a fail process id shows

Mar 22 11:01:38 valoney imaps[25903]: imaps failed: [local]
Mar 22 11:01:47 valoney master[2581]: service imaps pid 25903 in  
READY state: terminated abnormally
Mar 22 11:01:51 valoney master[2581]: service imaps pid 25903: while  
trying to process message 0x2: not registered yet
Mar 22 11:01:52 valoney master[2581]: service imaps pid 25903 in  
UNKNOWN state: processing message 0x2



ar 22 11:01:04 valoney pop3s[25440]: starttls: TLSv1 with cipher RC4- 
MD5 (128/128 bits new) no authentication
Mar 22 11:01:20 valoney pop3s[25440]: login:  
pool-141-155-147-109.ny5030.east.verizon.net [141.155.147.109] jg2378  
plaintext+TLS User logged in
Mar 22 11:01:21 valoney pop3s[25440]: failed to bind to address  
128.59.48.36: Cannot assign requested address

Mar 22 11:01:21 valoney pop3s[25440]: Doing a peer verify
Mar 22 11:01:21 valoney pop3s[25440]: Doing a peer verify
Mar 22 11:01:21 valoney pop3s[25440]: starttls: TLSv1 with cipher  
AES256-SHA (256/256 bits new) no authentication

Mar 22 11:01:36 valoney pop3s[25440]: pop3s failed: [local]
Mar 22 11:01:37 valoney pop3s[25440]: Fatal error: tls_start_servertls 
() failed
Mar 22 11:01:41 valoney master[2581]: service pop3s pid 25440 in  
READY state: terminated abnormally
Mar 22 11:01:52 valoney master[2581]: service pop3s pid 25440: while  
trying to process message 0x2: not registered yet
Mar 22 11:01:52 valoney master[2581]: service pop3s pid 25440 in  
UNKNOWN state: processing message 0x2






Anyone know what's going on? Are the process being terminated since  
they are in an UNKNOWN state or are they in an UNKNOWN state since  
they are being terminated? The log time stamps suggest the latter,  
but why are some of them dying?



We thought it correlated to a sudden increase in incoming  
connections, but then sometimes these errors happen at 6am when not  
too many users are logging in.


anyone have any ideas?

2.2.12 frontends.

-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: cyrus + sasl + pam + mysql problem [auf V iren überprüft]

2006-03-22 Thread Hans Moser

Rudy Gevaert schrieb:


My cyradm password is set and can be found in the /etc/sasldb2 file.

If you have your users in mysql, you don't need anything in /etc/sasldb2.
You have to set your admin accounts for cyradm in the mysql db.
Ok: I removed /etc/sasldb2 and added a user cyradm in my mysql db.  With 
a password.


opening an imap connection for a user and using the password of the 
cyradm user doesn't work.


Neighter does
sieveshell  -a cyrus -u rgevaert localhost
(Before with the sasldb2 file I could get logged in)

Is the username cyrus (like in -a cyrus) or cyradm?

Hans


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 + sasl + pam + mysql problem

2006-03-22 Thread Rudy Gevaert

Hi,

A followup.  It seems that I informed incorrectly and that our 
authentication whas hacked to let us login to all accounts with a second 
password.


I am able to do this now with pam + mysql too.  I added a second line in 
my pam-msql config so that it also checks an other column if the normal 
password doesn't work.  (Maybe I could use an other module)


However this doesn't solve my other problem: the cyradm user his 
password is in the /etc/sasldb2 file.


Any pointers for this problem?

Thanks in advance,

Rudy

Rudy Gevaert wrote:

Simon Matter wrote:


Hi,

With the help of the list I have set up cyrus + sasl + pam + mysql.  The
only problem I still have is that I can't log in for a user with the
cyradm password.

My cyradm password is set and can be found in the /etc/sasldb2 file.




If you have your users in mysql, you don't need anything in /etc/sasldb2.
You have to set your admin accounts for cyradm in the mysql db.



Ok: I removed /etc/sasldb2 and added a user cyradm in my mysql db.  With 
a password.


opening an imap connection for a user and using the password of the 
cyradm user doesn't work.


Neighter does
sieveshell  -a cyrus -u rgevaert localhost
(Before with the sasldb2 file I could get logged in)

(I have a /etc/pam.d/sieve in place that points to pam-mysql)

Does anyone have any ideas?

Thanks in advance,




--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert e-mail: [EMAIL PROTECTED]
Directie ICT, Afdeling Infrastructuur
Groep Systemen  tel: +32 9 264 4734
Universiteit Gent / Ghent Universityfax: +32 9 264 4994
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

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: 430 Authentication required

2006-03-22 Thread Per-Olov Sjöholm
On Wed, February 1, 2006 16:32, Antoine Jacoutot wrote:
 Hi...

From time to time, I get the following in my logs :

 sm-mta[29466]: k1183niY029466: to=username, delay=00:00:00,
  xdelay=00:00:00, mailer=cyrusv2, pri=3, relay=localhost
  [[UNIX: /var/imap/socket/lmtp]], dsn=4.0.0, stat=Deferred:
  430 Authentication required

 The message then get stuck and it is delivered  when the queue is flushed.
 The strange thing is that I do _not_ use any smtp authentication system
 (nor any
 other actually) and that this problem only happens randomly (no error in
 my
 cyrus-imapd log either).

 On usenet one told me to try :
 $ (echo 'subject: test'; echo)| sendmail -Am -v [EMAIL PROTECTED]
 [EMAIL PROTECTED] Connecting to local...
 [EMAIL PROTECTED] Sent

 It works fine. It's kind of a pain to debug since it only happens from
 time to
 time and I cannot find a way to reproduce this.

 Do you have any idea where this could come from ?
 Let me know if you need anymore information.

 Regards,

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



Hi Antoine

Any solution to this yet?

Asking as I have had the same thing for a while now. And as you say, a
queue run from sendmail and the mail is delivered... And it also happens
randomly as you say.

The problem came with the OpenBSD 37-3.8 upgrade (the OS or a newer
sendmail). If it's not the OS or the newer sendmail it must be a change i
the cyrus 2.2.12 port that I now use from 3.8 stable tree instead of the
earlier inofficial 2.2.12 port. The cyrus and sendmail conf is exactly the
same.


Thanks
Per-Olov Sjöholm


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: 430 Authentication required

2006-03-22 Thread Antoine Jacoutot

On Wed, 22 Mar 2006, Per-Olov Sjöholm wrote:

Any solution to this yet?


Hi... no, unfortunately not yet :(


Asking as I have had the same thing for a while now. And as you say, a
queue run from sendmail and the mail is delivered... And it also happens
randomly as you say.

The problem came with the OpenBSD 37-3.8 upgrade (the OS or a newer
sendmail). If it's not the OS or the newer sendmail it must be a change i
the cyrus 2.2.12 port that I now use from 3.8 stable tree instead of the
earlier inofficial 2.2.12 port. The cyrus and sendmail conf is exactly the
same.


As soon as as I have some time, I'll look into it to see, at least, what 
is causing this: the OS, cyrus, sendmail...

I'll let you know.

Nice to see I'm not alone in this :)

--
Antoine
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: Renaming A User

2006-03-22 Thread Kai Wang


Simon,

How do you know if a user is logged in?


Simon Matter wrote:

Hi all

I Googled it and looked over the archives and couldn't find a
definitive answer, so I'm going to ask here...

I have a user who got married and changed her name.  On the UNIX side
of things, the name change is pretty easy.  I can handle this part.
The part where I'm having trouble is with the name change in cyradm.
I found the old documentation from the O'Reilly book.  However,
that's apparently extremely out of date.  I tried to find an updated
version of Managing IMAP, but there is apparently not enough call
for it.  I have some pretty heavy lifting to do in the next few
months and would like to have a good reference.

On a different list, someone flippantly suggested I just rename the
user in cyradm.  Is this prudent?  If she has a lot of sub-mailboxes,
will they all make it over in the newer versions of cyrus?  As I
recall, this wasn't completely functional at the time the book was
written.



You need 'allowusermoves: yes' in /etc/imapd.conf to make renaming work.
Then, when you rename, make absolutely sure the user is not logged in
while renaming in cyradm.

Simon

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


--
Kai Wang
System Services
Information Technologies, University of Calgary,
2500 University Drive, N.W.,
Calgary, Alberta, Canada T2N 1N4
Phone (403) 220-2423, Fax (403) 282-9361


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: Renaming A User

2006-03-22 Thread Patrick Radtke



there is a proc directory in your cyrus folder that lists which users  
are logged in through which imap process.
You can look in there. You might also want to check if the user has  
any shared mailboxes that other users are accessing.


As for preventing the user from logging you can temporarily disable  
their password (at least thats what we've done with kerberos)


-Patrick
On Mar 22, 2006, at 12:41 PM, Kai Wang wrote:



Simon,

How do you know if a user is logged in?


Simon Matter wrote:

Hi all

I Googled it and looked over the archives and couldn't find a
definitive answer, so I'm going to ask here...

I have a user who got married and changed her name.  On the UNIX  
side

of things, the name change is pretty easy.  I can handle this part.
The part where I'm having trouble is with the name change in cyradm.
I found the old documentation from the O'Reilly book.  However,
that's apparently extremely out of date.  I tried to find an updated
version of Managing IMAP, but there is apparently not enough call
for it.  I have some pretty heavy lifting to do in the next few
months and would like to have a good reference.

On a different list, someone flippantly suggested I just rename the
user in cyradm.  Is this prudent?  If she has a lot of sub- 
mailboxes,

will they all make it over in the newer versions of cyrus?  As I
recall, this wasn't completely functional at the time the book was
written.



You need 'allowusermoves: yes' in /etc/imapd.conf to make renaming  
work.

Then, when you rename, make absolutely sure the user is not logged in
while renaming in cyradm.

Simon

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



--
Kai Wang
System Services
Information Technologies, University of Calgary,
2500 University Drive, N.W.,
Calgary, Alberta, Canada T2N 1N4
Phone (403) 220-2423, Fax (403) 282-9361


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


interpreting log messages (duplicate_suppression)

2006-03-22 Thread Chad A. Prey
I've been experiencing some issues with disappearing email which I
attribute to cyrus duplicate suppression. We found some corresponding
log entries for the emails...does anyone know what the numbers
1142299048  18748  1142299050 and the 0 actually mean?


Mar 13 17:17:30 thymine lmtpunix[1964]: duplicate_mark: B62595F8-
[EMAIL PROTECTED] user.coyne   1142299048
18748
Mar 13 17:17:30 thymine lmtpunix[1964]: mystore: starting txn 2150126845
Mar 13 17:17:30 thymine lmtpunix[1964]: mystore: committing txn
2150126845
Mar 13 17:17:30 thymine lmtpunix[1964]: duplicate_mark: B62595F8-
[EMAIL PROTECTED] [EMAIL PROTECTED]  1142299050 0


Chad Prey
[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


Restored mailboxes causes replication to bail

2006-03-22 Thread Roland Pope

Hi all,

I am in the process of testing the new 2.3.3 Replication code and it has 
highlighted an issue which seems to relate to how I have been recovering 
people's mailboxes.


I occasionally get a call from a user 'xxx' saying they would like a backup 
copy of all their mail loaded down from tape, adjacent to their live email.
What I have been doing is to create a user.xxx.Recovered folder and load 
their whole mailbox heirachy from backup to this location.
Then I run a a recursive reconstruct to add the reloaded mailboxes into 
thier live account (ie reconstruct -rf user.xxx.Recovered).
When I try to replicate a user which has such a 'Recovered' mailbox, the 
replication client  bails out because it seems to treat the 
'user.xxx.Recovered' mailbox as the user.xxx INBOX and trys to do a rename 
(which fails). There must be something stored in the cyrus.* files in a 
reloaded INBOX which treats such a folder differently to normal user 
sub-mailbox?

What should I do here?
Should I remove one of the cyrus.* files from the reloaded inbox folder 
before doing the reconstruct?
Or am I doing something incorrect with my reloads that I should be doing 
differently.


Thanks
Roland 



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


All messages showing as new

2006-03-22 Thread D Canfield
I just migrated about 3000 accounts to cyrus, and most have gone without 
a hitch.  However, I have one single account in which all of the 
messages in the account show as new/unread no matter how many times a 
message is viewed and no matter what client we use.  The account has 
full lrswipcda acl access to it's own mailbox, and new messages are 
delivered without a problem.  I've run reconstruct -f a number of times 
as well, and the issue persists.  Can anyone offer any suggestions?


Many thanks in advance.

DC

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: Restored mailboxes causes replication to bail

2006-03-22 Thread Andrew Morgan

On Thu, 23 Mar 2006, Roland Pope wrote:


Hi all,

I am in the process of testing the new 2.3.3 Replication code and it has 
highlighted an issue which seems to relate to how I have been recovering 
people's mailboxes.


I occasionally get a call from a user 'xxx' saying they would like a backup 
copy of all their mail loaded down from tape, adjacent to their live email.
What I have been doing is to create a user.xxx.Recovered folder and load 
their whole mailbox heirachy from backup to this location.
Then I run a a recursive reconstruct to add the reloaded mailboxes into thier 
live account (ie reconstruct -rf user.xxx.Recovered).
When I try to replicate a user which has such a 'Recovered' mailbox, the 
replication client  bails out because it seems to treat the 
'user.xxx.Recovered' mailbox as the user.xxx INBOX and trys to do a rename 
(which fails). There must be something stored in the cyrus.* files in a 
reloaded INBOX which treats such a folder differently to normal user 
sub-mailbox?

What should I do here?
Should I remove one of the cyrus.* files from the reloaded inbox folder 
before doing the reconstruct?
Or am I doing something incorrect with my reloads that I should be doing 
differently.


I don't have any experience with the replication code, but I use almost 
the exact same procedure as you to restore mail for users.  The only 
difference is that I only restore the cyrus.header file and the ##. files. 
I never restore the cyrus.cache and cyrus.index files.


I can't remember the exact reason, but I think whenever I had those files 
around, I couldn't get reconstruct to work on the restored mailbox.  Note 
that this was on Cyrus 2.1.x originally, so maybe it works fine anyways in 
2.2.x and 2.3.x.


Something worth trying anyways.

Andy

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: All messages showing as new

2006-03-22 Thread Andrew Morgan

On Wed, 22 Mar 2006, D Canfield wrote:

I just migrated about 3000 accounts to cyrus, and most have gone without a 
hitch.  However, I have one single account in which all of the messages in 
the account show as new/unread no matter how many times a message is viewed 
and no matter what client we use.  The account has full lrswipcda acl access 
to it's own mailbox, and new messages are delivered without a problem.  I've 
run reconstruct -f a number of times as well, and the issue persists.  Can 
anyone offer any suggestions?


Delete the username.seen file and let Cyrus recreate it?

Andy

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