Ramprasad | 1 Feb 07:29 2007
Picon

Re: How to reconstruct database

On Wed, 2007-01-31 at 12:16 +0100, Dr. Harry Knitter wrote:
> hello,
> 
> I want to transfer the contents of my cyrus from an i385 machine to a 
> AMD-64-machine.
> How can I restore the mailbox database from the text file created by:
> su - cyrus -c "ctl_mboxlist -d" > $CONFIGDIRECTORY/mailboxlist.txt
> ?
> 

su - cyrus -c "ctl_mboxlist -u < /path/mailboxlist.txt"

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

Dr. Harry Knitter | 1 Feb 08:39 2007
Picon

Re: How to reconstruct database

Am Donnerstag, 1. Februar 2007 07:29 schrieb Ramprasad:
> On Wed, 2007-01-31 at 12:16 +0100, Dr. Harry Knitter wrote:
> > hello,
> > 
> > I want to transfer the contents of my cyrus from an i385 machine to a 
> > AMD-64-machine.
> > How can I restore the mailbox database from the text file created by:
> > su - cyrus -c "ctl_mboxlist -d" > $CONFIGDIRECTORY/mailboxlist.txt
> > ?
> > 
> 
> 
> su - cyrus -c "ctl_mboxlist -u < /path/mailboxlist.txt"
> 
> 

many thanks for help. It works perfectly.

Thanks again

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

Earl Shannon | 1 Feb 13:45 2007
Picon

Negative worker count?!?

Hello,

We've recently started to see this show up in our imapd.log file:

Jan 31 17:24:03 uni24map master[3673]: lmtp has -2 workers?!?
Jan 31 17:24:03 uni24map master[3673]: lmtp has -1 workers?!?

Does anyone know why the master would think the lmtp count has gone
negative?

The imap server gets very slow to respond to connections when this
happens, which is what gets it noticed. Looking around and this
is what we find.

For the curious, here's uname -a:

Linux uni24map.unity.ncsu.edu 2.4.21-15.0.4.ELsmp #1 SMP Sat Jul 31 
01:25:25 EDT 2004 i686 i686 i386 GNU/Linux

Right now we would entertain wild speculation regarding the
cause. We have 12 machines and this is only the second one to
display this behavior. They are all as much the same both in
hardware and software as we can make them.

Regards,
Earl Shannon
--
NCSU ITD Unix Systems
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
(Continue reading)

Phil Chambers | 1 Feb 15:33 2007
Picon

Converting from berkeley to skiplist

I would like to change from using

mboxlist_db: berkeley

to

mboxlist_db: skiplist

I am reasonably confident that I should close down cyrus. Then, as the cyrus 
user, run

  ctl_mboxlist -d > /tmp/mboxlist.txt

then rename /CONFDIR/mailboxes.db to mailboxes.berkely,

then edit /etc/imapd.conf to change mboxlist_db to skiplist,

then, as the cyrus user, run

  ctl_mboxlist -u < /tmp/mboxlist.txt

to generate the skiplist vesion of /CONFDIR/mailboxes.db

However, I am not sure about a couple of other things:

Presumably I should rename /CONFDIR/db.backup1 and /CONFDIR/db.backup2 so that 
there is a clean start with skiplist?

What about /CONFDIR/db and the files in there?  What are they for?

(Continue reading)

Picon

Re: Negative worker count?!?

On Thu, 01 Feb 2007, Earl Shannon wrote:
> Jan 31 17:24:03 uni24map master[3673]: lmtp has -2 workers?!?
> Jan 31 17:24:03 uni24map master[3673]: lmtp has -1 workers?!?

Which Cyrus version, and if using a prepackaged one, exactly which one?

--

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
----
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

Earl Shannon | 1 Feb 17:02 2007
Picon

Re: Negative worker count?!?

Hello,

Oops. That would be nice to know too wouldn't it.

Cyrus IMAP4 v2.2.12

Built from source.

Regards,
Earl Shannon

Henrique de Moraes Holschuh wrote:

>On Thu, 01 Feb 2007, Earl Shannon wrote:
>  
>
>>Jan 31 17:24:03 uni24map master[3673]: lmtp has -2 workers?!?
>>Jan 31 17:24:03 uni24map master[3673]: lmtp has -1 workers?!?
>>    
>>
>
>Which Cyrus version, and if using a prepackaged one, exactly which one?
>
>  
>

----
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
(Continue reading)

Hans Moser | 1 Feb 18:30 2007
Picon

Re: Cyrus Imapd shared folders question [auf Viren überprüft]

jc.duss59 <at> laposte.net schrieb:

> Jan 31 17:59:37 imaptest ptloader[726]:
> ldap_sasl_interactive_bind() failed 16 (No such attribute).
> Jan 31 17:59:37 imaptest imap[727]: ptload(): bad response
> from ptloader server: ptsmodule_connect() failed
> Jan 31 17:59:37 imaptest imap[727]: ptload completely failed:
> unable to canonify identifier: toto2
> Jan 31 17:59:37 imaptest imap[727]: badlogin: [10.1.45.1]
> plaintext toto2 invalid user
Please show the toto2 entry from your ldap server.

# ldapsearch -x -h ldap.mydomain.com  -b ou=users,o=myorg,dc=fr uid=toto2

you must have anonymous read access to uid.

I use this in imapd 2.2.12 (ldapdb and pts):

sasl_log_level: 5
sasl_pwcheck_method: auxprob
sasl_auxprob_plugin: ldapdb
sasl_ldapdb_uri: ldap://foo
sasl_ldapdb_id: human
sasl_ldapdb_pw: pw
sasl_ldapdb_mech:  PLAIN DIGEST-MD5 CRAM-MD5 LOGIN
allowplaintext: yes
sasl_minimum_layer: 0
sasl_ldapdb_starttls: Demand
sasl_ldap_search_base: ou=humans,ou=bar
sasl_ldap_search_filter: maildrop=%U
(Continue reading)

Hans Moser | 1 Feb 18:39 2007
Picon

Re: Delivering mail to remote mailbox (cyrus imapd) [auf Viren überprüft]

Raul Dias schrieb:

> For some users I would like to deliver the mail to a remote cyrus imapd.
"For some users" means you cannot use a global configuration.
In postfix I would say you could define some kind of condition and if 
this is true use a lmtp transport to imapd box. [first clue]

> Forwarding to a MTA in the cyrus box is not an option, as it is really
> common to have to reprocess email in a baysian database.  If the message
> is forwarded to another mta, this can confuse the learning leading to
> false positives and negatives.
Really?

> I know that lmtp can listen to a tcp port which solves the cyrus side of
> the problem.  However I need to deliver the message to the lmtp server.
> If it was local I could use "deliver", but deliver does not work over
> tcp (am I wrong?).
IMHO yes, it cannot.

> So, what are my possibilities?  Should I write my own MDA for this?
I think you should ask at MTA side -> sendmail.

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

Kristaps Armanis | 1 Feb 19:17 2007
Picon

Re[4]: Migrating Cyrus 2 Cyrus new hardware

Hello,

Saturday, January 27, 2007, 6:53:27 AM, Jus rakstijat:
>> RG> With just about any filesystem, I would recommend smaller
>> RG> partitions (250G or so). It really isn't any harder to
>> RG> manage, and backup/restore/fsck will be much happier.

Still about migrating 2.1.9  to 2.2.12 and new hardware.

Shoud /var/imap/quota/* be copied? Or  quota -f ?  quota -f
seems not to work in my tests till now.

And /var/imap/user/* seems to bee the seen db files for each
user? Can these be easely copied? Both on old & new server
skiplist is used for seen db's.

Thank you for any advice! ;)
--
kristaps

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

Raul Dias | 1 Feb 20:13 2007
Picon

Re: Delivering mail to remote mailbox (cyrus imapd) [auf Viren überprüft]

On Thu, 2007-02-01 at 18:39 +0100, Hans Moser wrote:
> > For some users I would like to deliver the mail to a remote cyrus imapd.
> "For some users" means you cannot use a global configuration.
> In postfix I would say you could define some kind of condition and if 
> this is true use a lmtp transport to imapd box. [first clue]
I wish Icould use the lmtp client from postfix.
> 
> > Forwarding to a MTA in the cyrus box is not an option, as it is really
> > common to have to reprocess email in a baysian database.  If the message
> > is forwarded to another mta, this can confuse the learning leading to
> > false positives and negatives.
> Really?
yep, for a starter, the headers from the 2nd mta would be learned (good
or evil).

> > So, what are my possibilities?  Should I write my own MDA for this?
> I think you should ask at MTA side -> sendmail.
No help in that front.

But I solved it already with a Mail::Box perl script.

-Raul Dias

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


Gmane