quota corruption
Erol YILDIZ
erol.yildiz at hevokullari.k12.tr
Sat Dec 29 04:44:25 EST 2007
I could recovered the mailboxes in about six steps. By the way I have solved
the cyradm problem by giving ownership of /etc/sasldb2 to cyrus and mail
group. Now I can use cyradmin without any problem. Here are the steps I did
below for recovering the content of the default Inbox folder.
1) I took the backup of the mailbox of the user
2) touch cyrus.index (I do this to be able to delete the mailbox, otherwise
it doesnt because the mailbox is corupted)
3) from cyradmin 'dm user/gulfer^tuna'
4) from cyradmin 'cm user/gulfer^tuna'
5) Then I copied the contents of the backedup mailbox contents to the newly
created
6) Then I deleted cyrus.index by 'rm
/var/spool/imap/user/gulfer^tuna/cyrus.index'
7) And I recreated the cyrus.index from cyradm by 'reconstruct -f -r
user/gulfer^tuna'
and then the mailbox is recovered. But now some of the users still having
the problems for which I have started this thread. One of the symptoms is,
users can't purge deleted items, when they press purge it says the client
lost connection to the server and that maybe becuase either the folder
doesnt exist or this is a limitation of the imap server. Another one is when
the user selects a mail to view, client says it needs to be downloaded from
the server and asks the user if he wants to mark it for download. Even if
the user marks it for download still cant view the mail. Now you know when I
disable the quota for the user the problem was solved so that I tought it
may be because of the quota files. But when I did 'quota -f' this didnt help
to solve the problem. Maybe I need to delete the quota files and recreate
them.
Any further ideas?
Thanks.
--
Erol YILDIZ
> On Dec 28, 2007 10:46 AM, Erol YILDIZ <erol.yildiz at hevokullari.k12.tr>
> wrote:
>> I have recontructed all of the users with reconstruct command and then
>> could
>> run quota -f without any problem but this didnt solve the connetion
>> problems
>> for the quota enabled accounts plus now I have a bigger problem with some
>> of
>> the accounts. Some of the users Inbox accounts disappeared. If I send a
>> test
>> mail to one of these users I receive the error below from the Mail
>> delivery
>> System.
>>
>> '<gulfer.tuna at sles.hevokullari.k12.tr> (expanded from
>> <gulfer.tuna at hevokullari.k12.tr>): host
>> /var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp] said:
>> 550-Mailbox
>> unknown. Either there is no mailbox associated with this 550-name or
>> you
>> do not have authorization to see it. 550 5.1.1 User unknown (in reply
>> to
>> RCPT TO command)'
>
>
> First look if the mailbox exist in cyradm or using :
>
> # ctl_mboxlist -d | grep gulfer.tuna
>
> then look if the directory exist in the file system
>
> # ls -la `mbpath user/gulfer.tuna at sles.hevokullari.k12.tr`
>
> check for user right of the directory and of files inside.
>
> I dont understant what "expanded from" mean. Any idea ?
>
>
>>
>> How can I recover these Inbox folders?
>>
>> --
>> Thanks
>>
>>
>> ----- Original Message -----
>> From: "Alain Spineux" <aspineux at gmail.com>
>> To: "Erol YILDIZ" <erol.yildiz at hevokullari.k12.tr>
>> Cc: <info-cyrus at lists.andrew.cmu.edu>
>> Sent: Thursday, December 27, 2007 11:23 PM
>> Subject: Re: quota corruption
>>
>>
>> > On Dec 27, 2007 7:51 PM, Erol YILDIZ <erol.yildiz at hevokullari.k12.tr>
>> > 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?
>> >>
>> >> Dec 27 19:33:30 sles quota[14313]: IOERROR: opening
>> >> /var/spool/imap/user/a_akpinar/cyrus.header: No such file or directory
>> >
>> > You can use "reconstruct" to rebuild these files.
>> > Then you can use the cyradm to delete the mailbox.
>> >
>> >>
>> >>
>> >> ----- Original Message -----
>> >> From: "Patrick Boutilier" <boutilpj at ednet.ns.ca>
>> >> To: <info-cyrus at lists.andrew.cmu.edu>
>> >> Sent: Thursday, December 27, 2007 5:36 PM
>> >> Subject: Re: quota corruption
>> >>
>> >>
>> >> > 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" <simon.matter at invoca.ch>
>> >> >> To: "Alain Spineux" <aspineux at gmail.com>
>> >> >> Cc: "Erol YILDIZ" <erol.yildiz at hevokullari.k12.tr>;
>> >> >> <info-cyrus at lists.andrew.cmu.edu>
>> >> >> Sent: Thursday, December 27, 2007 4:53 PM
>> >> >> Subject: Re: quota corruption
>> >> >>
>> >> >>
>> >> >>>> On Dec 27, 2007 2:44 PM, Erol YILDIZ
>> >> >>>> <erol.yildiz at hevokullari.k12.tr>
>> >> >>>> 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
>> >> >
>> >> >
>> >>
>> >>
>> >> --------------------------------------------------------------------------------
>> >>
>> >>
>> >>
>> >> > ----
>> >> > 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
>> >>
>> >
>> >
>> >
>> > --
>> > Alain Spineux
>> > aspineux gmail com
>> > May the sources be with you
>> >
>>
>> ----
>> 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
>>
>
>
>
> --
> Alain Spineux
> aspineux gmail com
> May the sources be with you
>
More information about the Info-cyrus
mailing list