RE: Web-cyradm and Zimbra maybe?

2008-08-14 Thread Leon Kolchinsky
   I'm using web-cyradm (mysql frontend for virt. domains+cyrus+postfix
   integration) for years and very happy with it.
   Now we need some implementation for shared calendars (let's say
   calendar solution for all our users).
  
   What would you recommend?
   Web-cyradm and Zimbra integration? Anyone have any experience with
  it?
   How would you handle authentication issue?
  
   Any other suggestions?
  
 
  Bedework[1] seems interesting.
 
  [1] http://www.bedework.org/
 
 http://www.kolab.org
 
 Best Regards
 
 Joon

Thanks guys for all the answers :)
I'll check them all.

Best Regards,
Leon



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


Web-cyradm and Zimbra maybe?

2008-08-13 Thread Leon Kolchinsky
Hello All,

I'm using web-cyradm (mysql frontend for virt. domains+cyrus+postfix
integration) for years and very happy with it.
Now we need some implementation for shared calendars (let's say calendar
solution for all our users).

What would you recommend?
Web-cyradm and Zimbra integration? Anyone have any experience with it? How
would you handle authentication issue?

Any other suggestions?


Thanks,
Leon


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


RE: Can't delete cyrus mailbox?

2007-11-30 Thread Leon Kolchinsky
 I imagine you know cyrus advise against admin account having mailbox !
 Is cyrus and admin account in imapd.conf ?
 
 Maybe you could try to create a second admin account in imapd.conf,
 give him a password
 and use this account to remove the cyrus mailbox.
 
 OR
 
 dump the mailboes list using ctl_mboxlist, remove any reference to cyrus
 milbox
 and then restore the modified configuration. Finally remove the
 remaining directory manually
 
 
 Regards
 

Thanks Alain,

You just approved my suspicion.
I was hoping for some simpler way to do it but I seems that the simlest way
is just to dump mailboxes.db remove cyrus mailbox and restore.


Best Regards,
Leon Kolchinsky 


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


RE: Can't delete cyrus mailbox?

2007-11-28 Thread Leon Kolchinsky
  Hello All,
 
  I've moved my old mail server to a new hardware and everything is
 working
  fine. Although I found some redundant mail accounts and deleted some of
  them.
 
  The problem is that I'm not able to delete cyrus mailbox this way:
 
  # cyradm --user cyrus --server localhost --auth plain
  Password:
  IMAP Password:
 
  localhost lam user/cyrus
  cyrus lrswipcda
 
  localhost lm user/cyrus
  user/cyrus (\HasNoChildren)
 
  localhost dm user/cyrus
  deletemailbox: Operation is not supported on mailbox
 
 
  Any help please?
 
 check the unix permissions on the folder/files
 
 Craig
 


Hi,

No problem with permissions:

drwx--  2 cyrus mail200 Nov 28 08:40 cyrus

# ls -l /var/spool/imap/user/cyrus
total 36
-rw--- 1 cyrus mail 8466 Jan 24  2006 1.
-rw--- 1 cyrus mail 1312 Nov 28 08:04 cyrus.cache
-rw--- 1 cyrus mail  161 Nov 28 08:40 cyrus.header
-rw--- 1 cyrus mail  136 Nov 28 08:04 cyrus.index
-rw--- 1 cyrus mail 8464 Nov 28 03:00 cyrus.squat


# cyradm --user cyrus --server localhost --auth plain
Password:
IMAP Password:
 
localhost lam user/cyrus
cyrus lrswipcda
 
localhost dm user/cyrus
deletemailbox: Operation is not supported on mailbox


Any help please?


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


Can't delete cyrus mailbox?

2007-11-27 Thread Leon Kolchinsky
Hello All,

I've moved my old mail server to a new hardware and everything is working
fine. Although I found some redundant mail accounts and deleted some of
them.

The problem is that I'm not able to delete cyrus mailbox this way:

# cyradm --user cyrus --server localhost --auth plain
Password:
IMAP Password:
 
localhost lam user/cyrus
cyrus lrswipcda
 
localhost lm user/cyrus
user/cyrus (\HasNoChildren)
 
localhost dm user/cyrus
deletemailbox: Operation is not supported on mailbox


Any help please?


P.S.:
I'm running -
name   : Cyrus IMAPD
version: v2.2.13-Gentoo 2006/03/30 16:00:03
vendor : Project Cyrus
support-url: http://asg.web.cmu.edu/cyrus
os : Linux
os-version : 2.6.22-gentoo-r5
environment: Built w/Cyrus SASL 2.1.22
 Running w/Cyrus SASL 2.1.22
 Built w/Sleepycat Software: Berkeley DB 4.3.29: (September  6,
2005)
 Running w/Sleepycat Software: Berkeley DB 4.3.29: (September
6, 2005)
 Built w/OpenSSL 0.9.8e 23 Feb 2007
 Running w/OpenSSL 0.9.8e 23 Feb 2007
 CMU Sieve 2.2
 TCP Wrappers
 mmap = shared
 lock = fcntl
 nonblock = fcntl
 idle = idled


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


Re: syslog-ng

2007-10-22 Thread Leon Kolchinsky
 Hi, I need help setting up Cyrus and syslog-ng to have all the Cyrus
 logs in their own files.
 
 It seems like I just cannot get it right, no matter how I try.
 So, I'd be grateful for setup info on syslog-ng to accomplish this.
 
 Thanks!
 Anders.
 
 

Hello Anders,

Look here -
http://linux.derkeiler.com/Mailing-Lists/SuSE/2007-09/msg01265.html

Or in short:
At syslog-ng.conf:
filter f_cyrus { program(lmtpunix) or program(imap) or
program(ctl_cyrusdb) or program(cyr_expire) or match(master); };
destination cyrus { file(/var/log/cyrus); };
log { source(src); filter(f_cyrus); destination(cyrus); };


Best Regards,
Leon Kolchinsky


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


RE: conversation with /var/lib/imap/socket/lmtp timed out while sending end of data

2007-09-22 Thread Leon Kolchinsky
 On 9/20/07, Leon Kolchinsky [EMAIL PROTECTED] wrote:
   1. Try to understand on the cyrus side, look into the cyrus log for
   messages at the same time (here Sep 20 06:46:10). Try a :
   # grep -ir 06:46:[01][7890123] /var/log
  
 
  Here the appropriate lines:
 
  # grep -ir 06:46:[01][7890123] /var/log/mail
 
 I wrote /var/log, you wrote /var/log/mail
 We need the cyrus log too
 

Ah, OK.
My cyrus log is in /var/log/messages, so this is the only relevant line
here:
# zcat messages-20070921.gz | grep -ir 06:46:[01][7890123]
Sep 20 06:46:10 mail lmtpunix[31802]: duplicate_check:
[EMAIL PROTECTED] user.usernme
0

 
  Sep 20 06:46:00 mail postfix/lmtp[31837]: A61BBFCA9:
  to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED],
  relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=0,
  status=sent (250 2.1.5 Ok)
  Sep 20 06:46:00 mail postfix/qmgr[4632]: A61BBFCA9: removed
  Sep 20 06:46:10 mail postfix/lmtp[31653]: 3ED8314F024:
  to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED],
  relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=2865,
  status=deferred (conversation with
  /var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp] timed out while
 sending
  end of data -- message may be sent more than once)
 
   2. If this is always the same user, try to reconstruct his mailbox,
   use reconstruct or cyrreconstruct (the name can chnage)
 
  I've already tried that, but it won't help.
 
   3. Your cyrus version is old, try to upgrade to the last 2.2.X, the
   2.2.12 I think
 
  May be that.
  
 
 

Leon


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


conversation with /var/lib/imap/socket/lmtp timed out while sending end of data

2007-09-20 Thread Leon Kolchinsky
Hello all,

Once in a while one of my users (and this is always the same one) stops
getting e-mails, and this is what I see in the logs:

# grep 3ED8314F024 /var/log/mail
Sep 20 05:58:25 mail postfix/smtpd[31183]: 3ED8314F024:
client=localhost[127.0.0.1]
Sep 20 05:58:25 mail postfix/cleanup[31179]: 3ED8314F024:
message-id=[EMAIL PROTECTED]
Sep 20 05:58:25 mail postfix/qmgr[4632]: 3ED8314F024:
from=[EMAIL PROTECTED], size=59674, nrcpt=1 (queue active)
Sep 20 05:58:25 mail amavis[31099]: (31099-04) FWD via SMTP:
[EMAIL PROTECTED] - [EMAIL PROTECTED],BODY=7BIT 250 2.6.0
Ok, id=31099-04, from MTA([127.0.0.1]:10025): 250 Ok: queued as 3ED8314F024
Sep 20 05:58:25 mail amavis[31099]: (31099-04) Passed CLEAN,
[128.230.108.46] [EMAIL PROTECTED] - [EMAIL PROTECTED],
Message-ID: [EMAIL PROTECTED],
mail_id: 9ObScyAvZeGF, Hits: -5.021, size: 58979, queued_as: 3ED8314F024,
7040 ms
Sep 20 05:58:25 mail postfix/smtp[31180]: 3BF9A190FB:
to=[EMAIL PROTECTED], relay=127.0.0.1[127.0.0.1], delay=8,
status=sent (250 Ok: queued as 3ED8314F024)
Sep 20 06:46:10 mail postfix/lmtp[31653]: 3ED8314F024:
to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED],
relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=2865,
status=deferred (conversation with
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp] timed out while sending
end of data -- message may be sent more than once)
Sep 20 06:50:27 mail postfix/qmgr[4632]: 3ED8314F024:
from=[EMAIL PROTECTED], size=59674, nrcpt=1 (queue active)
Sep 20 07:50:32 mail postfix/lmtp[32493]: 3ED8314F024:
to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED],
relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=6727,
status=deferred (conversation with
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp] timed out while sending
end of data -- message may be sent more than once)
Sep 20 07:57:07 mail postfix/qmgr[4632]: 3ED8314F024:
from=[EMAIL PROTECTED], size=59674, nrcpt=1 (queue active)
Sep 20 08:36:38 mail postfix/lmtp[800]: 3ED8314F024:
to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED],
relay=none, delay=9493, status=deferred (connect to
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]: Connection refused)

My system is SLES10:
postfix-2.1.1-2
cyrus-imapd-devel-2.2.3-83.5
cyrus-sasl-2.1.18-33.8
cyrus-sasl-gssapi-2.1.18-33.1
cyrus-sasl-plain-2.1.18-33.1
cyrus-imapd-2.2.3-83.35

The only thing that helps is to restart postfix. Then the queue is empties
and all got back to normal.

Anyone have any idea how to avoid this situation in the future and what
could cause that?


Best Regards,
Leon Kolchinsky

 




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


RE: conversation with /var/lib/imap/socket/lmtp timed out while sending end of data

2007-09-20 Thread Leon Kolchinsky
 1. Try to understand on the cyrus side, look into the cyrus log for
 messages at the same time (here Sep 20 06:46:10). Try a :
 # grep -ir 06:46:[01][7890123] /var/log
 

Here the appropriate lines:

# grep -ir 06:46:[01][7890123] /var/log/mail

Sep 20 06:46:00 mail postfix/lmtp[31837]: A61BBFCA9:
to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED],
relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=0,
status=sent (250 2.1.5 Ok)
Sep 20 06:46:00 mail postfix/qmgr[4632]: A61BBFCA9: removed
Sep 20 06:46:10 mail postfix/lmtp[31653]: 3ED8314F024:
to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED],
relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=2865,
status=deferred (conversation with
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp] timed out while sending
end of data -- message may be sent more than once)

 2. If this is always the same user, try to reconstruct his mailbox,
 use reconstruct or cyrreconstruct (the name can chnage)

I've already tried that, but it won't help.

 3. Your cyrus version is old, try to upgrade to the last 2.2.X, the
 2.2.12 I think

May be that.
 


Regards,
Leon



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


Re: consultant help for cyrus pam_mysql (and exim)

2007-08-13 Thread Leon Kolchinsky
 
  Could someone please point me to a consultant to help with the final
  configuration for a new server? A consulting system admin has had to
 give up
  getting this running and I need it in within the day. This consultant
  successfully did my last move, but had lots of issues. This time he
 decided
  to use pam_mysql and now can't finish.
 

I've never used cyrus pam_mysql and exim (I'm using cyrus pam_mysql and
postfix), but you could look at web-cyradm tutorial where you can find an
excellent howto (particularly on pam_mysql).



Regards,
Leon Kolchinsky


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


Re: Emergancy..... db4: PANIC: fatal region error

2007-07-29 Thread Leon Kolchinsky
 
 Also another thing I have noticed..
 
 The sieve scripts all needed to be reranged.  The hash directory was all
 in
 lower case but tthen it need to be upper case so I changed that by hand
 then
 I noticed cyrus was looking for the scripts all in other directories.
 
 i.e.
 Scripts for 'adam' should be under 'a' or 'A' but found in 'F' or was it
 'L'.  I can't see the logic in that.  So I moved the 'adam' directory over
 to 'F' and i check it with websieve and all my rules are there but when
 cyrus receives mail it does not even read the rules and just posts the
 mail
 in my INBOX.  I remember I read something about sieve not being the same..
 I am going to look for that again..
 
 -Adam

Hi,

This is a bit late response but it may help others with similar to yours
problem.
A while ago I did a conversion to skiplist on my SLES9 and documented it.

So, this is my step-by-step howto for any interested person:

1) First let's check with the help of file command the DB type of file we
want to convert (like: # file annotations.db):
We get (on my SLES9 machine):
annotations.db:  Cyrus skiplist DB
deliver.db:  Berkeley DB (Btree, version 9, native byte-order)
mailboxes.db:Cyrus skiplist DB
tls_sessions.db: Berkeley DB (Btree, version 9, native byte-order)
exampleuser.seen: Cyrus skiplist DB

Now we know that we have to convert only deliver.db and tls_sessions.db from
BDB to skiplist.

2) Some tips on the script below:
We should add these lines to imapd.conf (via script):
duplicate_db: skiplist
tlscache_db: skiplist
annotation_db: skiplist
mboxlist_db: skiplist
ptscache_db: skiplist
quota_db: quotalegacy
seenstate_db: skiplist
subscription_db: flat

We want to remove all data from the db dirs because
there may still be some files from the BerkeleyDB and they can lead to
error messages, which are in fact not real cyrus errors. On such a
migration I usually do this after rsyncing:
rm -rvf /var/lib/imap/db/* /var/lib/imap/db.*/*

3) Just run the script -
The script itself:
--
#!/bin/bash
###
/etc/init.d/cyrus stop

# Make backup of all cyrus DB at /data/backup/berkeleydb-backup/ directory
cp -pR /var/lib/imap /data/backup/berkeleydb-backup/

cp /data/backup/berkeleydb-backup/imap/deliver.db
/data/backup/berkeleydb-backup/imap/deliver.db.berkeley
cp /data/backup/berkeleydb-backup/imap/tls_sessions.db
/data/backup/berkeleydb-backup/imap/tls_sessions.db.berkeley

# Actual conversion to skiplist format
/usr/lib/cyrus/bin/cvt_cyrusdb
/data/backup/berkeleydb-backup/imap/deliver.db.berkeley berkeley
/data/backup/berkeleydb-backup/imap/deliver.db.skiplist skiplist 
/usr/lib/cyrus/bin/cvt_cyrusdb
/data/backup/berkeleydb-backup/imap/tls_sessions.db.berkeley berkeley
/data/backup/berkeleydb-backup/imap/tls_sessions.db.skiplist skiplist 

# Adding some config options to imapd.conf:
echo -e duplicate_db: skiplist\ntlscache_db: skiplist\nannotation_db:
skiplist\nmboxlist_db: skiplist\nptscache_db: skiplist\nquota_db:
quotalegacy\nseenstate_db: skiplist\nsubscription_db: flat 
/etc/imapd.conf

cp /data/backup/berkeleydb-backup/imap/deliver.db.skiplist
/var/lib/imap/deliver.db
cp /data/backup/berkeleydb-backup/imap/tls_sessions.db.skiplist
/var/lib/imap/tls_sessions.db

rm -rvf /var/lib/imap/db/* /var/lib/imap/db.*/*

# Create skipstamp so that cyrus doesn't complain
touch /var/lib/imap/db/skipstamp

chown -R cyrus:mail /var/lib/imap

/etc/init.d/cyrus start


3) Final check:

Yes, that should be okay. For me it looks like this:
[EMAIL PROTECTED] imap]# file /var/lib/imap/*.db
/var/lib/imap/annotations.db:  Cyrus skiplist DB
/var/lib/imap/deliver.db:  Cyrus skiplist DB
/var/lib/imap/mailboxes.db:Cyrus skiplist DB
/var/lib/imap/tls_sessions.db: Cyrus skiplist DB

[EMAIL PROTECTED] imap]# file /var/lib/imap/user/*/*.seen
.
.
/var/lib/imap/user/z/zlann.seen: Cyrus skiplist DB
/var/lib/imap/user/z/zviar.seen: Cyrus skiplist DB
/var/lib/imap/user/z/zvikos.seen:Cyrus skiplist DB

[EMAIL PROTECTED] imap]# file /var/lib/imap/quota/*/user.*
.
.
/var/lib/imap/quota/z/user.zlann: ASCII text
/var/lib/imap/quota/z/user.zviar: ASCII text
/var/lib/imap/quota/z/user.zvikos:ASCII text



Best Regards,
Leon Kolchinsky


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


RE: Quota warnings

2007-01-15 Thread Leon Kolchinsky
): br/
a href=quota.txtquota.txt/a /p
p
The list of full mailboxes (which are blocked for now): br/
a href=mailboxfull.txtmailboxfull.txt/a /p

/body
/html



Go to http://mydomain.ac.il/quota/

***

Enjoy.


Best Regards,
Leon Kolchinsky


quota.pl
Description: Binary data

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

RE: Quota warnings

2007-01-15 Thread Leon Kolchinsky
 with the description of the
occasion (full or nearly full mailboxes): br/
a href=quota.txtquota.txt/a /p
p
The list of full mailboxes (which are blocked for now): br/
a href=mailboxfull.txtmailboxfull.txt/a /p

/body
/html



Go to http://mydomain.ac.il/quota/

***

Enjoy.


Best Regards,
Leon Kolchinsky




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


unable to open Berkeley db /etc/sasldb2: Permission denied

2007-01-09 Thread Leon Kolchinsky
Hello All,


I have a working mail system Cyrus+Postfix+Web-cyradm+Amavisd-new(SA+ClamAV)
with 2 virtual domains.

All is working, but I've noticed that I keep getting:
--
Jan  9 10:28:20 mail pop3[25728]: unable to open Berkeley db /etc/sasldb2:
Permission denied
Jan  9 10:28:23 mail pop3[25728]: unable to open Berkeley db /etc/sasldb2:
Permission denied
Jan  9 10:29:55 mail pop3[25728]: unable to open Berkeley db /etc/sasldb2:
Permission denied
Jan  9 10:29:58 mail pop3[25728]: unable to open Berkeley db /etc/sasldb2:
Permission denied

in my /var/log/warn file.


I did a little googling and thought that this procedure would help (adding
mail and postfix to the same group):
# ls -l /etc/sasldb2
-rw-r-  1 root root 12288 Sep 15  2005 /etc/sasldb2

Now check the group of cyrus user:
# cat /etc/passwd| grep cyrus
cyrus:x:96:12:User for cyrus-imapd:/usr/lib/cyrus:/bin/bash

Now make sure that cyrus and postfix in the same group and restart cyrus and
postfix:
# cat /etc/group| grep 12
mail:x:12:mail,postfix


But it didn't help and I'm still getting these Permission denied messages.

Where are they coming from and how to get rid of them?


Best Regards,
Leon




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


RE: unable to open Berkeley db /etc/sasldb2: Permission denied

2007-01-09 Thread Leon Kolchinsky


 -Original Message-
 From: Alex Prinsier [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 09, 2007 11:06 AM
 To: Leon Kolchinsky
 Cc: info-cyrus@lists.andrew.cmu.edu
 Subject: Re: unable to open Berkeley db /etc/sasldb2: Permission denied
 
 Try:
 chgrp mail /etc/sasldb2
 chmod 660 /etc/sasldb2
 
 You seem to have configured cyrus to access sasldb2. That means you
 should give it access to the database too :) Currently it's set only
 root can read/write it.
 

I think you’re right. I forgot this step:

# chgrp mail /etc/sasldb2
# ls -al /etc/sasldb2
-rw-r-  1 root mail 12288 11月 19 20:02 /etc/sasldb2

No errors till now.
I'll keep an eye on it.


Thanks,
Leon 

 If you're not using sasldb2 you should probably better disable it in
 your config.
 
 Hope it helps.
 
 Alex
 
 Leon Kolchinsky wrote:
  Hello All,
 
 
  I have a working mail system Cyrus+Postfix+Web-cyradm+Amavisd-
 new(SA+ClamAV)
  with 2 virtual domains.
 
  All is working, but I've noticed that I keep getting:
  --
  Jan  9 10:28:20 mail pop3[25728]: unable to open Berkeley db
 /etc/sasldb2:
  Permission denied
  Jan  9 10:28:23 mail pop3[25728]: unable to open Berkeley db
 /etc/sasldb2:
  Permission denied
  Jan  9 10:29:55 mail pop3[25728]: unable to open Berkeley db
 /etc/sasldb2:
  Permission denied
  Jan  9 10:29:58 mail pop3[25728]: unable to open Berkeley db
 /etc/sasldb2:
  Permission denied
 
  in my /var/log/warn file.
 
 
  I did a little googling and thought that this procedure would help
 (adding
  mail and postfix to the same group):
  # ls -l /etc/sasldb2
  -rw-r-  1 root root 12288 Sep 15  2005 /etc/sasldb2
 
  Now check the group of cyrus user:
  # cat /etc/passwd| grep cyrus
  cyrus:x:96:12:User for cyrus-imapd:/usr/lib/cyrus:/bin/bash
 
  Now make sure that cyrus and postfix in the same group and restart cyrus
 and
  postfix:
  # cat /etc/group| grep 12
  mail:x:12:mail,postfix


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


Re: Newbie maillog errors

2006-12-14 Thread Leon Kolchinsky
 
 On Wed, 2006-12-13 at 13:54 -0500, Tom Plancon wrote:
 
  I've sort of inherited managing a cyrus 2.2.12 email server with postfix
  on a FC4 linux box. Generally things run smoothly, but I'm still getting
  up to speed and I see some errors regularly appearing in the maillog.
  The two most frequent are:
 
  Dec 13 13:16:41 pelican imap[6609]: SQUAT failed to open index file
  Dec 13 13:16:41 pelican imap[6609]: SQUAT failed
 

This will create the SQUAT index:

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.

Or

run the following script as a cronjob every night:
#!/bin/bash
su - cyrus -c /usr/lib/cyrus/bin/squatter -r user/*

  And
 
  Dec 13 13:18:14 pelican lmtpunix[6857]: IOERROR: fstating sieve script
  /var/lib/imap/sieve/x/xuser/defaultbc: No such file or directory
 

This is not an error AFAIK, it just saying you don't have default sieve
script at user directory.


 Result of debug level logging in your syslog.conf
 Decrease it to info.
 
 MJ
 



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


how to resend ham messages?

2006-11-06 Thread Leon Kolchinsky
Hello All,

I've implemented Spamassassin solution on my 
Cyrus+Postfix+Amavis-new+Web-cyradm system.

I'm getting spam to special spamtrainer mailbox.
There I do a filtering for any False Positives Ham messages that SA marked as 
a spam, and move them to ham folder.

After I did this, I make some learning on ham messages and spam messages 
with sa-learn and razor-report/razor-revoke.

Now I want to resend these ham (legitimate mails) to their original 
recipients.

How could I do that?

This is an example headers of such ham message:
---

Return-Path: [EMAIL PROTECTED]
Received: from mail.edu.mydomain.ac.il ([unix socket])
by mail.edu.mydomain.ac.il (Cyrus v2.2.3) with LMTP; Thu, 26 Oct 2006 
16:10:16 +0200
X-Sieve: CMU Sieve 2.2
Received: from localhost (localhost [127.0.0.1])
by mail.edu.mydomain.ac.il (Postfix) with ESMTP id CC19C1FD8E
for [EMAIL PROTECTED]; Thu, 26 Oct 2006 16:10:15 +0200 (IST)
X-Envelope-To: [EMAIL PROTECTED]
X-Envelope-From: [EMAIL PROTECTED]
X-Quarantine-id: 
spam-ea13a04d8a019298b079b26dcb0f5b9f-20061026-161015-23914-10
Received: from mr1.mydomain.ac.il (mr1.mydomain.ac.il [132.74.1.39])
by mail.edu.mydomain.ac.il (Postfix) with ESMTP id 4F5351C0DC
for [EMAIL PROTECTED]; Thu, 26 Oct 2006 16:10:11 +0200 (IST)
Received: from localhost (mr1.mydomain.ac.il [127.0.0.1])
by mr1.mydomain.ac.il (Postfix) with ESMTP id 120825386E
for [EMAIL PROTECTED]; Thu, 26 Oct 2006 15:52:56 +0200 (IST)
Received: from mr1.mydomain.ac.il ([127.0.0.1])
 by localhost (mr1.mydomain.ac.il [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id 16060-01-4 for [EMAIL PROTECTED];
 Thu, 26 Oct 2006 15:52:50 +0200 (IST)
Received: from sa15.bezeqint.net (sa15.bezeqint.net [192.115.104.30])
by mr1.mydomain.ac.il (Postfix) with ESMTP id B1FBD53868
for [EMAIL PROTECTED]; Thu, 26 Oct 2006 15:51:49 +0200 (IST)
Received: from localhost (localhost.localdomain [127.0.0.1])
by sa15.bezeqint.net (Bezeq International SMTP out Mail Server) with 
ESMTP id D1B9A27F22
for [EMAIL PROTECTED]; Thu, 26 Oct 2006 15:52:58 +0200 (IST)
X-Virus-Scanned: amavisd-new at bezeqint.net
Received: from sa15.bezeqint.net ([127.0.0.1])
by localhost (sa15.bezeqint.net [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id erDWzs+zRvs4 for [EMAIL PROTECTED];
Thu, 26 Oct 2006 15:52:47 +0200 (IST)
Received: from family71 (bzq-88-154-249-180.red.bezeqint.net [88.154.249.180])
by sa15.bezeqint.net (Bezeq International SMTP out Mail Server) with 
SMTP
for [EMAIL PROTECTED]; Thu, 26 Oct 2006 15:52:47 +0200 (IST)
Message-ID: [EMAIL PROTECTED]
From: orly nuriani [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: =?windows-1255?B?6OX08SDk+Pnu5A==?=
Date: Thu, 26 Oct 2006 15:53:48 +0200
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary==_NextPart_000_000A_01C6F916.ED0E6C60
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-Virus-Scanned: by amavisd-new at mydomain.ac.il
X-Spam-Status: Yes, hits=5.4 tag1=-999.0 tag2=5.0 kill=5.0 tests=BAYES_44,
 FROM_ENDS_IN_NUMS, HTML_MESSAGE, RAZOR2_CF_RANGE_51_100, RAZOR2_CHECK,
 ROUND_THE_WORLD
X-Spam-Level: *
---

Any sample code (scripts) for resending this kind of Ham would be very 
welcome.



Best Regards,
Leon Kolchinsky


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


how to get rid of remaining messages after ipurge command

2006-11-05 Thread Leon Kolchinsky
Hello All,

I'm running the following command and get the following result:

# su cyrus -c (/usr/lib/cyrus/bin/ipurge -d0 -f user/spamcop/spam)
Working on user/spamcop/spam...
total messages   1090
total bytes  19147634
Deleted messages 1041
Deleted bytes18844799
Remaining messages   49
Remaining bytes  302835


I've just wanted to clean spam folder from all spam mails.

Why there are 49 remaining messages?
How could I remove those too?


Best Regards,
Leon Kolchinsky


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


RE: Integrted tool for adminstering Cyrus IMAP and LDAP.

2006-09-12 Thread Leon Kolchinsky
Hi,

You can try LDAP enabled web-cyradm web GUI. - 
http://www.web-cyradm.org/download.html
In fact I'm using this great tool (a little modified for our needs) and it's 
very nice.

Regards,
Leon Kolchinsky



-
I have to deploy an Email Server based on Cyrus IMAP, Postfix and 
LDAP. This is no problem, I have done it before.However our customer 
requests for a web based tool for administering user accounts and 
quotas. 

We found tools capable of administering accounts in the LDAP Server 
(ie LDAPmyADMIN) or cyrus accounts, but not an integrated tool.We want 
a tool where you can create a Cyrus account with LDAP autentication 
filling one web based form, Same with modifications and deletions.

Does someone has something to recomend? Thanks in advance.

A/P Andres Tarallo
WDB Consultores
Montevideo - Uruguay



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


RE: Legal cyrus mailbox names?

2006-08-06 Thread Leon Kolchinsky
Hi,

Go to http://www.qwik.net/support/webmail-project/why.html
Where is a patched web-cyradm version, working with fully qualified user names 
(FQUN).

Best Regards,
Leon Kolchinsky




--

Hi,

I'm trying to figure out what I can actually have as a valid mailbox 
name in cyrus, due to problems with mail being delivered to the wrong 
account.

I realise I can't have any '.' in the name, but currently mail for user 
'jim+test' (who can login just fine) is being delivered to user 'jim' 
instead.

I've also seen people suggesting that mailboxes can be [EMAIL PROTECTED], 
but I get permission denied whenever I try and create a mailbox in that 
format.

Any suggestions/links to good documentation would be appreciated :)

Thanks,

Jim
[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: Advice on data partition

2006-07-04 Thread Leon Kolchinsky
Hello,

I see that there was no answer/advice here.

Does it mean that I should probably make a mirror raid (raid1) for  
partition-default?

Best Regards,
Leon

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leon Kolchinsky
Sent: Monday, July 03, 2006 12:19 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: Advice on data partition

Hello All,

My partition-default: /var/spool/imap was mounted on RAID5 ACCUSYS hardware 
raid.
It's very untrusted raid solution IMHO.

A couple of days ago one of the disks on this raid died and for some reason 
this freezed my system completely.

I've copied the /var/spool/imap data to my system disk.
Reconstructed all mailboxes /usr/lib/cyrus/bin/reconstruct -rf user/* and now 
mail-server seems to run normally.

Instead of this faulty raid, I've added 2 separate disks (each of 160GB).

My question is:

Should I configure these 2 disks in Raid1 (Mirror) and mount it as 
/var/spool/imap and move all mailboxes to it?

Or may be there is a better solution? May be to use one disk as 
/var/spool/imap and other for some kind of replication?
So in case of disaster it won't be needed to shut down the server, replace 
faulty disk and rebuild the raid, but only to switch to another disk? 


Any thoughts/suggestions/ideas and howto's are welcome.


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

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


Advice on data partition

2006-07-03 Thread Leon Kolchinsky
Hello All,

My partition-default: /var/spool/imap was mounted on RAID5 ACCUSYS hardware 
raid.
It's very untrusted raid solution IMHO.

A couple of days ago one of the disks on this raid died and for some reason 
this freezed my system completely.

I've copied the /var/spool/imap data to my system disk.
Reconstructed all mailboxes /usr/lib/cyrus/bin/reconstruct -rf user/* and now 
mail-server seems to run normally.

Instead of this faulty raid, I've added 2 separate disks (each of 160GB).

My question is:

Should I configure these 2 disks in Raid1 (Mirror) and mount it as 
/var/spool/imap and move all mailboxes to it?

Or may be there is a better solution? May be to use one disk as 
/var/spool/imap and other for some kind of replication?
So in case of disaster it won't be needed to shut down the server, replace 
faulty disk and rebuild the raid, but only to switch to another disk? 


Any thoughts/suggestions/ideas and howto's are welcome.


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