can't subscribe to IMAP folder after syncing it from another server

2005-09-12 Thread lkolchin



Hello 
All,
 
I've installed 
Cyrus-IMAP with users on MySQL DB on SLES 9 and everything is working fine 
except the following.
Users connecting to 
my server using several e-mail clients and external Horde IMP (it is on another 
server managed by another person).
For some users, I've 
synced their folders created by Horde IMP on another server with UW-IMAP running 
on it, with their accounts on my Cyrus-IMAP server.
I did the 
syncronization with the imapsync utility (http://www.linux-france.org/prj/imapsync/).
 
The problem is that 
I can't subscribe to these folders (synced from another server) but I can use 
them via Horde IMP web interface.
When I try to 
subscribe to these folders (folder 'mail for example) via OE (Outlook 
Express) I get "Could not show 'mail'. The server refused to show it. The 
folder might already be shown."
And the details 
show:
Subscribe: Mailbox 
does not exist
 
Configuration:   Account: [EMAIL PROTECTED]   
Server: mail2.myserver.com   
User name: testuser3   Protocol: IMAP   Port: 
143   Secure(SSL): 0   Code: 
800cccd2
 
But the mailbox 
exist and I can see it, this is the listing:
 
drwx--   2 cyrus mail 144 Sep 11 12:35 
Draftsdrwx--   2 cyrus mail 144 Sep 11 13:11 
INBOX^Draftsdrwx--   2 cyrus mail 144 Sep 11 13:11 
INBOX^Sentdrwx--   2 cyrus mail 144 Sep 11 13:11 
INBOX^Trashdrwx--   2 cyrus mail 144 Sep 11 12:35 Sent 
Items-rw---   1 cyrus mail   4 Sep 11 13:12 
cyrus.cache-rw---   1 cyrus mail 185 Sep 11 12:16 
cyrus.header-rw---   1 cyrus mail  76 Sep 11 13:12 
cyrus.indexdrwx--   3 cyrus mail 168 Sep 12 15:02 
hadashdrwx--   4 cyrus mail 120 Sep 11 12:43 
maildrwx--   3 cyrus mail 248 Sep 11 14:38 
newdrwx--   3 cyrus mail  72 Sep 11 12:41 
test
 
And its 
testuser3.sub looks like:
user.testuser3user.testuser3.Draftsuser.testuser3.INBOX^Draftsuser.testuser3.INBOX^Sentuser.testuser3.INBOX^Trashuser.testuser3.Sent 
Itemsuser.testuser3.newuser.testuser3.new.son_of_newuser.testuser3.test.new

Below is the listing 
from another account. I've created there 'mail' folder via OE (didn't synced it 
from another server) and its permissions seems similar to permissions of 'mail' 
folder above, and I can see it in the OE:
-rw---   1 cyrus mail 849927 Sep 
12 15:18 2.drwx--   2 cyrus mail    144 Sep 12 
15:16 Draftsdrwx--   2 cyrus mail    144 Sep 12 
15:16 Sent Items-rw---   1 cyrus mail   1664 Sep 12 
15:19 cyrus.cache-rw---   1 cyrus mail    185 
Sep 12 15:12 cyrus.header-rw---   1 cyrus 
mail    136 Sep 12 15:19 cyrus.indexdrwx--   2 
cyrus mail    144 Sep 12 15:13 maildrwx--   3 
cyrus mail    168 Sep 12 15:13 mail2
 
And its 
testuser4.sub looks like:
user.testuser4user.testuser4.Draftsuser.testuser4.Sent 
Itemsuser.testuser4.mailuser.testuser4.mail2user.testuser4.mail2.mail22
 
What is the reason for this strange behavior and how to 
solve it?
 
Best 
Regards,
Leon 
Kolchinsky

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

Tutorial on how to backup/restore cyrus

2005-09-18 Thread lkolchin



Hello 
All,
 
Could you please 
point me to some good tutorial/manual on how to backup and restore Cyrus DB and 
mailboxes.
 
Best 
Regards,
Leon 
Kolchinsky

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: Tutorial on how to backup/restore cyrus

2005-09-19 Thread lkolchin



Hello 
again.
 
Is it 
really no one on the list can suggest me some backup/restore howto for Cyrus 
mailboxes?
I 
believe that there are some guys on the list who can 
help.
 
So 
please be so nice to answer me.
 
Best 
Regards,
Leon 
Kolchinsky


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
[EMAIL PROTECTED]Sent: Sunday, September 18, 2005 12:44 
PMTo: info-cyrus@lists.andrew.cmu.eduSubject: Tutorial on 
how to backup/restore cyrus

Hello 
All,
 
Could you please 
point me to some good tutorial/manual on how to backup and restore Cyrus DB and 
mailboxes.
 
Best 
Regards,
Leon 
Kolchinsky

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: Tutorial on how to backup/restore cyrus

2005-09-19 Thread lkolchin
Thank you guys for all your suggestions.

I've read this http://acs-wiki.andrew.cmu.edu/twiki/bin/view/Cyrus/Backup 
article.

I'm running SLES 9 with ReiserFS (noatime,acl,user_xattr,notail options)
configdirectory: /var/lib/imap
partition-default: /var/spool/imap

So lets say I convert my mailboxes.db to a text file like this:
su - cyrus -c "ctl_mboxlist -d" > /var/lib/imap/mailboxlist.txt

But next steps are very unclear:

Now I need to do a snapshot of the /var/lib/imap and /var/spool/imap to make 
proper backup.
I have a production environment so I think stopping the master process is very 
problematic.

A) So if anyone have some scripts with the snapshot feature who can share them, 
it would be nice to see them here.
B) Also any scripts with the minimal downtime for the cyrus are welcomed.
C) Any snapshot techniques (on reiserfs) are also very interesting and I like 
to here them.



P.S.
Thank you Vittorio for your script, but you are stopping the cyrus and I think 
it's very problematic in production environment. 


Best Regards,
Leon Kolchinsky


-Original Message-
From: Vittorio Muth [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 19, 2005 3:54 PM
To: לאון קולצ'ינסקי
Cc: info-cyrus@lists.andrew.cmu.edu
Subject: Re: Tutorial on how to backup/restore cyrus

Hi Leon,

There is (one of many) way(s) how you can perfom a backup:

This script is only for the mailboxes (/var/spool/mail/imap in my case) and the 
files in /var/imap (for example: mailboxes.db)


#/bin/bash

#first do an unstable copy  (just to reduce the downtime of cyrus later)

tmplog=/root/backupdir/tmpimaplog

echo "start backup of imap..." >> $tmplog 2>&1

echo "rsync of /var/imap" >> $tmplog 2>&1
rsync -a --delete /var/imap /raid/mail_backup/tmpstore/varimap/ \   
>> 
$tmplog 2>&1

echo "rsync of /raid/mail/imap" >> $tmplog 2>&1
rsync -a --delete /var/spool/mail/imap \
/raid/mail_backup/tmpstore/varspoolimap/ >> $tmplog 2>&1


#now we do an rsync to "stabilize" the backup

#shut down cyrus
echo "stopping cyrus" >> $tmplog 2>&1
/usr/local/bin/cyrus stop >> $tmplog 2>&1


#sync with rsync to get a 'stable' backup

#
rsync -a --delete /var/imap /raid/mail_backup/tmpstore/varimap/ >> $tmplog 2>&1

rsync -a --delete /var/spool/mail/imap \ 
/raid/mail_backup/tmpstore/varspoolimap/ >> $tmplog 2>&1

#start cyrus
echo "starting cyrus..." >> $tmplog 2>&1 /usr/local/bin/cyrus start >> $tmplog 
2>&1



#finally we move the whole temporary backup of the disk onto a tape:
#(requires an own script)

#do the rest... (like a normal backup, but with the archived paths in imap.list

echo "starting rest of backup..." >> $tmplog 2>&1

/root/backupdir/backup_imap

echo "...done." >> $tmplog 2>&1

# clean the temporary directory
rm -Rf /raid/mail_backup/tmpstore/*




I hope you can use it... If you have questions just feel free to ask.

best regards,

Vittorio




[EMAIL PROTECTED] wrote:
> Hello All,
>  
> Could you please point me to some good tutorial/manual on how to 
> backup and restore Cyrus DB and mailboxes.
>  
> Best Regards,
> Leon Kolchinsky
> 
> 
> --
> --
> 
> 
> 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

--


Muth Vittorio . System Administration
Hyperwave R&D GmbH . Albrechtgasse 9 . A-8010 Graz

t: +43.316.820.918.607  f: +43.316.820.918.99
m: [EMAIL PROTECTED]  w: http://www.hyperwave.com 



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: Tutorial on how to backup/restore cyrus

2005-09-20 Thread lkolchin
Hello All,
Thanks for all responses.

After reading your posts on the issue and reading some more stuff, I'll make a 
summary below:

1) I'll make a dump of all mailboxes to the text file:

su - cyrus -c "ctl_mboxlist -d" > /var/lib/imap/mailboxlist.txt

And I can restore it with:

su - cyrus -c "ctl_mboxlist -u" < /var/lib/imap/mailboxlist.txt

2) I will make a regular backups (in my case with DSM client) of 
/var/spool/imap/ and /var/lib/imap/, without stopping cyrus, in this case I 
endanger myself in some data inconsistency and maybe some e-mails lost (which 
were in process while backup was running).
Please correct me on the above if there are some other dangers I'm not aware 
of???

3) In case of disaster I can just copy mail directly from the backup to the 
mail store directory (/var/spool/imap/user/%username%), 
And run:
/usr/lib/cyrus/bin/reconstruct -rf user/username


4) All quotas (in /var/lib/imap/quota/%firstletter of username%/)will not be 
reconstructed, so I'll need to do it manually.

5) All subscription and seen info (in /var/lib/imap/user/%firstletter of 
username%/) will not be reconstructed, but I could restore it from the regular 
backup.

Please read my summary and tell me if the things right?
Should I be aware of other things I didn't mentioned here and what scripts to 
implement for this case?


Best Regards,
Leon Kolchinsky






-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wil Cooley
Sent: Tuesday, September 20, 2005 1:03 AM
To: info-cyrus@lists.andrew.cmu.edu
Subject: RE: Tutorial on how to backup/restore cyrus

On Mon, 2005-09-19 at 17:48 +0300, [EMAIL PROTECTED] wrote:

> Thank you Vittorio for your script, but you are stopping the cyrus and 
> I think it's very problematic in production environment.

I think the point is that, short of using some of the replication stuff from 
pre-2.3 in CVS, there's no proper way of doing a hot backup.  All of the 
snapshotting techniques (whether filesystem snapshots, rsync or
otherwise) require a little bit of downtime to complete, but are employed 
*specifically* to minimize downtime.

Wil
--
Wil Cooley <[EMAIL PROTECTED]>
Naked Ape Consulting, Ltd. 

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


SQUAT failed and loglevel issue

2005-09-20 Thread lkolchin



Hello 
All,
 
I keep getting these 
kind of messages in my logs, when using horde IMP with Cyrus-IMAP 
server.
 
Sep 20 12:06:24 mail imap[19540]: SQUAT failed to 
open index fileSep 20 12:06:24 mail imap[19540]: SQUAT failed
 
Could anyone 
tell me how to deal with it?
 
Please also 
tell me ho to swithch to loglevel 'info' instead of 
'debug'?
 
 
Best Regards,
Leon 
Kolchinsky

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: checking quota

2005-09-20 Thread lkolchin
Hi,

I would suggest to use the solution from web-cyradm list:
http://www.web-cyradm.org/pipermail/web-cyradm/2004-November/017965.html

There is very nice and multipurpose script to deal with  quotas.
It's abaut integration of quota management for MTA (postfix) + Cyrus.

Regards,
Leon Kolchinsky

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrice
Sent: Tuesday, September 20, 2005 2:30 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: checking quota

Hi,

I would like to implement the quota checking within my MTA which is exim and 
not use cyrus quota

what would be the less consuming way to do it ?

- check the quota.db  and extract the current mailboxe size for a particular 
user ?
- connect with tcp on imap and read the current quota value for the user ?

if the effective quota is > of a value defined into my ldap I deny the delivery 
to cyrus-imap

Thank you for you advices

Patrice


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: SQUAT failed and loglevel issue

2005-09-20 Thread lkolchin



Hi,
 
I'm on 
SLES 9, Horde IMP is on another machine, managed by another 
person.
I'm 
running web-cyradm + Cyrus-IMAP.
When 
using regular Imap Clients like Kmail, OE etc. there is no 'SQUAT failed' error, so I think it's somthing connected to 
the IMP.
 
Any 
Ideas welcomed.
 
Regards,
Leon 
Kolchinsky


From: Dudi Goldenberg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 4:42 PMTo: לאון 
קולצ'ינסקיSubject: RE: SQUAT failed and loglevel 
issue


What distro? I’m on 
Debian so this is where I can (maybe) help…
 
Dudi
 
 




From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 
14:46To: Dudi GoldenbergSubject: RE: SQUAT failed and loglevel 
issue
 

Thanks 
Dudi,

 

This happens only when 
I use Horde IMP and there is no big speed impact without running squatter, so I 
prefer just to switch loglevel to 'info' instead of 
'debug'

but I don't know how to 
do it (in what file)?

 

Anyone 
help?

 

Regards,

Leon 
Kolchinsky
 



From: 
Dudi Goldenberg 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 4:18 
PMTo: маеп 
чемц'йрсчйSubject: RE: SQUAT 
failed and loglevel issue
Hi,
 
Run /usr/sbin/squatter 
-r as user cyrus on all your mailboxes, this will create the SQUAT 
index.
 
Regards,
 
Dudi
 
 




From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
[EMAIL PROTECTED]Sent: Tuesday, September 20, 2005 
11:33To: 
info-cyrus@lists.andrew.cmu.eduSubject: SQUAT failed and loglevel 
issue
 

Hello 
All,

 

I keep getting these kind of 
messages in my logs, when using horde IMP with Cyrus-IMAP 
server.

 

Sep 20 12:06:24 mail imap[19540]: 
SQUAT failed to open index fileSep 20 12:06:24 mail imap[19540]: SQUAT 
failed

 

Could anyone tell me how to deal 
with it?

 

Please also tell me ho to swithch to 
loglevel 'info' instead of 'debug'?

 

 

Best 
Regards,
Leon 
Kolchinsky

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: SQUAT failed and loglevel issue

2005-09-20 Thread lkolchin
Hi,
This is what people say on kolab list on TSQUAT failed' issue 
http://www.kolab.org/pipermail/kolab-devel/2005-August/004233.html:

QUOTE:
"It simply means that the foler is not indexed, and the logging is turned on at 
debug level, I have long sicne changed the logging to be at info level it is 
just to much noice otherwise on really busy servers.

you may also want to run squatter -s every night to handle your indexing, nut 
note i do NOT recommend this, it may not be good for your environment so you 
need to test it on testsystems first." 

So I think I need only to tell cyrus to use 'info' loglevel instead of 'debug' 
(I've already mentioned it).
Anyone know how to do it on SuSE?

Regards,
Leon Kolchnsky 

-Original Message-
From: brad [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 4:24 PM
To: לאון קולצ'ינסקי
Cc: info-cyrus@lists.andrew.cmu.edu
Subject: Re: SQUAT failed and loglevel issue

On Tue, 2005-09-20 at 12:33 +0300, [EMAIL PROTECTED] wrote:
> Hello All,
>  
> I keep getting these kind of messages in my logs, when using horde IMP 
> with Cyrus-IMAP server.
>  
> Sep 20 12:06:24 mail imap[19540]: SQUAT failed to open index file Sep 
> 20 12:06:24 mail imap[19540]: SQUAT failed
>  

As the cyrus user run 'squatter'.

Thanks,

Brad


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: SQUAT failed and loglevel issue

2005-09-20 Thread lkolchin



Hello 
Dudi,
 
Thanks 
for your help.
 
The 
following syntax is working for me:
su - 
cyrus -c "/usr/lib/cyrus/bin/squatter -r -v user/*"
 
Can 
you tell me please if this process (squatter -r) is time consuming, cause 
I've read on the net, that people decided not to use of this 
reason?
 
Regards,
Leon 
Kolchinsky


From: Dudi Goldenberg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 7:16 PMTo: לאון 
קולצ'ינסקיSubject: RE: SQUAT failed and loglevel 
issue


Hi 
Leon,
 
This is still an SQUAT 
issue.
 
SQUAT aware 
applications expect the index file and complain if they can’t find 
it.
 
I manage several large 
scale installations (500k+ msgs per mailbox, not too many 
mailboxes…).
 
I can tell you the 
SQUAT does make the difference in these large mailboxes, apparently less effect 
on smaller mailboxes.
 
It makes text search 
within the folder lightning fast, I even have a weekly cron job that runs 
it…
 
I think the best 
solution for you is just to run squatter once so there is an index file present 
where it needs to be, and the error will disappear.
 
Regards,
 
Dudi
 
 




From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 
14:58To: Dudi GoldenbergCc: 
info-cyrus@lists.andrew.cmu.eduSubject: RE: SQUAT failed and loglevel 
issue
 

Hi,

 

I'm on SLES 9, Horde 
IMP is on another machine, managed by another 
person.

I'm running web-cyradm 
+ Cyrus-IMAP.

When using regular Imap 
Clients like Kmail, OE etc. there is no 'SQUAT 
failed' error, so I think 
it's somthing connected to the IMP.

 

Any Ideas 
welcomed.

 

Regards,

Leon 
Kolchinsky
 



From: 
Dudi Goldenberg 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 4:42 
PMTo: לאון 
קולצ'ינסקיSubject: RE: SQUAT failed and loglevel 
issue
What distro? I’m on 
Debian so this is where I can (maybe) help…
 
Dudi
 
 




From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 
14:46To: Dudi GoldenbergSubject: RE: SQUAT failed and loglevel 
issue
 

Thanks 
Dudi,

 

This happens only when 
I use Horde IMP and there is no big speed impact without running squatter, so I 
prefer just to switch loglevel to 'info' instead of 
'debug'

but I don't know how to 
do it (in what file)?

 

Anyone 
help?

 

Regards,

Leon 
Kolchinsky
 



From: 
Dudi Goldenberg 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 4:18 
PMTo: маеп 
чемц'йрсчйSubject: RE: SQUAT 
failed and loglevel issue
Hi,
 
Run /usr/sbin/squatter 
-r as user cyrus on all your mailboxes, this will create the SQUAT 
index.
 
Regards,
 
Dudi
 
 




From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
[EMAIL PROTECTED]Sent: Tuesday, September 20, 2005 
11:33To: 
info-cyrus@lists.andrew.cmu.eduSubject: SQUAT failed and loglevel 
issue
 

Hello 
All,

 

I keep getting these kind of 
messages in my logs, when using horde IMP with Cyrus-IMAP 
server.

 

Sep 20 12:06:24 mail imap[19540]: 
SQUAT failed to open index fileSep 20 12:06:24 mail imap[19540]: SQUAT 
failed

 

Could anyone tell me how to deal 
with it?

 

Please also tell me ho to swithch to 
loglevel 'info' instead of 'debug'?

 

 

Best 
Regards,
Leon 
Kolchinsky

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

2005-09-26 Thread lkolchin
Hi,

First of all try to post this question to web-cyradm list, I'm too on their 
list and if you have further questions we'll try to help you.
 
It may be related to creation of the file /etc/pam.d/imap with the following 
entries:
--
#%PAM-1.0
auth sufficient pam_mysql.so user=mail passwd=secret host=localhost db=mail 
table=accountuser usercolumn=username passwdcolumn=password crypt=1 
logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host 
logpidcolumn=pid logtimecolumn=time sqllog=yes

# auth sufficient pam_unix_auth.so

account required pam_mysql.so user=mail passwd=secret host=localhost db=mail 
table=accountuser usercolumn=username passwdcolumn=password crypt=1 
logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host 
logpidcolumn=pid logtimecolumn=time

# account  sufficient   pam_unix_acct.so
-

Regards,
Leon Kolchinsky


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of evildad
Sent: Sunday, September 25, 2005 10:31 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: Cyrus Imap Authentication Problems

HI there,
i'd like to set-up an working IMAP Server on my Gentoo System. I used the 
Postfix-Cyrus-Web-cyradm-HOWTO from 
http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html

Because I use Gentoo, I compiled all the packages with the „emerge“ command. 
Here are the versions for my installed packages:

cyrus-sasl-2.1.21-r1
cyrus-imapd-2.2.12
postfix-2.1.5-r2
pam_mysql-0.6.0
mysql-4.0.25-r2
web-cyradm-0.5.4.1 


They all compiled without errors but after i wanted to create the user cyrus 
with the command

# saslpasswd2 -c cyrus
Password:
Again (for verification):


... the following errors appear in /var/log/messages:

Sep 25 17:21:01 evildad saslpasswd2: sql_select option missing Sep 25 17:21:01 
evildad saslpasswd2: auxpropfunc error no mechanism available Sep 25 17:21:01 
evildad saslpasswd2: _sasl_plugin_load failed on sasl_auxprop_plug_init for 
plugin: sql Sep 25 17:21:05 evildad saslpasswd2: setpass succeeded for cyrus 
Sep 25 17:21:05 evildad saslpasswd2: error deleting entry from sasldb: 
DB_NOTFOUND: No matching key/data pair found Sep 25 17:21:05 evildad 
saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching 
key/data pair found Sep 25 17:21:05 evildad saslpasswd2: error deleting entry 
from sasldb: DB_NOTFOUND: No matching key/data pair found


I don't understand why sasl won't find the DB. 

Another Problem is the command to connect to the Server.

When i type in the following command to the Server I get the following output:

# cyradm --user cyrus --server localhost --auth plain
Password:
IMAP Password:
  Login failed: authentication failure at 
/usr/lib/perl5/site_perl/5.8.6/x86_64-linux/Cyrus/IMAP/Admin.pm
line 118
cyradm: cannot authenticate to server with plain as cyrus


and in /var/log/messages:

Sep 25 21:18:26 evildad master[7102]: about to exec /usr/lib/cyrus/imapd Sep 25 
21:18:26 evildad imap[7102]: executed Sep 25 21:18:26 evildad imap[7102]: sql 
auxprop plugin using mysql engine Sep 25 21:18:26 evildad imap[7102]: accepted 
connection Sep 25 21:18:37 evildad imap[7102]: badlogin:
localhost [127.0.0.1] PLAIN [SASL(-16): encryption needed to use mechanism: 
security flags do not match required] Sep 25 21:18:40 evildad perl: No worthy 
mechs found Sep 25 21:18:44 evildad imap[7102]: sql plugin Parse the username 
cyrus Sep 25 21:18:44 evildad imap[7102]: sql plugin try and connect to a host 
Sep 25 21:18:44 evildad imap[7102]: sql plugin trying to open db 'mail' on host 
'localhost'
Sep 25 21:18:44 evildad imap[7102]: sql plugin Parse the username cyrus Sep 25 
21:18:44 evildad imap[7102]: sql plugin try and connect to a host Sep 25 
21:18:44 evildad imap[7102]: sql plugin trying to open db 'mail' on host 
'localhost'
Sep 25 21:18:44 evildad saslauthd[6930]: DEBUG:
auth_pam: pam_acct_mgmt failed: User account has expired
Sep 25 21:18:44 evildad saslauthd[6930]: do_auth  
  : auth failure: [user=cyrus] [service=imap] [realm=] [mech=pam] [reason=PAM 
acct error] Sep 25 21:18:44 evildad imap[7102]: badlogin:
localhost [127.0.0.1] plaintext cyrus SASL(-13):
authentication failure: checkpass failed Sep 25 21:19:47 evildad master[20809]: 
process 7102 exited, status 0


Hope anyone can help me to get the authentication work...
And i don't know why the User account has been expired though it has never 
worked before...

Thanks in advance,
Evildad





___ 
Was denken Sie über E-Mail? Wir hören auf Ihre Meinung: 
http://surveylink.yahoo.com/wix/p0379378.aspx

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

RE: RE: RE: Cyrus Imap Authentication Problems

2005-09-27 Thread lkolchin
 Hi,

Try to create /etc/postfix/sasl directory.
Create there file smtpd.conf with these lines:
pwcheck_method: saslauthd
mech_list: plain login

Make shure /usr/lib/sasl2/smtpd.conf looks the same (this is the SuSE location).

Restart saslauthd and cyrus and try again.

Regards,
Leon Kolchinsky 

-Original Message-
From: evildad [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 27, 2005 12:17 PM
To: לאון קולצ'ינסקי
Cc: info-cyrus@lists.andrew.cmu.edu
Subject: Ant: RE: RE: Cyrus Imap Authentication Problems

HI,
yes it is the real Password for the User mail. 

--- [EMAIL PROTECTED] schrieb:

> Hi,
> 
> Stupid question but "passwd=secret" in your file is really 
> password=real_pass__for_user_mail on MySQL DB?
> 
> Regards,
> Leon Kolchinsky
> 
> -Original Message-
> From: evildad [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 26, 2005 10:31 PM
> To: לאון קולצ'×™× ×¡×§×™
> Cc: info-cyrus@lists.andrew.cmu.edu
> Subject: Ant: RE: Cyrus Imap Authentication Problems
> 
> Hi,
> i had created the file /etc/pam.d/imap with the following entries:
> 
> auth sufficient pam_mysql.so user=mail passwd=secret host=localhost 
> db=mail table=accountuser usercolumn=username passwdcolumn=password 
> crypt=1 logtable=log logmsgcolumn=msg logusercolumn=user 
> loghostcolumn=host logpidcolumn=pid logtimecolumn=time
> 
> account required pam_mysql.so user=mail passwd=secret host=localhost 
> db=mail table=accountuser usercolumn=username passwdcolumn=password 
> crypt=1 logtable=log logmsgcolumn=msg logusercolumn=user 
> loghostcolumn=host logpidcolumn=pid logtimecolumn=time
> 
> And i have also posted this Problem in the web-cyradm list with the 
> hope to get the answers i need.
> 
> Thanks,
> Evil
> --- [EMAIL PROTECTED] schrieb:
> 
> > Hi,
> > 
> > First of all try to post this question to
> web-cyradm list, I'm too on
> > their list and if you have further questions we'll
> try to help you.
> >  
> > It may be related to creation of the file
> /etc/pam.d/imap with the
> > following entries:
> > --
> > #%PAM-1.0
> > auth sufficient pam_mysql.so user=mail
> passwd=secret host=localhost
> > db=mail table=accountuser usercolumn=username
> passwdcolumn=password
> > crypt=1 logtable=log logmsgcolumn=msg
> logusercolumn=user
> > loghostcolumn=host logpidcolumn=pid
> logtimecolumn=time sqllog=yes
> > 
> > # auth sufficient pam_unix_auth.so
> > 
> > account required pam_mysql.so user=mail
> passwd=secret host=localhost
> > db=mail table=accountuser usercolumn=username
> passwdcolumn=password
> > crypt=1 logtable=log logmsgcolumn=msg
> logusercolumn=user
> > loghostcolumn=host logpidcolumn=pid
> logtimecolumn=time
> > 
> > # account  sufficient   pam_unix_acct.so
> > -
> > 
> > Regards,
> > Leon Kolchinsky
> > 
> > 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> On Behalf Of evildad
> > Sent: Sunday, September 25, 2005 10:31 PM
> > To: info-cyrus@lists.andrew.cmu.edu
> > Subject: Cyrus Imap Authentication Problems
> > 
> > HI there,
> > i'd like to set-up an working IMAP Server on my
> Gentoo System. I used
> > the Postfix-Cyrus-Web-cyradm-HOWTO from
> >
>
http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html
> > 
> > Because I use Gentoo, I compiled all the packages
> with the
> > „emerge“ command. Here are the
> versions for my installed packages:
> > 
> > cyrus-sasl-2.1.21-r1
> > cyrus-imapd-2.2.12
> > postfix-2.1.5-r2
> > pam_mysql-0.6.0
> > mysql-4.0.25-r2
> > web-cyradm-0.5.4.1
> > 
> > 
> > They all compiled without errors but after i
> wanted to create the user
> > cyrus with the command
> > 
> > # saslpasswd2 -c cyrus
> > Password:
> > Again (for verification):
> > 
> > 
> > ... the following errors appear in
> > /var/log/messages:
> > 
> > Sep 25 17:21:01 evildad saslpasswd2: sql_select
> option missing Sep 25
> > 17:21:01 evildad saslpasswd2:
> > auxpropfunc error no mechanism available Sep 25
> > 17:21:01 evildad saslpasswd2: _sasl_plugin_load
> failed on
> > sasl_auxprop_plug_init for plugin: sql Sep
> > 25 17:21:05 evildad saslpasswd2: setpass succeeded
> for cyrus Sep 25
> > 17:21:05 evildad saslpasswd2: error deleting entry
> from sasldb: 
> > DB_NOTFOUND: No matching key/data pair found Sep
> 25 17:21:05 evildad
> > saslpasswd2: error deleting entry from sasldb:
> > DB_NOTFOUND: No matching key/data pair found Sep
> 25
> > 17:21:05 evildad saslpasswd2: error deleting entry
> from sasldb: 
> > DB_NOTFOUND: No matching key/data pair found
> > 
> > 
> > I don't understand why sasl won't find the DB. 
> > 
> > Another Problem is the command to connect to the
> Server.
> > 
> > When i type in the following command to the Server
> I get the following
> > output:
> > 
> > # cyradm --user cyrus --server localhost --auth
> plain
> > Password:
> > IMAP Password:
> >   Login failed: authentication failure
> at
> >
>
/usr

RE: RE: RE: RE: Cyrus Imap Authentication Problems

2005-09-27 Thread lkolchin
Hi,

I suppose you have some sql plugin installed by default.
Try to uninstall it.

Regards,
Leon Kolchinsky 

-Original Message-
From: evildad [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 27, 2005 1:11 PM
To: לאון קולצ'ינסקי
Cc: info-cyrus@lists.andrew.cmu.edu
Subject: Ant: RE: RE: RE: Cyrus Imap Authentication Problems

HI,
i've created this folder and the smtpd.conf but i still get these errors.
For testing  purposes i created a new User and tested it. 

This is what syslog tells me

Sep 27 12:03:54 evildad imap[21012]: sql plugin Parse the username evildad Sep 
27 12:03:54 evildad imap[21012]: sql plugin try and connect to a host Sep 27 
12:03:54 evildad imap[21012]: sql plugin trying to open db 'mail' on host 
'localhost'
Sep 27 12:03:54 evildad imap[21012]: sql plugin Parse the username evildad Sep 
27 12:03:54 evildad imap[21012]: sql plugin try and connect to a host Sep 27 
12:03:54 evildad imap[21012]: sql plugin trying to open db 'mail' on host 
'localhost'
Sep 27 12:03:54 evildad saslauthd[20837]: DEBUG:
auth_pam: pam_acct_mgmt failed: User account has expired
Sep 27 12:03:54 evildad saslauthd[20837]: do_auth 
   : auth failure: [user=evildad] [service=imap] [realm=] [mech=pam] 
[reason=PAM acct error] Sep 27 12:03:54 evildad imap[21012]: badlogin:
localhost [127.0.0.1] plaintext evildad SASL(-13):
authentication failure: checkpass failed Sep 27 12:04:57 evildad master[20915]: 
process 21012 exited, status 0


The strange thing is the "evildad saslauthd[20837]:
DEBUG: auth_pam: pam_acct_mgmt failed: User account has expired" line. I 
created this account so why should it be expired...
So many questions, Sorry.

Greetings,
Evil
--- [EMAIL PROTECTED] schrieb:

>  Hi,
> 
> Try to create /etc/postfix/sasl directory.
> Create there file smtpd.conf with these lines:
> pwcheck_method: saslauthd
> mech_list: plain login
> 
> Make shure /usr/lib/sasl2/smtpd.conf looks the same (this is the SuSE 
> location).
> 
> Restart saslauthd and cyrus and try again.
> 
> Regards,
> Leon Kolchinsky
> 
> -Original Message-
> From: evildad [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 27, 2005 12:17 PM
> To: לאון קולצ'×™× ×¡×§×™
> Cc: info-cyrus@lists.andrew.cmu.edu
> Subject: Ant: RE: RE: Cyrus Imap Authentication Problems
> 
> HI,
> yes it is the real Password for the User mail. 
> 
> --- [EMAIL PROTECTED] schrieb:
> 
> > Hi,
> > 
> > Stupid question but "passwd=secret" in your file
> is really
> > password=real_pass__for_user_mail on MySQL DB?
> > 
> > Regards,
> > Leon Kolchinsky
> > 
> > -Original Message-
> > From: evildad [mailto:[EMAIL PROTECTED]
> > Sent: Monday, September 26, 2005 10:31 PM
> > To: לאון קולצ'×™×
> סקי
> > Cc: info-cyrus@lists.andrew.cmu.edu
> > Subject: Ant: RE: Cyrus Imap Authentication
> Problems
> > 
> > Hi,
> > i had created the file /etc/pam.d/imap with the
> following entries:
> > 
> > auth sufficient pam_mysql.so user=mail
> passwd=secret host=localhost
> > db=mail table=accountuser usercolumn=username
> passwdcolumn=password
> > crypt=1 logtable=log logmsgcolumn=msg
> logusercolumn=user
> > loghostcolumn=host logpidcolumn=pid
> logtimecolumn=time
> > 
> > account required pam_mysql.so user=mail
> passwd=secret host=localhost
> > db=mail table=accountuser usercolumn=username
> passwdcolumn=password
> > crypt=1 logtable=log logmsgcolumn=msg
> logusercolumn=user
> > loghostcolumn=host logpidcolumn=pid
> logtimecolumn=time
> > 
> > And i have also posted this Problem in the
> web-cyradm list with the
> > hope to get the answers i need.
> > 
> > Thanks,
> > Evil
> > --- [EMAIL PROTECTED] schrieb:
> > 
> > > Hi,
> > > 
> > > First of all try to post this question to
> > web-cyradm list, I'm too on
> > > their list and if you have further questions
> we'll
> > try to help you.
> > >  
> > > It may be related to creation of the file
> > /etc/pam.d/imap with the
> > > following entries:
> > > --
> > > #%PAM-1.0
> > > auth sufficient pam_mysql.so user=mail
> > passwd=secret host=localhost
> > > db=mail table=accountuser usercolumn=username
> > passwdcolumn=password
> > > crypt=1 logtable=log logmsgcolumn=msg
> > logusercolumn=user
> > > loghostcolumn=host logpidcolumn=pid
> > logtimecolumn=time sqllog=yes
> > > 
> > > # auth sufficient pam_unix_auth.so
> > > 
> > > account required pam_mysql.so user=mail
> > passwd=secret host=localhost
> > > db=mail table=accountuser usercolumn=username
> > passwdcolumn=password
> > > crypt=1 logtable=log logmsgcolumn=msg
> > logusercolumn=user
> > > loghostcolumn=host logpidcolumn=pid
> > logtimecolumn=time
> > > 
> > > # account  sufficient   pam_unix_acct.so
> > > -
> > > 
> > > Regards,
> > > Leon Kolchinsky
> > > 
> > > 
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]
> > On Behalf Of evildad
> > > Sent: Sunday, September 25, 2005

RE: formail not parsing folder

2005-10-04 Thread lkolchin
Hi,

Try to use imapsync,
I'd suggest you to use the following options with imapsync tool:
--include '^Sent' --subscribe 

Regards,
Leon Kolchinsky

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl Boyken
Sent: Monday, October 03, 2005 5:45 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: formail not parsing folder

I'm trying to convert email from our U Wash IMAP server over to Cyrus, using 
several Perl utilities mentioned in the O'Reilly IMAP book.  One of these, 
folderxfer, uses formail to split the U Wash mbox file into separate messages.  
This is working fine, except for a couple of people's "Sent Items" folders, 
which formail doesn't seem to be able to parse into messages.  Apparently, 
"Sent Items" is created by our Horde/IMP webmail software.  Has anyone seen 
this?  Any solutions?  I've tried various combinations of formail switches, but 
nothing seems to split these folders correctly.  Thanks.

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

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: fetch mail from exchange to cyrus

2005-10-05 Thread lkolchin



Hi,
 
I've 
seen on web-cyradm list, in some discussion I've started on imapsync usage, 
someone told that he ported mails from Exchange server to Cyrus using 
"imapsync".
 
Regards,
Leon 
Kolchinsky


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
[EMAIL PROTECTED]Sent: Wednesday, October 05, 2005 10:12 
AMTo: info-cyrus@lists.andrew.cmu.eduSubject: fetch mail 
from exchange to cyrus
for e.g,in exchange server,I 
have folder calendar,and I want to use fetchmail to fetch all mail in Calendar 
to cyrus folder Calendar.In a word,I 
want to move all mails in exchange to the corresponding folders in cyrus. 
Is there a way? Your help will be greatly 
appreicated!

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: formail not parsing folder

2005-10-05 Thread lkolchin
Hi,

You have to know your users passwords, but..
I've implemented web-cyradm solution(users in MySQL+Cyrus+virt. domains) and 
moved users mail and folders this way (from UW-IMAP).
1) I've changed all users passwords in shadow file to one I know.
2) I've changed all users passwords in MySQL to the same one I know, and did 
the syncronisation with imapsync.
3) Restored all passwords back.
Should work fine even with several hundred users.

Note: I've used "crypt" in user passwords so there was no problem to transfer 
DES passwords from shadow file to MySQL.


Regards,
Leon Kolchinsky


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl Boyken
Sent: Wednesday, October 05, 2005 9:05 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: RE: formail not parsing folder

Thanks, Leon.

It looks to me like either I'd need to know our users' passwords, or have them 
transfer their own mail folders, if I use imapsync.  Is this correct?  Or is 
there a way to use imapsync to transfer our users' mail folders without knowing 
their passwords?  Have you used imapsync to transfer folders for several 
hundred users?

Karl Boyken

> Hi,
> 
> Try to use imapsync,
> I'd suggest you to use the following options with imapsync tool:
> --include '^Sent' --subscribe
> 
> Regards,
> Leon Kolchinsky

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

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


How to make cerificate for client installation?

2005-10-10 Thread lkolchin



Hello 
All,
 
I'm using SMTP-AUTH 
with TLS wrapper with Self Signed Certificate on my system.
 
I want users to be 
able to install certificate on their computer (on OE or another mail-client) and 
not press "Yes" on the nag screen on every login.
How can I do it so 
client certificate only contain the public portion of the certificate (so it is 
secure to publish this certificate on the net)?
 
Background 
Info:
This is how I've 
created certificates:
# openssl req -new 
-x509 -sha1 -extensions v3_ca -nodes -days 999 -out cert.pem
# ls.  
..  cert.pem  privkey.pem# cat privkey.pem cert.pem > 
/etc/ssl/certs/cert.pem# mv -f privkey.pem /etc/ssl/certs/skey.pem# 
chown cyrus:mail /etc/ssl/certs/cert.pem# chmod 600 
/etc/ssl/certs/cert.pem
 
In my imapd.conf 
I've added:
tls_cert_file: 
/etc/ssl/certs/cert.pemtls_key_file: /etc/ssl/certs/cert.pemtls_ca_file: 
/etc/ssl/certs/cert.pemtls_ca_path: /etc/ssl/certs
 
 
Best 
Regards,
 
Leon 
Kolchinsky

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: How to make cerificate for client installation?

2005-10-10 Thread lkolchin
Hi,
Thanks for your reply.

I've found this on http://www.nyetwork.org/wiki/ssl_root_ca_new

"Create a PKCS#7 format of the Root CA's public certificate:

This will allow clients to easily import it into their their PKI storage 
places, such as Outlook Express and Netscape.

cd /usr/local/ssl.ca
openssl crl2pkcs7 -nocrl -certfile ca.crt -outform DER -out ca.pkcs7

ca.pkcs7 will only contain the public portion of the CA's certificate, so you 
can email it to whomever with instructions on how to import it, put it up for 
download, or whatever."

I used this syntax,
but it seems that I can't import it into Outlook Express certificates (I get 
'success' message but no such certificate created).

Any help?

Regsrds,
Leon Kolchinsky 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cristian Mitrana
Sent: Monday, October 10, 2005 11:54 AM
To: info-cyrus@lists.andrew.cmu.edu
Subject: Re: How to make cerificate for client installation?

* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [10-10-05 10:46]:
 
> Hello All,
>  
> I'm using SMTP-AUTH with TLS wrapper with Self Signed Certificate on my 
> system.
>  
> I want users to be able to install certificate on their computer (on OE or 
> another mail-client) and not press "Yes" on the nag screen on every login.
> How can I do it so client certificate only contain the public portion of the 
> certificate (so it is secure to publish this certificate on the net)?
 
  This depends on the client used and it's highly specific. And has nothing to 
do with cyrus.

> Background Info:
> This is how I've created certificates:
> # openssl req -new -x509 -sha1 -extensions v3_ca -nodes -days 999 -out 
> cert.pem # ls .  ..  cert.pem  privkey.pem # cat privkey.pem cert.pem 
> > /etc/ssl/certs/cert.pem # mv -f privkey.pem /etc/ssl/certs/skey.pem 
> # chown cyrus:mail /etc/ssl/certs/cert.pem # chmod 600 
> /etc/ssl/certs/cert.pem
  

 It is enough to provide the client with the certificate and import it into 
it's trust database (as I said, depends on the application).
Depending on the application you might want to convert it to DER (with openssl 
x509 -in ... -out cert.der -outform der ).
 The private part is the privkey.pem and that you should keep safe.

 For windows (OE) you have to use the mmc program, TB has a special  settings 
tab which lets you import in PEM format, I don't know about  other clients on 
windows.

 mitu
  

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, sendmail and Cyrus SASL on CentOS4.1

2005-10-11 Thread lkolchin



Hi,
 
This 
is the sendmail AUTH problem.
I'm 
using postfix and can send you the lines of code for the main.cf on postfix to 
handle this issue, but again you are using sendmail, so it could be 
different in your case:
 
# SASL 
SUPPORT FOR CLIENTS## The following options set parameters needed by 
Postfix to enable# Cyrus-SASL support for authentication of mail 
clients.#smtpd_sasl_auth_enable = yessmtpd_sasl_security_options = 
noanonymoussmtpd_sasl_local_domain = $myhostnamebroken_sasl_auth_clients 
= yes
 
# SASL 
SUPPORT FOR SERVERS## The following options set parameters needed by 
Postfix to enable# Cyrus-SASL support for authentication of mail 
servers.## smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd# 
smtp_use_tls = yes# smtp_sasl_auth_enable = yes# 
smtp_sasl_security_options =
 
## TLS#  Transport Layer 
Security#  #smtpd_use_tls = yessmtpd_tls_auth_only = 
yes
 
smtpd_tls_key_file = 
/var/lib/imap/server.pemsmtpd_tls_cert_file = 
/var/lib/imap/server.pemsmtpd_tls_CAfile = 
/var/lib/imap/server.pemsmtpd_tls_loglevel = 1smtpd_tls_received_header 
= yessmtpd_tls_session_cache_timeout = 3600stls_random_source = 
dev:/dev/urandom
 
 
Best Regards,
Leon 
Kolchinsky


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Petre 
AgenbagSent: Monday, October 10, 2005 4:35 PMTo: 
info-cyrus@lists.andrew.cmu.eduSubject: Cyrus, sendmail and Cyrus 
SASL on CentOS4.1


Hi List
 
I recently tried to get the 
distributed rpm’s for CyrusImap, sendmail and cyrus sasl that came with 
CentOS4.1 to act as my IMAP/POP3 mail-server.
 
I’m fairly familiar with this 
combination, coming from RHEL3 with source-built cyrus and sendmail running just 
fine; however, when I saw the rpm’s that came with CentOS4.1, I thought it would 
be good to use rpm’s since yum could do the updating for 
me…
 
I got everything to work fairly 
well, except the authentication; users can successfully authenticate to collect 
mail via POP3 and IMAP, but when trying to send thru the server, the 
authentication fails with the following:
 
Oct 10 16:27:19 apollo 
saslauthd[2448]: do_auth : auth 
failure: [user=testing] [service=smtp] [realm=] [mech=shadow] 
[reason=Unknown]
 
Here is 
/etc/imapd.conf
configdirectory: 
/var/lib/imap
partition-default: 
/var/spool/imap
admins: 
cyrus
sievedir: 
/var/lib/imap/sieve
sendmail: 
/usr/sbin/sendmail
hashimapspool: 
true
lmtpsocket: 
/var/imap/socket/lmtp
virtdomains: 
userid
sasl_pwcheck_metd: 
saslauthd
sasl_mech_list: PLAIN CRAM-MD5 
DIGEST-MD5 LOGIN
#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.crt
tls_ca_file: 
/var/lib/imap/server.pem
tls_cert_file: 
/var/lib/imap/server.pem
tls_key_file: 
/var/lib/imap/server.pem
 
and 
/etc/cyrus.conf
# standard standalone server 
implementation
 
START {
  # do not delete this 
entry!
  
recover   cmd="ctl_cyrusdb 
-r"
 
  # this is only necessary if 
using idled for IMAP IDLE
#  
idled    
cmd="idled"
}
 
# UNIX sockets start with a slash 
and are put into /var/lib/imap/sockets
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
 
  # these are only necessary if 
receiving/exporting usenet via NNTP
#  nntp 
cmd="nntpd" listen="nntp" 
prefork=3
#  
nntps    
cmd="nntpd -s" listen="nntps" prefork=1
 
  # at least one LMTP is 
required for delivery
#  
lmtp cmd="lmtpd" listen="lmtp" 
prefork=0
  
lmtpunix  cmd="lmtpd" 
listen="/var/imap/socket/lmtp" prefork=1
 
  # this is only necessary if 
using notifications
#  
notify   cmd="notifyd" 
listen="/var/lib/imap/socket/notify" proto="udp" 
prefork=1
}
 
EVENTS 
{
  # this is 
required
  checkpoint  
  cmd="ctl_cyrusdb -c" period=30
 
  # this is only necessary if 
using duplicate delivery suppression,
  # Sieve or 
NNTP
  
delprune  cmd="cyr_expire -E 3" 
at=0400
 
  # this is only necessary if 
caching TLS sessions
  
tlsprune  cmd="tls_prune" 
at=0400
}
 
 
And here is the versions of cyrus 
and sendmail:
cyrus-sasl-2.1.19-5.EL4
cyrus-imapd-utils-2.2.12-3.RHEL4.1
cyrus-sasl-md5-2.1.19-5.EL4
cyrus-imapd-2.2.12-3.RHEL4.1
cyrus-imapd-devel-2.2.12-3.RHEL4.1
cyrus-imapd-nntp-2.2.12-3.RHEL4.1
cyrus-sasl-plain-2.1.19-5.EL4
cyrus-sasl-devel-2.1.19-5.EL4
cyrus-imapd-murder-2.2.12-3.RHEL4.1
 
sendmail-8.13.1-2
sendmail-cf-8.13.1-2
 
 
From the bits and pieces on forums 
everywhere it seems that the problem is with 
saslauth?
 
I am planning to run multiple 
virtual hosts on this server and no LDAP.
 
Can anyone help me to sort this 
problem out?
 
Thanks in advance for any 
help.
 
Regards
Petre
 

Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus

RE: How to make cerificate for client installation?

2005-10-11 Thread lkolchin
Hi Simon,

Your method is working, but this way you are sending also private key and I 
believe it's insecure.
I've found the 'easy way' of installing the certificate:
There is an easy solution to avoiding clicking 'yes' every time-
Close Outlook 
Open up Internet Explorer, go to https://mail.goober.com:995, this should be 
the same server name you entered as the mail server, and the same name the 
certificate has been generated under 
you will be challenged about the validity of the secure certificate in the same 
manner as with Outlook 
Click view certificate, add certificate, automatic, it should be now added to 
the root certificate store 
Go back to outlook, open up, away you go without any future warnings

Best Regards,
Leon Kolchinsky

-Original Message-
From: Simon Matter [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 10, 2005 3:04 PM
To: לאון קולצ'ינסקי
Cc: [EMAIL PROTECTED]; info-cyrus@lists.andrew.cmu.edu
Subject: RE: How to make cerificate for client installation?

> Hi,
> Thanks for your reply.
>
> I've found this on http://www.nyetwork.org/wiki/ssl_root_ca_new
>
> "Create a PKCS#7 format of the Root CA's public certificate:
>
> This will allow clients to easily import it into their their PKI 
> storage places, such as Outlook Express and Netscape.
>
> cd /usr/local/ssl.ca
> openssl crl2pkcs7 -nocrl -certfile ca.crt -outform DER -out ca.pkcs7
>
> ca.pkcs7 will only contain the public portion of the CA's certificate, 
> so you can email it to whomever with instructions on how to import it, 
> put it up for download, or whatever."
>
> I used this syntax,
> but it seems that I can't import it into Outlook Express certificates 
> (I get 'success' message but no such certificate created).
>
> Any help?

Hi Leon,

this is how I created a pfx file for Outlook users:
cat cyrus-imapd.pem postfix.pem slapd.pem webmail.pem > infile.pem openssl 
pkcs12 -in infile.pem -certfile infile.pem -export -out outfile.pfx

The pfx file can then be imported and I've been told it works.

Regards,
Simon

>
> Regsrds,
> Leon Kolchinsky
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Cristian 
> Mitrana
> Sent: Monday, October 10, 2005 11:54 AM
> To: info-cyrus@lists.andrew.cmu.edu
> Subject: Re: How to make cerificate for client installation?
>
> * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [10-10-05 10:46]:
>
>> Hello All,
>>
>> I'm using SMTP-AUTH with TLS wrapper with Self Signed Certificate on 
>> my system.
>>
>> I want users to be able to install certificate on their computer (on 
>> OE or another mail-client) and not press "Yes" on the nag screen on 
>> every login.
>> How can I do it so client certificate only contain the public portion 
>> of the certificate (so it is secure to publish this certificate on 
>> the net)?
>
>   This depends on the client used and it's highly specific. And has 
> nothing to do with cyrus.
>
>> Background Info:
>> This is how I've created certificates:
>> # openssl req -new -x509 -sha1 -extensions v3_ca -nodes -days 999 
>> -out cert.pem # ls .  ..  cert.pem  privkey.pem # cat privkey.pem 
>> cert.pem
>> > /etc/ssl/certs/cert.pem # mv -f privkey.pem /etc/ssl/certs/skey.pem
>> # chown cyrus:mail /etc/ssl/certs/cert.pem # chmod 600 
>> /etc/ssl/certs/cert.pem
>
>
>  It is enough to provide the client with the certificate and import it 
> into it's trust database (as I said, depends on the application).
> Depending on the application you might want to convert it to DER (with 
> openssl x509 -in ... -out cert.der -outform der ).
>  The private part is the privkey.pem and that you should keep safe.
>
>  For windows (OE) you have to use the mmc program, TB has a special 
> settings tab which lets you import in PEM format, I don't know about 
> other clients on windows.
>
>  mitu
>
> 
> 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 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: how can I batch add user using cyradm

2005-10-11 Thread lkolchin



Hi,
 
Try to 
use cyr_adduser.pl and cyr_batchadd.sh from here: http://www.mail-archive.com/web-cyradm@web-cyradm.org/msg00496.html
 
I've 
used these scripts for batch add users to web-cyradm system.
 
Regards,
Leon 
Kolchinsky


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
[EMAIL PROTECTED]Sent: Tuesday, October 11, 2005 9:48 
AMTo: info-cyrus@lists.andrew.cmu.eduSubject: how can I 
batch add user using cyradm
my cyradm is perl version,it seems 
that tcl script doesn't work? the 
following code won't run...#!/usr/local/bin/cyradm -file   # Batch 
Cyrus user creation script. Usage: addusers filename   set 
inputfile [lindex $argv 0]  # Name of file containing users 
set quotalimit 15360       
     # Quota limit in Kbytes   eval cyradm connect 
cyr_conn venus 143 puts stdout 
"Connected to IMAP server. Authenticating..."   if [catch {eval cyr_conn 
authenticate -pwcommand {{     
set hostname "localhost"     
set adminid "cyrusadm"     set 
adminpw ""     list 
$adminid $adminpw }} } result ] { 
    puts stderr "$result 
(cleartext)"     return -code 
error $result } else {     puts "Authentication successful." 
} 

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

UTF folders created via OE and SquirrelMail

2005-10-26 Thread lkolchin



Hello 
All,
 
When I create Imap 
folder in Hebrew lang. via SquirrelMail it looks O.K. in the  SquirrelMail 
interface and I can work with it.
But when I use 
Outlook Express, this folder looks like gibberish.
The same happens 
if I create Hebrew named folder in OE, it looks like gibberish in 
SquirrelMail interface.
 
My system 
is SLES 9, and it supports UTF. I can create hebrew named folders on the FS 
level. But both folders created in OE and in the SquirrelMail looks like 
gibberish on the FS level.
 
Is there a command I 
can use to instruct Cyrus to create folders in UTF?
Or may be there is 
another solution.
 
P.S.:
All packages in my 
installations are SuSE made rpms.
 
 
Best 
Regards,
 
Leon 
Kolchinsky
 

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: UTF folders created via OE and SquirrelMail

2005-10-27 Thread lkolchin
Thanks Sebastian and Sava,

It is a SquirrelMail problem:
$default_charset = 'utf-8'; in config.php fixed that!!! 

Best Regards,
Leon Kolchinsky

-Original Message-
From: Sebastian Hagedorn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 26, 2005 3:52 PM
To: לאון קולצ'ינסקי
Cc: info-cyrus@lists.andrew.cmu.edu
Subject: Re: UTF folders created via OE and SquirrelMail

Hi,

--On 26. Oktober 2005 14:45:34 +0200 [EMAIL PROTECTED] wrote:

> When I create Imap folder in Hebrew lang. via SquirrelMail it looks O.K.
> in the SquirrelMail interface and I can work with it. But when I use 
> Outlook Express, this folder looks like gibberish. The same happens if 
> I create Hebrew named folder in OE, it looks like gibberish in 
> SquirrelMail interface.

well, at least one of them must be wrong. IMAP folder names are encoded in 
modified UTF-7, not in "regular" UTF-8.

> My system is SLES 9, and it supports UTF.

That has nothing to do with it.

> I can create hebrew named
> folders on the FS level. But both folders created in OE and in the 
> SquirrelMail looks like gibberish on the FS level.

That's to be expected.

> Is there a command I can use to instruct Cyrus to create folders in UTF?

No.

> Or may be there is another solution.

Not really. At least one of the apps has a bug. Unless you can get a fixed 
version, there's nothing you can do. Mulberry (R.I.P.) does the right thing. So 
if you want to find out which app has the bug, download Mulberry and compare:



Cheers, Sebastian
--
Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18 Zentrum für angewandte 
Informatik - Universitätsweiter Service RRZK Universität zu Köln / Cologne 
University - Tel. +49-221-478-5587
Skype: shagedorn

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

SQUATTER script and non English folders

2005-10-27 Thread lkolchin



Hello 
All,
 
I have 2 
questions:
 
1) I'm running the 
following script as a cronjob every night:
#!/bin/bashsu - 
cyrus -c "/usr/lib/cyrus/bin/squatter -r user/*"
 
But, it creates 
cyrus.squat file only in subfolders of the users INBOX, i.e. 
/var/spool/imap/user/username/ doesn't include cyrus.squat but 
/var/spool/imap/user/username/Drafts/ does include cyrus.squat after running the 
above script.
 
What's wrong with my 
syntax?
 
2) When I create 
Hebrew named folders via OE or web client, it's look like this in the FS : 
&BdcF0wXpBdUF6g-
but if I want to cd 
to this folder I get an error:
# cd 
&BdcF0wXpBdUF6g-[1] 14268-bash: BdcF0wXpBdUF6g-: command not 
found[1]+  
Done    
cd
Is possible to 
access these folders via command line?
 
 
Best 
Regards,
 
Leon 
Kolchinsky
 

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: SQUATTER script and non English folders

2005-10-27 Thread lkolchin
Thanks Ken,

But should it be "squatter -r user" or full path
"/usr/lib/cyrus/bin/squatter -r user"?

Regards,
Leon Kolchinsky

-Original Message-
From: Ken Murchison [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 27, 2005 4:29 PM
To: לאון קולצ'ינסקי
Cc: info-cyrus@lists.andrew.cmu.edu
Subject: Re: SQUATTER script and non English folders

[EMAIL PROTECTED] wrote:
> OK, Thanks
> 
> Could you tell me please how to run SQUATTER as an EVENT from cyrus.conf?
> How the configuration should look like?

Add something like the following to the EVENTS section of cyrus.conf:

squat   cmd="squatter -r user" at=0300


This will run the given command at 3am every day.


> 
> -Original Message-
> From: Ken Murchison [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 27, 2005 4:07 PM
> To: לאון קולצ'ינסקי
> Cc: info-cyrus@lists.andrew.cmu.edu
> Subject: Re: SQUATTER script and non English folders
> 
> [EMAIL PROTECTED] wrote:
>> Hello All,
>>  
>> I have 2 questions:
>>  
>> 1) I'm running the following script as a cronjob every night:
>> #!/bin/bash
>> su - cyrus -c "/usr/lib/cyrus/bin/squatter -r user/*"
> 
> Why not run this from cyrus.conf as an EVENT?  There is no good reason that I 
> can think of to not keep all Cyrus related stuff in cyrus.conf.
> 
> 
>> But, it creates cyrus.squat file only in subfolders of the users 
>> INBOX, i.e. /var/spool/imap/user/username/ doesn't include 
>> cyrus.squat but /var/spool/imap/user/username/Drafts/ does include 
>> cyrus.squat after running the above script.
>>  
>> What's wrong with my syntax?
> 
> I believe David's assessment is correct.
> 


--
Kenneth Murchison
Systems Programmer
Carnegie Mellon University

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


IOERROR: fstating sieve script

2005-10-27 Thread lkolchin



Hello 
All,
 
In the logs I see 
these kind of messages:
Oct 27 16:48:05 mail 
master[14841]: about to exec /usr/lib/cyrus/bin/lmtpdOct 27 16:48:05 mail 
lmtpunix[14841]: executedOct 27 16:48:05 mail lmtpunix[14841]: accepted 
connectionOct 27 16:48:05 mail lmtpunix[14841]: lmtp connection preauth'd as 
postmanOct 27 16:48:05 mail lmtpunix[14841]: IOERROR: fstating sieve script 
/var/lib/sieve/l/username/defaultbc: No such file or 
directory
 
Is it normal or 
should I resolve it somehow?
 
 
Best Regards,
 
Leon 
Kolchinsky

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: SQUATTER script and non English folders

2005-10-27 Thread lkolchin
OK, Thanks

Could you tell me please how to run SQUATTER as an EVENT from cyrus.conf?
How the configuration should look like?

P.S.:
I'm using SLES9

Best Regards,
Leon Kolchinsky 

-Original Message-
From: Ken Murchison [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 27, 2005 4:07 PM
To: לאון קולצ'ינסקי
Cc: info-cyrus@lists.andrew.cmu.edu
Subject: Re: SQUATTER script and non English folders

[EMAIL PROTECTED] wrote:
> Hello All,
>  
> I have 2 questions:
>  
> 1) I'm running the following script as a cronjob every night:
> #!/bin/bash
> su - cyrus -c "/usr/lib/cyrus/bin/squatter -r user/*"

Why not run this from cyrus.conf as an EVENT?  There is no good reason that I 
can think of to not keep all Cyrus related stuff in cyrus.conf.


> But, it creates cyrus.squat file only in subfolders of the users INBOX, 
> i.e. /var/spool/imap/user/username/ doesn't include cyrus.squat but 
> /var/spool/imap/user/username/Drafts/ does include cyrus.squat after 
> running the above script.
>  
> What's wrong with my syntax?

I believe David's assessment is correct.

-- 
Kenneth Murchison
Systems Programmer
Carnegie Mellon University

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: SQUATTER script and non English folders

2005-10-27 Thread lkolchin
Hi,

/usr/lib/cyrus/bin/squatter -r user

works fine for me, but the idea of one letter  of the alphabet at a time is 
nice.

Interesting, when I use webinterface (IMP or Squirremail) after I've finished 
to run squatter I got this message:
imap[15835]: SQUAT returned 45 messages

But after a while, when I got new messages in this account, I've got this 
message:
imap[16924]: SQUAT returned 46 messages

Does it mean that cyrus.squat file has been updated automatically, even before 
I've run "squatter -r user" again?
If so, why should I run "squatter -r user" on regular basis?

Best Regards,
Leon Kolchinsky

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, October 27, 2005 7:17 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: Re: SQUATTER script and non English folders

-- David Carter said the following on 10/27/05 8:53 AM:
> On Thu, 27 Oct 2005, [EMAIL PROTECTED] wrote:
> 
>> 1) I'm running the following script as a cronjob every night:
>> #!/bin/bash
>> su - cyrus -c "/usr/lib/cyrus/bin/squatter -r user/*"
>>
>> But, it creates cyrus.squat file only in subfolders of the users 
>> INBOX, i.e. /var/spool/imap/user/username/ doesn't include 
>> cyrus.squat but /var/spool/imap/user/username/Drafts/ does include 
>> cyrus.squat after running the above script.
> 
> Looking at the code, that will generate squat indexes for all 
> mailboxes matching user/*/*, which will match user/dpc22/foo, but not 
> user/dpc22.
> 
> I suggest that you try: "/usr/lib/cyrus/bin/squatter -r user" or just 
> "/usr/lib/cyrus/bin/squatter".

Since you've looked at the code, what about:

  squatter -r 'user.a*'

What I'd like to be able to do is to squat on one letter of the alphabet at a 
time, cycling through the letters maybe once a month. Obviously not all 
messages will be squatted on, but I'm worried that if I try to squat the entire 
server every night, the I/O from that combined with backups will mean that the 
squatting never finishes in time for active business hours. So I was thinking 
that a compromise would be to keep most of the messages squatted by cycling 
through what mailboxes I squat..

(Can you imagine someone reading this out-of-context? ;-)

Amos


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


IOERROR: fstating sieve script

2005-10-31 Thread lkolchin



Hello 
All,
 
Could you please 
tell me what these entries in my log mean:
 
Oct 31 12:58:55 mail 
lmtpunix[14418]: lmtp connection preauth'd as postmanOct 31 12:58:55 mail 
lmtpunix[14418]: IOERROR: fstating sieve script 
/var/lib/sieve/k/kuper/defaultbc: No such file or directoryOct 31 12:58:55 
mail lmtpunix[14418]: duplicate_check: <[EMAIL PROTECTED]> 
user.kuper  
0
 
How to deal with 
IOERROR: fstating sieve script?
What 
"duplicate_check:" means, and shjould I be worried about it?
 
 
Best 
Regards,
Leon 
Kolchinsky

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: setting up IMAP users

2005-11-02 Thread lkolchin



Hi,
 
I'm 
using cyrus on SLES9 and pretty happy with it till now :)
 
I'd 
suggest to:
 
1) Try to use web-cyradm ( www.web-cyradm.org ) - Web-cyradm is a web based software that glues topnotch 
mailing technologies like cyrus-imap and postfix together. The focus is on 
administrating small and large mailing environments.
 
Be sure also to subscribe to their list, if you 
want to use this interface.
 
2) The second option is via LDAP - Configuring a Mail Server on 
SLES (http://www.novell.com/coolsolutions/feature/16264.html).
 
I'm 
using the first one, so there I can help.
 
Best 
Regards,
Leon 
Kolchinsky
 


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Nick 
SmithSent: Tuesday, November 01, 2005 10:02 PMTo: 
info-cyrus@lists.andrew.cmu.eduSubject: setting up IMAP 
users
im currently a new user of cyrus, im very familiar with courier as 
thats what ive always used in the past for mail servers.  im currently 
using SLES9 and that distro uses cyrus, it doesnt seem to be automagiclly making 
the users mail folders, there is a directory under the root home folder called 
Mail which seems to have the correct folders but i cannot login to that account 
via IMAP for some reason.  And the command line tool isnt exactly user 
friendly, i tried "cyradm -auth localhost" and i get a cyrus prompt, then i type 
cm 'user' and i get "no connection to server" if i dont use the "-auth" i get a 
segment fault.  ive pretty much narrowed down the problem to cyrus and the 
mail directories not being there.  is there any help you can give me to get 
this working?  i am looking into your web admin program, hopefully that 
will work once the web server comes online.thanks for any and all 
replies.Nick

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: Formatting Messages

2005-11-03 Thread lkolchin
Try imapsync - http://www.linux-france.org/prj/imapsync/README

Here is an example of the syntax:

imapsync --host1 198.74.48.3 --user1 username1 --password1 secret1 --host2 
198.74.48.10 --user2 username2 --password2 secret2 --noauthmd5 --include 
'^ANYFOLDERNAME' --subscribe 

Regards,
Leon

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Blewett
Sent: Wednesday, November 02, 2005 9:40 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: Formatting Messages

I've tested out several different IMAP servers in the last few years (Courier, 
DBMail, now Cyrus). All my personal mail is currently in DBMail, and I'm trying 
to migrate it to Cyrus. I've got archives of a few mailing lists that run to 
the thousands of messages. Interspersed throughout these are random messages 
that apparently have "bare newlines" or "invalid headers". When trying to move 
the entire folder, I'll get these often reported errors.

Is there a way to move the messages that do not have malformed headers, and 
leave the rest? I want to move as much as I can to Cyrus, but I really don't 
want to have to try each message seperately. 
Alternatively, is there a tool to repair the messages with errors?

I've tried having 2 IMAP accounts in Thunderbird, and moving from one to the 
other. I've tried mailutil, offlineimap, and mbsync with no luck. Any tips 
would be appreciated!

David

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


Problem with Subject: XXXX XXXXXX on Cyrus

2005-11-07 Thread lkolchin



Hello 
All,
 
I have very 
annoying problem since I've moved to Cyrus from 
UW-IMAP:
 
When someone sends 
e-mail from a number of servers to my users, and Subject line is in 
hebrew, the only Subject they see on their Outlook Express 
or
Horde IMP is 
Subject:  XX
 
On the other hand, 
same message sent to Exchange account looks OK on the Subject 
line.
 
Is there any 
solution to this kind of problem?
 
 
Here are the headers 
of the message I got on Cyrus account with Subject:  
XX:
 
Return-Path: <[EMAIL PROTECTED]>Received: 
from mail.edu.haifa.ac.il ([unix socket]) by mail.edu.haifa.ac.il 
(Cyrus v2.2.3) with LMTP; Mon, 07 Nov 2005 13:28:26 +0200X-Sieve: CMU Sieve 
2.2Received: from localhost (localhost [127.0.0.1]) by 
mail.edu.haifa.ac.il (Postfix) with ESMTP id 73F921BEC4 for <[EMAIL PROTECTED]>; 
Mon,  7 Nov 2005 13:28:26 +0200 (IST)Received: from 
mail.edu.haifa.ac.il ([127.0.0.1]) by localhost (mail.edu.haifa.ac.il 
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26288-07 for 
<[EMAIL PROTECTED]>; Mon,  
7 Nov 2005 13:28:26 +0200 (IST)Received: from mr2.haifa.ac.il 
(mr2.haifa.ac.il [132.74.1.218]) by mail.edu.haifa.ac.il (Postfix) with 
ESMTP id 3EAA61BEA3 for <[EMAIL PROTECTED]>; 
Mon,  7 Nov 2005 13:28:26 +0200 (IST)Received: from localhost (mr2 
[127.0.0.1]) by mr2.haifa.ac.il (Postfix) with ESMTP id 
62B543803B for <[EMAIL PROTECTED]>; 
Mon,  7 Nov 2005 13:21:56 +0200 (IST)Received: from mr2.haifa.ac.il 
([127.0.0.1]) by localhost (mr2.haifa.ac.il [127.0.0.1]) (amavisd-new, 
port 10026) with ESMTP id 01525-09 for <[EMAIL PROTECTED]>; Mon,  
7 Nov 2005 13:21:53 +0200 (IST)Received: from hotmail.com 
(bay109-f13.bay109.hotmail.com [64.4.19.23]) by mr2.haifa.ac.il 
(Postfix) with ESMTP id 8D12A380C1 for <[EMAIL PROTECTED]>; 
Mon,  7 Nov 2005 13:21:49 +0200 (IST)Received: from mail pickup service 
by hotmail.com with Microsoft SMTPSVC;  Mon, 7 Nov 2005 03:27:47 
-0800Message-ID: <[EMAIL PROTECTED]>Received: 
from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Mon, 07 
Nov 2005 11:27:47 GMTX-Originating-IP: 
[132.74.99.84]X-Originating-Email: [EMAIL PROTECTED]X-Sender: [EMAIL PROTECTED]From: "leon 
kolchinsky" <[EMAIL PROTECTED]>To: [EMAIL PROTECTED]Cc: 
[EMAIL PROTECTED]Subject: 
 XXDate: Mon, 07 Nov 2005 11:27:47 +Mime-Version: 
1.0Content-Type: text/plain; format=flowedX-OriginalArrivalTime: 07 Nov 
2005 11:27:47.0820 (UTC) FILETIME=[47BA9AC0:01C5E38E]X-Virus-Scanned: by 
amavisd-new at haifa.ac.ilX-Virus-Scanned: by amavisd-new at 
edu.haifa.ac.ilX-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char F7 
hex) in message header 'Subject'  Subject: \367\345\370\361 
\344\351\351\362\345\365\n   
^
 
 
Here are the same 
message I got on Exchange account with looking OK Subject 
line:
 
Microsoft Mail 
Internet Headers Version 2.0Received: from exchsrv02.haifa.edu 
([132.74.1.68]) by exchsrv01.haifa.edu with Microsoft 
SMTPSVC(6.0.3790.1830);  Mon, 7 Nov 2005 13:27:39 +0200Received: 
from mr2.haifa.ac.il ([132.74.1.218]) by exchsrv02.haifa.edu with Microsoft 
SMTPSVC(6.0.3790.1830);  Mon, 7 Nov 2005 13:27:39 +0200Received: 
from localhost (mr2 [127.0.0.1]) by mr2.haifa.ac.il (Postfix) with 
ESMTP id 690CC380B6 for <[EMAIL PROTECTED]>; Mon,  
7 Nov 2005 13:21:56 +0200 (IST)Received: from mr2.haifa.ac.il 
([127.0.0.1]) by localhost (mr2.haifa.ac.il [127.0.0.1]) (amavisd-new, 
port 10026) with ESMTP id 01563-03 for <[EMAIL PROTECTED]>; Mon,  
7 Nov 2005 13:21:53 +0200 (IST)Received: from hotmail.com 
(bay109-f13.bay109.hotmail.com [64.4.19.23]) by mr2.haifa.ac.il 
(Postfix) with ESMTP id 98CCC380CE for <[EMAIL PROTECTED]>; Mon,  
7 Nov 2005 13:21:49 +0200 (IST)Received: from mail pickup service by 
hotmail.com with Microsoft SMTPSVC;  Mon, 7 Nov 2005 03:27:47 
-0800Message-ID: <[EMAIL PROTECTED]>Received: 
from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Mon, 07 
Nov 2005 11:27:47 GMTX-Originating-IP: 
[132.74.99.84]X-Originating-Email: [EMAIL PROTECTED]X-Sender: [EMAIL PROTECTED]From: "leon 
kolchinsky" <[EMAIL PROTECTED]>To: [EMAIL PROTECTED]Cc: 
[EMAIL PROTECTED]Subject: 
÷åøñ äééòåõDate: Mon, 07 Nov 2005 11:27:47 +Mime-Version: 
1.0Content-Type: text/plain; format=flowedX-OriginalArrivalTime: 07 Nov 
2005 11:27:47.0820 (UTC) FILETIME=[47BA9AC0:01C5E38E]X-Virus-Scanned: by 
amavisd-new at haifa.ac.ilX-Amavis-Alert: BAD HEADER Non-encoded 8-bit data 
(char F7 hex) in message header 'Subject': Subject: \367\345\370\361 
\344\351\351\362\345\365\nReturn-Path: [EMAIL PROTECTED]
 
 
 
 
Best 
Regards,
Leon 
Kolchinsky
 

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: Problem with Subject: XXXX XXXXXX on Cyrus

2005-11-07 Thread lkolchin
Hello All,

Thanks to all who replyed.

I understand now that this are the hotmail and many other clients to blame for 
these kind of headers.
But in reality I would like to deal with this problem (not just blame the 
clients) via Cyrus (UW-IMAP and Exchange seem to deal with the problem pretty 
well).

Many users on my system now very dissapointed by this header handling :(

This munge8bit option, Andrzej wrote about is very interesting but I can't see 
this option with man imapd.conf
on my SLES9 system.
Is there more information on enabling this munge8bit option?

The patch from Igor is also interesting, if nothing else works, I'd like to try 
it.


Best Regards,
Leon Kolchinsky

P.S.:
This is my original message for Igor (cause he missed it):

Hello All,
 
I have very annoying problem since I've moved to Cyrus from UW-IMAP:
 
When someone sends e-mail from a number of servers to my users, and Subject 
line is in hebrew, the only Subject they see on their Outlook Express or
Horde IMP is Subject:  XX
 
On the other hand, same message sent to Exchange account looks OK on the 
Subject line.
 
Is there any solution to this kind of problem?
 
 
Here are the headers of the message I got on Cyrus account with Subject:  
XX:
 
Return-Path: <[EMAIL PROTECTED]>
Received: from mail.edu.haifa.ac.il ([unix socket])
 by mail.edu.haifa.ac.il (Cyrus v2.2.3) with LMTP; Mon, 07 Nov 2005 13:28:26 
+0200
X-Sieve: CMU Sieve 2.2
Received: from localhost (localhost [127.0.0.1])
 by mail.edu.haifa.ac.il (Postfix) with ESMTP id 73F921BEC4
 for <[EMAIL PROTECTED]>; Mon,  7 Nov 2005 13:28:26 +0200 (IST)
Received: from mail.edu.haifa.ac.il ([127.0.0.1])
 by localhost (mail.edu.haifa.ac.il [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 26288-07 for <[EMAIL PROTECTED]>;
 Mon,  7 Nov 2005 13:28:26 +0200 (IST)
Received: from mr2.haifa.ac.il (mr2.haifa.ac.il [132.74.1.218])
 by mail.edu.haifa.ac.il (Postfix) with ESMTP id 3EAA61BEA3
 for <[EMAIL PROTECTED]>; Mon,  7 Nov 2005 13:28:26 +0200 (IST)
Received: from localhost (mr2 [127.0.0.1])
 by mr2.haifa.ac.il (Postfix) with ESMTP id 62B543803B
 for <[EMAIL PROTECTED]>; Mon,  7 Nov 2005 13:21:56 +0200 (IST)
Received: from mr2.haifa.ac.il ([127.0.0.1])
 by localhost (mr2.haifa.ac.il [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id 01525-09 for <[EMAIL PROTECTED]>;
 Mon,  7 Nov 2005 13:21:53 +0200 (IST)
Received: from hotmail.com (bay109-f13.bay109.hotmail.com [64.4.19.23])
 by mr2.haifa.ac.il (Postfix) with ESMTP id 8D12A380C1
 for <[EMAIL PROTECTED]>; Mon,  7 Nov 2005 13:21:49 +0200 (IST)
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
  Mon, 7 Nov 2005 03:27:47 -0800
Message-ID: <[EMAIL PROTECTED]>
Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP;
 Mon, 07 Nov 2005 11:27:47 GMT
X-Originating-IP: [132.74.99.84]
X-Originating-Email: [EMAIL PROTECTED]
X-Sender: [EMAIL PROTECTED]
From: "leon kolchinsky" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject:  XX
Date: Mon, 07 Nov 2005 11:27:47 +
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
X-OriginalArrivalTime: 07 Nov 2005 11:27:47.0820 (UTC) 
FILETIME=[47BA9AC0:01C5E38E]
X-Virus-Scanned: by amavisd-new at haifa.ac.il
X-Virus-Scanned: by amavisd-new at edu.haifa.ac.il
X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char F7 hex) in message 
header 'Subject'
  Subject: \367\345\370\361 \344\351\351\362\345\365\n   ^
 
 
Here are the same message I got on Exchange account with looking OK Subject 
line:
 
Microsoft Mail Internet Headers Version 2.0
Received: from exchsrv02.haifa.edu ([132.74.1.68]) by exchsrv01.haifa.edu with 
Microsoft SMTPSVC(6.0.3790.1830);
  Mon, 7 Nov 2005 13:27:39 +0200
Received: from mr2.haifa.ac.il ([132.74.1.218]) by exchsrv02.haifa.edu with 
Microsoft SMTPSVC(6.0.3790.1830);
  Mon, 7 Nov 2005 13:27:39 +0200
Received: from localhost (mr2 [127.0.0.1])
 by mr2.haifa.ac.il (Postfix) with ESMTP id 690CC380B6
 for <[EMAIL PROTECTED]>; Mon,  7 Nov 2005 13:21:56 +0200 (IST)
Received: from mr2.haifa.ac.il ([127.0.0.1])
 by localhost (mr2.haifa.ac.il [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id 01563-03 for <[EMAIL PROTECTED]>;
 Mon,  7 Nov 2005 13:21:53 +0200 (IST)
Received: from hotmail.com (bay109-f13.bay109.hotmail.com [64.4.19.23])
 by mr2.haifa.ac.il (Postfix) with ESMTP id 98CCC380CE
 for <[EMAIL PROTECTED]>; Mon,  7 Nov 2005 13:21:49 +0200 (IST)
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
  Mon, 7 Nov 2005 03:27:47 -0800
Message-ID: <[EMAIL PROTECTED]>
Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP;
 Mon, 07 Nov 2005 11:27:47 GMT
X-Originating-IP: [132.74.99.84]
X-Originating-Email: [EMAIL PROTECTED]
X-Sender: [EMAIL PROTECTED]
From: "leon kolchinsky" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: ÷åøñ äééòåõ
Date: Mon, 07 Nov 2005 11:27:47 +
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
X-O

Munge8bit option for .spec file

2005-11-09 Thread lkolchin



Hello 
All,
 
 
I've attached .spec 
file of my cyrus-imapd on SLES9.
 
Could someone tell 
me what to change there so I can build it with "munge8bit 
option"?
 
 
 
Best 
Regards,
 
Leon 
Kolchinsky
 


cyrus-imapd.spec
Description: cyrus-imapd.spec

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

2005-11-10 Thread lkolchin
Hi,

I'll quote myself here, I wrote it some time ago on this list:

1) I'll make a dump of all mailboxes to the text file:

su - cyrus -c "ctl_mboxlist -d" > /var/lib/imap/mailboxlist.txt

And I can restore it with:

su - cyrus -c "ctl_mboxlist -u" < /var/lib/imap/mailboxlist.txt

2) I will make a regular backups (in my case with DSM client) of 
/var/spool/imap/ and /var/lib/imap/, without stopping cyrus, in this case I 
endanger myself in some data inconsistency and maybe some e-mails lost (which 
were in process while backup was running).
Please correct me on the above if there are some other dangers I'm not aware 
of???

3) In case of disaster I can just copy mail directly from the backup to the 
mail store directory (/var/spool/imap/user/%username%),
And run:
/usr/lib/cyrus/bin/reconstruct -rf user/username


4) All quotas (in /var/lib/imap/quota/%firstletter of username%/)will not be 
reconstructed, so I'll need to do it manually.

5) All subscription and seen info (in /var/lib/imap/user/%firstletter of 
username%/) will not be reconstructed, but I could restore it from the regular 
backup.


Regards,
Leon Kolchinsky 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vladimir Dvorak
Sent: Thursday, November 10, 2005 12:24 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: Cyrus-Backup

Hello all,

is there some good way how to elegantly backup cyrus mailboxes (sieve 
inclusive)? My idea is to copy/rsync relevant cyrus directories to another 
place.  
Does any good backup tool exist ? Or, how you backup your cyrus data ?

Thank you.

Vladimir


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: (no subject)

2005-11-15 Thread lkolchin
Hi,

Please use web-cyradm tutorial - www.web-cyradm.org
This is the one you need, I believe.

Regards,
Leon Kolchinsky 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, November 14, 2005 4:30 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: (no subject)

hi all,
i am trying to configure my cyrus-imap in order to use it with sasl,mysql,pam 
to support multi-domains mail server ..

my main question is:
i am following up a http://workaround.org/articles/ispmail-sarge/ tutorail in 
order to build this mail server ..
this tutorial uses courier-imap instead of cyrus-imap ..

how can i switch to use cyrus-imap instead ?? and what changes should i apply 
in order to make my mail server works ???

i asked on postfix channel on irc and they told me that i had to tell cyrus how 
to use mysql files that i had created for my multi-domain server so can any one 
tell me how to do it ???

i am using debian-sarge as an opertaing system .

last question: does cyrus has any channel on irc ?? what is it's name and what 
is the server name that this channel is connected to??

urs
maisa

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: Moving an account to another server

2005-11-27 Thread lkolchin



Hi,
 
You 
don't have to create subfolders, imapsync will create them for you. The syntax 
is pretty simple, just play a little with the options.
 
Regards,
Leon 
Kolchinsky


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Marcelo H. 
TerresSent: Friday, November 25, 2005 8:56 PMTo: 
info-cyrus@lists.andrew.cmu.eduSubject: Re: Moving an account to 
another server
Ok, but then I will need to create the subfolders too or imapsync 
creates the folders in the second server ?Thanks
2005/11/25, Raymond Sundland <[EMAIL PROTECTED]>:

  
  It seems a utility 
  called 'imapsync' is the preferred way.  I would create the mailbox on 
  the second server and then use imapsync to move the 
messages.
  
   
  -Original 
  Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Marcelo H. 
  TerresSent: Friday, November 
  25, 2005 10:58 AMTo: info-cyrus@lists.andrew.cmu.eduSubject: Moving an account to another 
  server
   
  Hi.Maybe anybody else had made this question 
  before, but I'm trying to access the list archives and the page don't 
  open.Well, I need to move an account to another server. I don't want 
  to use cyrus murder. Just need to move, for example, user.mhterres from 
  server1 to server2.Any ideas ???Thanks,-- 
  Marcelo H. Terres[EMAIL PROTECTED] 
  -- 
Marcelo H. Terres[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: quota script

2006-03-07 Thread lkolchin
Hi,

I would suggest to use the solution from web-cyradm list:
http://www.web-cyradm.org/pipermail/web-cyradm/2004-November/017965.html

There is very nice and multipurpose script to deal with  quotas.
It's abaut integration of quota management for MTA (postfix) + Cyrus.

Regards,
Leon Kolchinsky



Am Mo, den 06.03.2006 schrieb Mitja Sladovic um 14:13:

> Is there any shell / perl script, that will check user quotas and send 
> me email with that information.
> Some users read mail trough pop3, so they don't know if account is over 
> quota
> 
> Thanks! Mitja

http://oregonstate.edu/~morgan/cyrus/nightly_quota_warnings.pl

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 17:44:10 up 10 days, 19:33, load average: 0.39, 0.22, 0.18 
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : 
https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20060306/57852336/attachment-0001.bin

--

___
Info-cyrus mailing list
Info-cyrus@lists.andrew.cmu.edu
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


End of Info-cyrus Digest, Vol 8, Issue 8


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: quota script

2006-03-08 Thread lkolchin
Hi,

You need to make sure that $CRYPT in the file config.inc.php
is set to md5.

Look here - 
http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/web-cyradm-config.html

Crypted passwords

Web-cyradm supports the storage of encrypted passwords. I strongly suggest the 
use of encryption. There are three methods supported at the moment: 
Unix-compatible (crypt), md5 and MySQL. The Unix-compatible encryption allows 
you to import encrypted passwords from an existing /etc/shadow. This is the 
preferred option. 

Unfortunately, MySQL uses a proprietary encryption method which is only 
available when using MySQL. I'm currently thinking about dropping support for 
MySQL crypt, because it only works with MySQL and makes a migration to another 
database impossible. As soon as there is a method available to re-engineer the 
MySQL crypt on PHP there will be a solution (Help needed in programming, legal 
constraints?) 

Check the variable $CRYPT in the file config.inc.php. Value »plain« means no 
encryption, »crypt« means Shadow compatible encryption, mysql means MySQL 
encryption.





You wrote:

Yes, mail users are shell users too.
But question is, how to migrate MD5 hash passwords from /etc/shadow to 
mysql, if I wish to use web-cyradm and sasl_pwcheck_method: auxprop ?

Thanks, Mitja

Btw I found quota script, that work fine;
# quotacheck.pl
#
# Written by Mark Borrie, ITS, University of Otago
#Dunedin, New Zealand
#[EMAIL PROTECTED]


Nikola Milutinovic pravi:
> --- Mitja Sladovic <[EMAIL PROTECTED]> wrote:
>
>   
>> Hi,
>>
>> I don't have users stored in mysql (cyrus users are system users), so 
>> this script doesn't work for me..
>> 
>
> Any particualr reason for this? One of my first motives to move to Cyrus (and
> at that time I was using it as POP3 server) was the ability to avoid using OS
> accounts for mail users. Then I saw how IMAP4 was good and moved to it.
>   

-- next part --
An HTML attachment was scrubbed...
URL: 
https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20060307/dcb51269/attachment-0001.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