Re: [Dovecot] no auth attempts: log

2009-03-04 Thread Mathieu Kretchner
Timo Sirainen a écrit :
 On Tue, 2009-03-03 at 14:52 +0100, Mathieu Kretchner wrote:
 Hello,

 is there any option that could disable such log :

 Mar  2 16:47:31 imap dovecot: imap-login: Disconnected (no auth
 attempts): rip=127.0.0.1, lip=127.0.0.1, secured, port=143
 
 So those are some kind of heartbeat checks? No, no such options to
 disable them. Perhaps use a configurable syslog and filter them out
 there.
 
 
Yes they are heartbeat checks ! you're so perceptive (excuse my english)
Thanks for the syslog tips !
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:mathieu.kretch...@sophia.inria.fr
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



[Dovecot] no auth attempts: log

2009-03-03 Thread Mathieu Kretchner
Hello,

is there any option that could disable such log :

Mar  2 16:47:31 imap dovecot: imap-login: Disconnected (no auth
attempts): rip=127.0.0.1, lip=127.0.0.1, secured, port=143
Mar  2 16:48:31 imap last message repeated 2 times
Mar  2 16:49:32 imap last message repeated 2 times
Mar  2 16:51:02 imap last message repeated 3 times
Mar  2 16:52:02 imap last message repeated 2 times


Thanks.
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:mathieu.kretch...@sophia.inria.fr
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] managesieve proxy cyrus

2009-02-02 Thread Mathieu Kretchner
Thanks you so much, it's working !!

I love when the week begin with a such good monday.

Stephan Bosch wrote:
 Mathieu Kretchner schreef:
 Ok thanks for your help,

 By the way I've another question, we have configure a postfix smtp proxy
 with plain text database in order to redirect mail that coming to imap
 proxy to be delivered to the right imap backend.

 Does the dovecot imap proxy do to the local delivery itself to the right
 backend server ?
 The IMAP proxy has nothing to do with mail delivery. It merely forwards
 IMAP connections to the backend.
 
 Stephan Bosch wrote:
 Mathieu Kretchner schreef:

 It seems like the problem comes from dovecot in proxy mode ?? (only to
 connect to a cyrus sieve server, because it's working well with a
 dovecot sieve server)

 I'll do a few tests in the coming days. Let's see what I can find out.
 If you want some other network capture or tests I've done let me known,
 it would be a pleasure to help you !
 
 Ok, this was caused by Dovecot. Fixed:
 
 http://hg.rename-it.nl/dovecot-1.1-managesieve/rev/f575c6b41697
 
 I also added a proper log message in subsequent changes.
 
 Regards,
 
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:mathieu.kretch...@sophia.inria.fr
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] managesieve proxy cyrus

2009-01-28 Thread Mathieu Kretchner
 Does Squirrelmail try to use STARTTLS? Having full session traffic logs
I don't think Squirrelmail is trying to use STARTTLS. But anyway I've
tried to trace the sieve connection protocol, you could find it in the
attachement. It's approximatively the same data, I've posted yesterday
with extra protocol tcp/ip :)

 of when Squirrelmail is logging into Dovecot proxy and when logging into
 Cyrus proxy would be helpful (ngrep, wireshark, etc). If Squirrelmail
 uses STARTTLS, this doesn't really work though (but at least the logs
 will reveal that it is doing STARTTLS). Also if it is doing that,
 perhaps the issue is SASL PLAIN after all, since Dovecot proxy won't do
 STARTTLS to the Cyrus.
 
 Also if you set auth_debug=yes, what do you see in Dovecot logs when
 attempting to log in?
 
Here is my dovecot log with auth_debug=yes :

Jan 28 09:31:24 myservername dovecot: auth(default): client in: AUTH   3
  PLAIN   service=managesieve  secured  lip=127.0.0.1
rip=127.0.0.1   lport=2000  rport=42791 resp=hidden
Jan 28 09:31:24 myservername dovecot: auth-worker(default):
sql(imap2,127.0.0.1): query: SELECT NULL AS password, host, destuser,
'Y' as nopassword, 'Y' AS proxy FROM proxy WHERE user = 'imap2'
Jan 28 09:31:24 myservername dovecot: auth(default): client out: OK3
  user=imap2  host=138.138.138.138 destuser=imap2  proxy
pass=hidden
Jan 28 09:31:24 myservername dovecot: managesieve-login: Disconnected:
user=imap2, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Jan 28 09:31:24 myservername dovecot: auth(default): new auth
connection: pid=4760
Frame 1 (74 bytes on wire, 74 bytes captured)
Arrival Time: Jan 28, 2009 09:31:24.796988000
Time delta from previous packet: 0.0 seconds
Time since reference or first frame: 0.0 seconds
Frame Number: 1
Packet Length: 74 bytes
Capture Length: 74 bytes
Protocols in frame: eth:ip:tcp
Ethernet II, Src: Xensourc_1f:1f:1f (1f:1f:1f:1f:1f:1f), Dst: Dell_1e:1e:1e 
(1e:1e:1e:1e:1e:1e)
Destination: Dell_1e:1e:1e (1e:1e:1e:1e:1e:1e)
Address: Dell_1e:1e:1e (1e:1e:1e:1e:1e:1e)
 ...0     = Multicast: This is a UNICAST frame
 ..0.     = Locally Administrated Address: This is 
a FACTORY DEFAULT address
Source: Xensourc_1f:1f:1f (1f:1f:1f:1f:1f:1f)
Address: Xensourc_1f:1f:1f (1f:1f:1f:1f:1f:1f)
 ...0     = Multicast: This is a UNICAST frame
 ..0.     = Locally Administrated Address: This is 
a FACTORY DEFAULT address
Type: IP (0x0800)
Internet Protocol, Src: IP_proxy_dovecot (IP_proxy_dovecot), Dst: 
Ip_cyrus_server (Ip_cyrus_server)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
 00.. = Differentiated Services Codepoint: Default (0x00)
 ..0. = ECN-Capable Transport (ECT): 0
 ...0 = ECN-CE: 0
Total Length: 60
Identification: 0x7d21 (32033)
Flags: 0x04 (Don't Fragment)
0... = Reserved bit: Not set
.1.. = Don't fragment: Set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 64
Protocol: TCP (0x06)
Header checksum: 0xa5f8 [correct]
Good: True
Bad : False
Source: IP_proxy_dovecot (IP_proxy_dovecot)
Destination: Ip_cyrus_server (Ip_cyrus_server)
Transmission Control Protocol, Src Port: 53996 (53996), Dst Port: sieve (2000), 
Seq: 0, Len: 0
Source port: 53996 (53996)
Destination port: sieve (2000)
Sequence number: 0(relative sequence number)
Header length: 40 bytes
Flags: 0x0002 (SYN)
0...  = Congestion Window Reduced (CWR): Not set
.0..  = ECN-Echo: Not set
..0.  = Urgent: Not set
...0  = Acknowledgment: Not set
 0... = Push: Not set
 .0.. = Reset: Not set
 ..1. = Syn: Set
 ...0 = Fin: Not set
Window size: 5840
Checksum: 0x384f [correct]
Options: (20 bytes)
Maximum segment size: 1460 bytes
SACK permitted
Time stamp: tsval 1185633227, tsecr 0
NOP
Window scale: 4 (multiply by 16)

Frame 2 (74 bytes on wire, 74 bytes captured)
Arrival Time: Jan 28, 2009 09:31:24.797024000
Time delta from previous packet: 0.36000 seconds
Time since reference or first frame: 0.36000 seconds
Frame Number: 2
Packet Length: 74 bytes
Capture Length: 74 bytes
Protocols in frame: eth:ip:tcp
Ethernet II, Src: Dell_1e:1e:1e (1e:1e:1e:1e:1e:1e), Dst: Xensourc_1f:1f:1f 
(1f:1f:1f:1f:1f:1f)
Destination: Xensourc_1f:1f:1f (1f:1f:1f:1f:1f:1f)
Address: Xensourc_1f:1f:1f (1f:1f:1f:1f:1f:1f)
 ...0     = Multicast: This is a UNICAST frame
 ..0.     = Locally Administrated Address: This is 
a FACTORY DEFAULT address
Source: Dell_1e:1e:1e 

Re: [Dovecot] managesieve proxy cyrus

2009-01-28 Thread Mathieu Kretchner
I've found this in the cyrus log file :

Jan 28 13:19:18 cyrus_server sieve[10793]: login:
proxy_dovecot[138.138.138.138] imap2 PLAIN User logged in

When I test with sivtest -a myuser I can connect with PLAIN mechanism.

If I replay with a telnet cyrus_server 2000 exactly what avelsieve send
to a dovecot server I got this :

telnet cyrus_server sieve
Trying 138.138.138.138...
Connected to cyrus_server.inria.fr (138.138.138.138).
Escape character is '^]'.
IMPLEMENTATION Cyrus timsieved v2.2.12
SASL PLAIN
SIEVE fileinto reject envelope vacation imapflags notify subaddress
relational comparator-i;ascii-numeric regex
STARTTLS
OK
AUTHENTICATE PLAIN AGltYXAyAGltYXAy
OK
CAPABILITY
IMPLEMENTATION Cyrus timsieved v2.2.12
SIEVE fileinto reject envelope vacation imapflags notify subaddress
relational comparator-i;ascii-numeric regex
OK

It's like avelsieve just stop the connection by itself because once the
user is logged, there is no other command send ! I don't understand why
avelsieve tell me :
unable to connect to server IMAP. localhost.


I've done some others tests :
 - sivtest to a dovecot sieve server it's working.
 - telnet cyrus_server 2000 : it's working too
 - directly telnet dovecot 2000 : it's working too
 - telnet dovecot_proxy 2000 : it's not working ! (complain with NO
Authentication failed.)

It seems like the problem comes from dovecot in proxy mode ?? (only to
connect to a cyrus sieve server, because it's working well with a
dovecot sieve server)


Mathieu Kretchner wrote:
 Does Squirrelmail try to use STARTTLS? Having full session traffic logs
 I don't think Squirrelmail is trying to use STARTTLS. But anyway I've
 tried to trace the sieve connection protocol, you could find it in the
 attachement. It's approximatively the same data, I've posted yesterday
 with extra protocol tcp/ip :)
 
 of when Squirrelmail is logging into Dovecot proxy and when logging into
 Cyrus proxy would be helpful (ngrep, wireshark, etc). If Squirrelmail
 uses STARTTLS, this doesn't really work though (but at least the logs
 will reveal that it is doing STARTTLS). Also if it is doing that,
 perhaps the issue is SASL PLAIN after all, since Dovecot proxy won't do
 STARTTLS to the Cyrus.

 Also if you set auth_debug=yes, what do you see in Dovecot logs when
 attempting to log in?

 Here is my dovecot log with auth_debug=yes :
 
 Jan 28 09:31:24 myservername dovecot: auth(default): client in: AUTH   3
   PLAIN   service=managesieve  secured  lip=127.0.0.1
 rip=127.0.0.1   lport=2000  rport=42791 resp=hidden
 Jan 28 09:31:24 myservername dovecot: auth-worker(default):
 sql(imap2,127.0.0.1): query: SELECT NULL AS password, host, destuser,
 'Y' as nopassword, 'Y' AS proxy FROM proxy WHERE user = 'imap2'
 Jan 28 09:31:24 myservername dovecot: auth(default): client out: OK3
   user=imap2  host=138.138.138.138 destuser=imap2  proxy
 pass=hidden
 Jan 28 09:31:24 myservername dovecot: managesieve-login: Disconnected:
 user=imap2, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
 Jan 28 09:31:24 myservername dovecot: auth(default): new auth
 connection: pid=4760
 
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:mathieu.kretch...@sophia.inria.fr
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] Store sent email

2009-01-28 Thread Mathieu Kretchner
Hello,


normaly the first time you'll send an e-mail like with a thunderbird
client. The client will create a directory .Sent and store the mail inside.

Try it!

pierre.casen...@almerys.com wrote:
  Hello all,
 I've set up a webmail solution based on RedHat EL 5, sendmail, 
 spamassassin, clamAV and dovecot by following this tutorial: 
 http://www.redhat.com/magazine/025nov06/features/email/index.html
 I have configured everything without any problem, I can send and receive 
 emails, using Maildir store format.
 Now, what I don't know how to set up: I would like to store the emails 
 sent by the users in a dedicated store (Like Sent Emails in many 
 webmails) and I've got no idea on how to do this!
 By googling a little, I found this thread (
 http://www.dovecot.org/list/dovecot/2007-April/021447.html) where a plugin 
 is mentionned. Has it been developped or is there another solution?
 I'm using dovecot 1.0.7, shipped with RHEL 5 distribution.
  
 I am really discovering all the products around the email so I'm a bit 
 confused.
  
 Thanks a lot for your answer,
  
 Pierre
 
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:mathieu.kretch...@sophia.inria.fr
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] managesieve proxy cyrus

2009-01-28 Thread Mathieu Kretchner
Ok thanks for your help,

By the way I've another question, we have configure a postfix smtp proxy
with plain text database in order to redirect mail that coming to imap
proxy to be delivered to the right imap backend.

Does the dovecot imap proxy do to the local delivery itself to the right
backend server ?

Stephan Bosch wrote:
 Mathieu Kretchner schreef:
 
 It seems like the problem comes from dovecot in proxy mode ?? (only to
 connect to a cyrus sieve server, because it's working well with a
 dovecot sieve server)

 I'll do a few tests in the coming days. Let's see what I can find out.
If you want some other network capture or tests I've done let me known,
it would be a pleasure to help you !

 
 Regards,
 
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:mathieu.kretch...@sophia.inria.fr
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] managesieve proxy cyrus

2009-01-27 Thread Mathieu Kretchner
I've tried to take some data with tethereal :

The only data I'm able to see between cyrus and dovecot (without
protocol noise) :


Data (41 bytes)
  41 55 54 48 45 4e 54 49 43 41 54 45 20 22 50 4c   AUTHENTICATE PL
0010  41 49 4e 22 20 22 41 47 6c 74 59 58 41 79 41 47   AIN AGltYXAyAG
0020  6c 74 59 58 41 79 22 0d 0altYXAy..

Data (22 bytes)
  4f 4b 20 22 4c 6f 67 6f 75 74 20 43 6f 6d 70 6c   OK Logout Compl
0010  65 74 65 22 0d 0a ete..


As you told me, the problem seems to be at authentication time. Whereas
I've found this in my imapd.conf of cyrus server :
# for sieveshell
sasl_mech_list: PLAIN


And in order to have a reference:  between dovecot proxy and imap dovecot :

Data (41 bytes)
  41 55 54 48 45 4e 54 49 43 41 54 45 20 22 50 4c   AUTHENTICATE PL
0010  41 49 4e 22 20 22 41 47 6c 74 59 58 41 78 41 47   AIN AGltYXAxAG
0020  6c 74 59 58 41 78 22 0d 0altYXAx..

Data (17 bytes)
  4f 4b 20 22 4c 6f 67 67 65 64 20 69 6e 2e 22 0d   OK Logged in..
0010  0a.

Data (12 bytes)
  43 41 50 41 42 49 4c 49 54 59 0d 0a   CAPABILITY..







Mathieu Kretchner wrote:
 Stephan Bosch wrote:
 Mathieu Kretchner wrote:
 Hello all,

 I've configured a dovecot server in proxy mode. It seems to work well
 but. I've tested managesieve with squirrelmail and it's working
 correctly but I can't connect to cyrus sieve server : timsieved
 First of all, what versions are you using? How is it all configured? Do
 the Dovecot and Cyrus logs contain anything useful?
 
 I've to do a migration between cyrus and dovecot so we have choosen to
 use dovecot (1.1.8) proxy in front of an old cyrus 2.2.12 and our new
 dovecot server.
 
 Does anybody here have configure a sieve proxy to do this ?
 Your setup is a bit odd. I haven't tried this ever and doubt anyone else
 has. The proxying feature is mainly implemented with Dovecot back-ends
 in mind. In an ideal world this should work however, so there is a
 possibility that the Dovecot proxy is not working properly.

 Or is it a normal behavior and dovecot sieve proxy can't speak with
 cyrus sieve ?
 Theoretically, this setup should be possible. However, the protocol
 specification is unfortunately not always followed to the letter. Also,
 Cyrus possibly does not allow you to login with the SASL PLAIN mechanism
 (the only one supported for proxying now). This seems unlikely though,
 since the IMAP proxy does work.
 I think you've right, I've done some tcpdump and don't see a lot of
 thing but there is some data on the 2000 port of my cyrus server. But I
 realy wonder if the SASL PLAIN mechanism is the key of the problem ?
 
 telnet imap-serv sieve
 Trying 138.XX.XX.XX...
 Connected to imap-serv.
 Escape character is '^]'.
 IMPLEMENTATION Cyrus timsieved v2.2.12
 SASL PLAIN
 SIEVE fileinto reject envelope vacation imapflags notify subaddress
 relational comparator-i;ascii-numeric regex
 STARTTLS
 OK
 
 If I configure my remote squirrelmail to directly access to my cyrus
 server, it works ! But as soon as I plug squirrelmail on the proxy it's
 crashing ...
 
 Thank you for your help
 
 Without more information I can only guess what is going on. Could you
 sniff the communication between Dovecot and Cyrus (e.g. using ngrep)?
 Perhaps, if it is not too much trouble, I can make it work...

 Regards,

 Stephan
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:mathieu.kretch...@sophia.inria.fr
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



[Dovecot] Heartbeat OCF ressource agent

2008-12-19 Thread Mathieu Kretchner
Hello,

I've tried to write an OCF ressource agent in order to manage by the
heartbeat way a dovecot server. It seems to work fine.


This kind of script could be found in the directory on a CentOS release
5.2 :
/usr/lib/ocf/resource.d/

If the attachement isn't working, I've cut and paste the script here :
http://www-sop.inria.fr/members/Mathieu.Kretchner/dotclear/index.php/2008/12/19/5-heartbeat-dovecot
#!/bin/bash -p
#
# $Id: ha-dovecot,v 1.2 2008/12/19 09:32:27 mkretchn Exp $

#---+ Notes

## Cf: http://linux-ha.org/OCFResourceAgent
## 
http://www.opencf.org/cgi-bin/viewcvs.cgi/specs/ra/resource-agent-api.txt?rev=HEAD
## /usr/share/heartbeat/crm.dtd

#---+ Contexte OCF

# Pour execution (status monitor) hors controle de heartbeat
if [ -z $OCF_ROOT ]; then
OCF_ROOT=/usr/lib/ocf
fi

source ${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs

#---+ Actions

usage () {
  echo Usage: $0 {start|stop|monitor|meta-data|validate-all}
}

meta_data () {
local rev=$Revision: 1.2 $
rev=${rev#* }; rev=${rev% *}
cat EOF
?xml version=1.0?
!DOCTYPE resource-agent SYSTEM ra-api-1.dtd
resource-agent name=ha-dovecot
version$rev/version
longdesc lang=en
dovecot
/longdesc
shortdesc lang=endovecot RA/shortdesc
actions
action name=start timeout=1m/
action name=stop timeout=1m/
action name=monitor interval=30s timeout=20s start-delay=1m /
action name=validate-all  timeout=5s /
action name=meta-data  timeout=5s /
/actions
/resource-agent
EOF
}

exec=/usr/sbin/dovecot
bin=$(basename $exec)
config=/etc/dovecot.conf

start () {

[ -x $exec ] || {
echo 2 ** $exec not executable
return $OCF_ERR_GENERIC
}
[ -f $config ] || {
echo 2 ** $config doesn't exist
return $OCF_ERR_GENERIC
}

local pid=$(dovecot_pid)
if [ $pid ]; then
echo 2 dovecot already running
return $OCF_SUCCESS
elif $exec; then
local pid=$(dovecot_pid)
  if [ $pid ]; then
return $OCF_SUCCESS
else
echo 2 ** no dovecot pid
return $OCF_ERR_GENERIC
fi
  else
echo 2 ** $bin fails to start
return $OCF_ERR_GENERIC
  fi
}


stop () {
local pid=$(dovecot_pid)
echo $pid
if [ $pid ]; then
if killpid $pid; then
return $OCF_SUCCESS
else
echo 2 ** killpid $pid: fails
return $OCF_ERR_GENERIC
fi
 else
return $OCF_SUCCESS
 fi
}

status () {
# Seems to not be used by heartbeat
return
}

monitor () {
local pid=$(dovecot_pid)
if [ $pid ]; then 
MYSTATUS=`echo . logout | nc localhost 143 | grep ready | 
wc -l`
if [ $MYSTATUS -eq 1 ]; then
return $OCF_SUCCESS 
else
return $OCF_ERR_GENERIC
fi
else
return $OCF_NOT_RUNNING
fi
}

validate_all () {
return
}

#---+ Utilitaires

dovecot_pid () {
pidof $bin
}


# Check if $pid (could be plural) are running
checkpid() {
local i

for i in $* ; do
[ -d /proc/$i ]  return 0
done
return 1
}

killpid () {
# Repris depuis /etc/init.d/functions:killproc
# killpid pid [delai en secondes]
# FIXME: faire faire ca par lps -k ou autre option?

local pid=$1
local delay=${2:-3}

# Succes si pas de process
checkpid $pid || return 0

# TERM first, then KILL if not dead
kill -TERM $pid
usleep 10
if checkpid $pid  sleep 1 
checkpid $pid  sleep $delay 
checkpid $pid ; then
kill -KILL $pid
usleep 10
fi
if checkpid $pid; then
return 1
else
return 0
fi
}

#---+ Debug
[[ $0 == *bash ]]  return

#---+ Main

if [ $# -eq 0 ]
then
usage
exit $OCF_ERR_ARGS
fi

# PATH

source /usr/local/bashutil/autoload_lib
autoload_lib /usr/local/bashutil/lib/batch

case $1 in
  start)start ;;
  stop) stop ;;
  status)   status ;;
  monitor)  monitor ;;
  meta-data)meta_data;;
  validate-all ) validate_all;;
  *)usage
exit $OCF_ERR_UNIMPLEMENTED
;;
esac
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:mathieu.kretch...@sophia.inria.fr
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] read only FS access

2008-10-30 Thread Mathieu Kretchner
  mail_location =
maildir:~/Maildir:CONTROL=~/Maildir/dovecot:INDEX=~/Maildir/dovecot
 
It's ok, I've tried with this configuration and it's working.
Thanks for your help !
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



[Dovecot] benchmark dovecot

2008-10-30 Thread Mathieu Kretchner
Hello,

We would like to do a feed back to this active mailing list. We are
working on a migration project from cyrus to dovecot. And we have just
completed the benchmark sequence.

As I say, this benchmark is here only to show that our old imap server
is out to date. I would not be the source of controversy at all, so I
try to explain my approach.

Because the only thing I found was this old oriented benchmark :
http://www.isode.com/whitepapers/mbox-benchmark.html

We've tried to do our tests, here you could find our results :

http://www-sop.inria.fr/members/Mathieu.Kretchner/dotclear/index.php/2008/10/29/3-dovecot-versus-cyrus


begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] benchmark dovecot

2008-10-30 Thread Mathieu Kretchner


Mark Zealey a écrit :
 Thanks; these look interesting. We have a similar nas setup but we have
 2 frontend dovecot servers connecting to it and store the indexes over
 nfs. 
Could you please tell me how have you done this configuration ?
2 frontend dovecot proxy with 10 dovecot mda ? We are looking for such a
configuration : 2 mda frontend with maybe an active and a passive one !


 We also have around 10 mail servers running deliver to try to keep
 the indexes on the nfs store up-to-date. Have you done any tests with
 the speed of multiple boxes each maintaining a local index of the
 mailbox? 
No sorry

 I suspect in this case keeping indexes on nfs would be the best
 bet but I don't have anything to substantiate that claim...
 
 Also one thing to note with storing things on nfs is that there are a
 large number of broken kernels out there (they issue about 10* more nfs
 lookup requests than they should) - centos 5.1 had these issues iirc
 (though the centosplus kernel and centos 5.2 did fix it).
Good thing to know, I'll try to change kernel before my migration !

 Always give it
 a good test before you change the kernel on your server... I assume you
 are using nfs3; has anyone tried using heavily loaded nfs4 and seeing if
 any better performance can be achieved?
 
 Another thing - I found that dovecot's pop3 implimentation is worse than
 courier's over nfs (wait state on our boxes is significantly increased).
 I still don't really understand why this is; I suspect it's probably due
 to to the indexes being created/updated though I thought these were
 meant to be discontinued after a while if it is just a simple
 login/fetch all operation. I only mention this because if you are
 offering pop then you should really do the same benchmarks for that.
 
 Mark
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] read only FS access

2008-10-29 Thread Mathieu Kretchner
Asheesh Laroia a écrit :
 On Tue, 28 Oct 2008, Mathieu Kretchner wrote:
 
 Hello,

 I would like to know if it's possible to subscribe to a folder that is
 on a read only File System ?

 We have a snapshot mechanism that create a .snapshot directly in the
 user folder. This is done by our NAS and we would like to give an access
 to this backup to our users.
 
 If you tell Dovecot to store the cache and indexes elsewhere, that
 should work fine.  I haven't tried it, though.
 
 -- Asheesh.
 
My problem is that dovecot complain when I subscribe to the folder in
read only
I've found this (after my e-mail to this list, forgive me :) )
http://markmail.org/message/l7rybsx27ofq57cp#query:dovecot%20read%20only+page:3+mid:c2ut2u4bajyx22fh+state:results

But could someone tell me if it's working now ? Because it's a little
bit old !
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



[Dovecot] read only FS access

2008-10-28 Thread Mathieu Kretchner
Hello,

I would like to know if it's possible to subscribe to a folder that is
on a read only File System ?

We have a snapshot mechanism that create a .snapshot directly in the
user folder. This is done by our NAS and we would like to give an access
to this backup to our users.

Thanks.
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



[Dovecot] dovecot Mstone benchmark

2008-10-08 Thread Mathieu Kretchner
Hello all,

I would like to bench imap with mstone but the only thing I see is imap
command read login logout banner but there is no write.

So I can't stress as well as with imaptest.

Does anyone have a dovecot.wld or a special configuration to test with
mstone ?

Thanks
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2004 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] cyrus2courrier mass migration

2008-09-24 Thread Mathieu Kretchner
Mathieu Kretchner a écrit :
 Holger Weiss a écrit :
 * Mathieu Kretchner [EMAIL PROTECTED] [2008-09-23 12:59]:
 Holger Weiss a écrit :
 However, for our conversion, we've written our own cyrus2dovecot which
 also supports skiplist databases (amongst another few features not
 provided by the other tools):

http://cyrus2dovecot.sw.fu-berlin.de/
 I've tried this one too and I'm stuck too :

 [EMAIL PROTECTED] testimap]# ./cyrus2dovecot -C /root/Mail/%u  -D 
 dovecot-mail/ mketchn

 cyrus2dovecot [mketchn]: (error) No Cyrus INBOX at: /root/Mail/mketchn

 [...]

 But I'm sure cyrus.header and cyrus.index exist.
 Are you really sure?  That is, the following commands don't complain?

  $ ls /root/Mail/mketchn/cyrus.header
  $ ls /root/Mail/mketchn/cyrus.index

 Holger
 
 Sorry for the noise it was my fault : mkretchn and not mketchn :
 
 ./cyrus2dovecot -C /root/Mail/%u -S ../seendir/%u.seen -U
 ../seendir/%u.sub -D dovecot-mail/ mkretchn
 cyrus2dovecot [mkretchn]: 7619 messages in 52 folders (168.4 MiB, 25 s)
 
 great but I still have all my e-mail unseen (maybe mkretchn.seen is
 desynchronized, because I' working on a copy of my account) ! However
 reply, forward and TODO falgs (maybe more) are kept.
 
 
 Timo,
 
 Is it enough for you ? I'm not familiar with gdb...
 
 Starting program: /root/testimap/cyrus2courier-1.5.ts/src/cyrus2courier
 -vvv /root/Mail/ /root/Mail/dovecot-mail/ -e /root/seendir/m/ -d mkretchn
 (no debugging symbols found)
 (no debugging symbols found)
 (no debugging symbols found)
 
 Program received signal SIGSEGV, Segmentation fault.
 0x00628b1a in strcmp () from /lib/libc.so.6
 (gdb) backtrace full
 #0  0x00628b1a in strcmp () from /lib/libc.so.6
 No symbol table info available.
 #1  0x08048fab in setfolder_seenfile ()
 No symbol table info available.
 #2  0x08049f76 in cydump ()
 No symbol table info available.
 #3  0x0804ab26 in traverse ()
 No symbol table info available.
 #4  0x0804b399 in main ()
 No symbol table info available.
 (gdb) info registers
 eax0x31 49
 ecx0xbfce92eb   -1076981013
 edx0x0  0
 ebx0x5  5
 esp0xbfce92bc   0xbfce92bc
 ebp0xbfce9308   0xbfce9308
 esi0xbfce92eb   -1076981013
 edi0x8c271a8146960808
 eip0x628b1a 0x628b1a strcmp+10
 eflags 0x10202  [ IF RF ]
 cs 0x73 115
 ss 0x7b 123
 ds 0x7b 123
 es 0x7b 123
 fs 0x0  0
 gs 0x33 51
I've compiled c2c with debuging symbols and here is more understandable
my backtrace :

(gdb) bt
#0  0x00628b1a in strcmp () from /lib/libc.so.6
#1  0x08048f8b in setfolder_seenfile (_sf=0xb7f4e008, _mailbox=0x997dcc3
mkretchn,
_uidvalidity=1204103732) at c2c.c:936
#2  0x08049f56 in cydump (path=0x804e1e0 /root/Mail/mkretchn,
dest=0x9973018 /root/Mail/dovecot-mail/mkretchn/, is_root=1) at
c2c.c:660
#3  0x0804ab06 in traverse (cy_root=0xbfb2cb5e /root/Mail,
co_root=0xbfb2cb69 /root/Mail/dovecot-mail, dir=0xbfb2cb98
mkretchn) at c2c.c:359
#4  0x0804b379 in main (argc=862205238, argv=value optimized out) at
c2c.c:162

it's done with c2c-1.5-dev !
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] cyrus2courrier mass migration

2008-09-23 Thread Mathieu Kretchner
Holger Weiss a écrit :
 * Mathieu Kretchner [EMAIL PROTECTED] [2008-09-22 16:11]:
 I would like to do a conversion of my imap accounts (and keep all theirs
 characteristics) from cyrus-imapd-2.2.12 in cyrus format to dovecot
 1.1.3 in courrier format.

 I've tried those 3 tools :

 cyrus2courrier.1.5.ts
 cyrus2courier-1.3z4
 imapsync (works well but very slow and should not be a true solution)

 But nothing is working to keep the seen/unseen flag (expect imapsync) !
 I know my cyrus version is too recent but do you have any idea how
 could I do this migration ?
 
 cyrus2courier 1.5.ts should work with Cyrus 2.2.12 if the seen (and
 subscription) states are available in flat text files; otherwise, they
 must first be converted using cvt_cyrusdb(8).
 
 However, for our conversion, we've written our own cyrus2dovecot which
 also supports skiplist databases (amongst another few features not
 provided by the other tools):
 
   http://cyrus2dovecot.sw.fu-berlin.de/
 
 Holger

Thank you, I'm just going to try !! And I keep you informed about my
experience!


begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] cyrus2courrier mass migration

2008-09-23 Thread Mathieu Kretchner
Holger Weiss a écrit :
 * Mathieu Kretchner [EMAIL PROTECTED] [2008-09-22 16:11]:
 I would like to do a conversion of my imap accounts (and keep all theirs
 characteristics) from cyrus-imapd-2.2.12 in cyrus format to dovecot
 1.1.3 in courrier format.

 I've tried those 3 tools :

 cyrus2courrier.1.5.ts
 cyrus2courier-1.3z4
 imapsync (works well but very slow and should not be a true solution)

 But nothing is working to keep the seen/unseen flag (expect imapsync) !
 I know my cyrus version is too recent but do you have any idea how
 could I do this migration ?
 
 cyrus2courier 1.5.ts should work with Cyrus 2.2.12 if the seen (and
 subscription) states are available in flat text files; otherwise, they
 must first be converted using cvt_cyrusdb(8).

My last try has nothing good :

cyrus2courier-1.5-dev : segfault
cyrus2courier-1.5-ts : segfault

I dont understand why ? But it's happening only with -e my_seen_dir option!


 
 However, for our conversion, we've written our own cyrus2dovecot which
 also supports skiplist databases (amongst another few features not
 provided by the other tools):
 
   http://cyrus2dovecot.sw.fu-berlin.de/

I've tried this one too and I'm stuck too :

[EMAIL PROTECTED] testimap]# ./cyrus2dovecot -C /root/Mail/%u  -D dovecot-mail/
mketchn

cyrus2dovecot [mketchn]: (error) No Cyrus INBOX at: /root/Mail/mketchn

I've red the perl code and found this :

if (-e $boxpath/cyrus.header and -e $boxpath/cyrus.index) {
//code
} else {
#
# The folder we're in is not in a Cyrus mailbox.
However, we
# don't simply return here because this folder might contain
# other folders which might be Cyrus mailboxes (unless
we're in
# the INBOX, in which case something is going wrong).
#
error('No Cyrus INBOX at:', $boxpath) if $box eq 'INBOX';
debug(Skipping $boxpath as it's not a Cyrus mailbox.);
$mailfolder = 0;
}


But I'm sure cyrus.header and cyrus.index exist.

Any idea (maybe this is a format problem because even cyrus2courier is
doing segfault)

 
 Holger

begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] cyrus2courrier mass migration

2008-09-23 Thread Mathieu Kretchner
Holger Weiss a écrit :
 * Mathieu Kretchner [EMAIL PROTECTED] [2008-09-23 12:59]:
 Holger Weiss a écrit :
 However, for our conversion, we've written our own cyrus2dovecot which
 also supports skiplist databases (amongst another few features not
 provided by the other tools):

 http://cyrus2dovecot.sw.fu-berlin.de/
 I've tried this one too and I'm stuck too :

 [EMAIL PROTECTED] testimap]# ./cyrus2dovecot -C /root/Mail/%u  -D 
 dovecot-mail/ mketchn

 cyrus2dovecot [mketchn]: (error) No Cyrus INBOX at: /root/Mail/mketchn

 [...]

 But I'm sure cyrus.header and cyrus.index exist.
 
 Are you really sure?  That is, the following commands don't complain?
 
   $ ls /root/Mail/mketchn/cyrus.header
   $ ls /root/Mail/mketchn/cyrus.index
 
 Holger

Sorry for the noise it was my fault : mkretchn and not mketchn :

./cyrus2dovecot -C /root/Mail/%u -S ../seendir/%u.seen -U
../seendir/%u.sub -D dovecot-mail/ mkretchn
cyrus2dovecot [mkretchn]: 7619 messages in 52 folders (168.4 MiB, 25 s)

great but I still have all my e-mail unseen (maybe mkretchn.seen is
desynchronized, because I' working on a copy of my account) ! However
reply, forward and TODO falgs (maybe more) are kept.


Timo,

Is it enough for you ? I'm not familiar with gdb...

Starting program: /root/testimap/cyrus2courier-1.5.ts/src/cyrus2courier
-vvv /root/Mail/ /root/Mail/dovecot-mail/ -e /root/seendir/m/ -d mkretchn
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
0x00628b1a in strcmp () from /lib/libc.so.6
(gdb) backtrace full
#0  0x00628b1a in strcmp () from /lib/libc.so.6
No symbol table info available.
#1  0x08048fab in setfolder_seenfile ()
No symbol table info available.
#2  0x08049f76 in cydump ()
No symbol table info available.
#3  0x0804ab26 in traverse ()
No symbol table info available.
#4  0x0804b399 in main ()
No symbol table info available.
(gdb) info registers
eax0x31 49
ecx0xbfce92eb   -1076981013
edx0x0  0
ebx0x5  5
esp0xbfce92bc   0xbfce92bc
ebp0xbfce9308   0xbfce9308
esi0xbfce92eb   -1076981013
edi0x8c271a8146960808
eip0x628b1a 0x628b1a strcmp+10
eflags 0x10202  [ IF RF ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0  0
gs 0x33 51
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



[Dovecot] cyrus2courrier mass migration

2008-09-22 Thread Mathieu Kretchner
Hello,

So we've chosen to use dovecot as our imap mail server and replace our
old cyrus server ! BUT :

I would like to do a conversion of my imap accounts (and keep all theirs
characteristics) from cyrus-imapd-2.2.12 in cyrus format to dovecot
1.1.3 in courrier format.

I've tried those 3 tools :

cyrus2courrier.1.5.ts
cyrus2courier-1.3z4
imapsync (works well but very slow and should not be a true solution)

But nothing is working to keep the seen/unseen flag (expect imapsync) !
I know my cyrus version is too recent but do you have any idea how
could I do this migration ?

A second problem is that I have 600 Go of imap account to migrate, if
you've any clue on how to do a migration without loosing a lot of
availability, I would be happy to read you !

Tanks in advance.
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] Cyrus vs Dovecot

2008-08-14 Thread Mathieu Kretchner

Pascal Gienger a écrit :

Mathieu Kretchner [EMAIL PROTECTED] wrote:


kbajwa a écrit :



Cyrus  =  0
Dovecot=  100



I guess you've right but I can't post this answer at Cyrus mailing list.
I'm just trying to have my own opinion of imap server and I already have
sarcastic answer on the cyrus mailing list !


Stop. What's this?

a) crossposing content to the dovecot mailing list
b) talking about sarcastic answers when users try to help you saying 
that migrating from an old cyrus release to a new one is easier then 
migrating to a new system?

c) many users here have described their running configuration to help you.
d) starting an advocacy war?

What are you trying to do?



Sorry but your manners on cyrus list have been disrespectful and hurt me...
I do not want an advocacy war so I'll stop here this discussion and 
focus on technical aspect.
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] Cyrus vs Dovecot

2008-08-14 Thread Mathieu Kretchner
Ed W a écrit :
 Mathieu Kretchner wrote:
 kbajwa a écrit :
 Hello:

 I think you are missing a point which is most important, i.e., what 
 type of
 support Cyrus vs Dovecot offers. In my experience:

 Cyrus  =  0
 Dovecot=  100


 My personal experience.

 Kirt

 I guess you've right but I can't post this answer at Cyrus mailing 
 list.  I'm just trying to have my own opinion of imap server and I 
 already have sarcastic answer on the cyrus mailing list !
 
 Reading the cyrus list I think the above quote might be a bit unfair and 
 accidently crossposted?
 
 In any case I only have experience of dovecot and it's used in some 
 larger installs such as the old webmail.us, now 11 (I believe).  I 
 think your installation is probably large enough that you might want to 
 do a trial migration of a couple of accounts and see if migration is a 
 problem.  

I'm trying to migrate my own account from cyrus to dovecot with the 2
tools which seems to fit the most my needs :

cyrus2courier :
Work fast and well but I must use cyrus2courier-1.5.ts and I have 2
problems with it : falg unseen (or seen if I want) for all e-mail / Sub
folders of Inbox are invisibles (I see them on the File System) !

imapsync :
Must add a transition configuration to dovecot in order to have user
passdb file (or master user) but once done it's ok and work correctly.
I've just tested a transition and I'm happy to see it keeps all flags
(seen/unseen too) and timestamp but as cyrus2courier, I can't see my
inbox sub folders although I could see them (full) on the File System?


 Certainly for all new servers I would STRONGLY recommend some 
 sort of virtualisation option (I use linux vservers, lots of other 
 options available).  This makes it fantasically easy to boot up (say) 
 three instances of your target software installation, perhaps all with 
 different configuration options and compare them easily.  I used this as 
 a solution to migrate from Courier and also recently when I was 
 migrating from 32bit to 64bit guests - essentially you spin up your new 
 guest, get it all ready, test it like made and then in a couple of 
 seconds you can down the live guest and boot up the new guest.  I 
 separate out all signficant data from the guest partition so try to keep 
 the actual installations under a couple hundred MB each (even that feels 
 bloated, but hey) and this makes it simple to boot up a copy of a guest 
 to test some change without having to copy too much
 
 I personally picked dovecot because I worried about the horror stories I 
 read about with cyrus.  However, both are clearly the two best options 
 available for opensource solutions right now and both are used in large 
 installations so you should be very happy with either.
 
 With regards to functionality it would appear (I don't use cyrus) that 
 cyrus has more admin tools to do stuff, but Dovecot is built to be 
 more hackable, for example you can easily run a script before each 
 (imap, etc) login and hence do some very advanced stuff through that 
 route.  Plugins also appear to be quite easy to write to extend dovecot 
 in new directions
 
 On the cyrus list they mentioned email retention policies.  Now some 
 people are going to say that this is really a job for the MTA 
 (postfix/sendmail/etc).  However, you have some plugins which might get 
 you partly towards solving that need, but nothing out of the box which 
 would give you a cast iron (stand up in court) kind of archiving 
 control.  However, you can get close I think
 
 Ed W


begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] Cyrus vs Dovecot

2008-08-14 Thread Mathieu Kretchner
 In any case I only have experience of dovecot and it's used in some 
 larger installs such as the old webmail.us, now 11 (I believe).  I 
 think your installation is probably large enough that you might want to 
 do a trial migration of a couple of accounts and see if migration is a 
 problem.  
 I'm trying to migrate my own account from cyrus to dovecot with the 2
 tools which seems to fit the most my needs :

 cyrus2courier :
 Work fast and well but I must use cyrus2courier-1.5.ts and I have 2
 problems with it : falg unseen (or seen if I want) for all e-mail / Sub
 folders of Inbox are invisibles (I see them on the File System) !

 imapsync :
 Must add a transition configuration to dovecot in order to have user
 passdb file (or master user) but once done it's ok and work correctly.
 I've just tested a transition and I'm happy to see it keeps all flags
 (seen/unseen too) and timestamp but as cyrus2courier, I can't see my
 inbox sub folders although I could see them (full) on the File System?
 
 If you serve Outlook Clients and use imapsynv check that they don't see all
 mails with the same delivery date. There's a script on the imapsync website
 that fixes this problem.
 
 [EMAIL PROTECTED]
 

We are using thunderbird here, but I'm glad to have your advice.

begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] Cyrus vs Dovecot

2008-08-14 Thread Mathieu Kretchner
 You need to subscribe to the folders on the new server.

I find it just a few time after my mail but anyway thank you for your
answer !

begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] Cyrus vs Dovecot

2008-08-13 Thread Mathieu Kretchner

kbajwa a écrit :

Hello:

I think you are missing a point which is most important, i.e., what type of
support Cyrus vs Dovecot offers. In my experience:

Cyrus  =  0
Dovecot=  100


My personal experience.

Kirt

I guess you've right but I can't post this answer at Cyrus mailing list. 
 I'm just trying to have my own opinion of imap server and I already 
have sarcastic answer on the cyrus mailing list !


regards
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] Cyrus vs Dovecot

2008-08-12 Thread Mathieu Kretchner

Charles Marcus a écrit :

On 8/11/2008, Mathieu Kretchner ([EMAIL PROTECTED]) wrote:

So here is my next environment :

how many mailbox ?
5000


with adequate hardware/RAM, no problem


how many users ?
6000


again - with adequate hardware/RAM, no problem



Ok it seems to be great, but wath do you consider to be an adequate 
hardware/RAM for this kind of environment ?



Concurrent access/usage will dictate if you need more than one server.


what kind of access ?
IMAP(s), POP3(s), webmail


no problem - webmail is separate of course, use whichever webmail app 
you like


yes, of course, this will be an other discussion :)




how many server ?
2 (how to configure this with dovecot ? hearthbeat ? is it better with 
1 big hardware ? )


Timo is working on integrated replication right now, but it does 
currently have proxy capability that I understand works well and makes 
this fairly painless, although I haven't used it...


But I'm not sure if you are talking about 2 REDUNDANT servers (for 
fail-over in the event the primary fails), or 2 active/load-balanced 
servers... proxy would work for load-balancing, and you can configure 
anything to use heartbeat, no?


I've explicitly post a fuzzy question to have this kind of answer ! 
Thanks I've a better global view of dovecot now.





Database user ?
LDAP


Here is an other problem : we don't have uid/gid stored in our LDAP 
database. Do we have to configure dovecot with a dovecot specific 
user/group ?




no problem


Mail DB ?
Cyrus maildir


You'll have to convert to standard maildir:

http://wiki.dovecot.org/Migration/Cyrus


Thanks for the url, I've already seen it before and the script 
cyrus2courrier seems good but we wonder why you didn't mention imapsync 
? (maybe because for mass migration we must have a clear password file?)





Capability ?
Sieve / Quota


On latest version (1.1.2 currently), no problem, but a newer/full 
rewrite to provide native sieve capability is in progress, which will 
provide much better control



High Performance without hacking conf files !


this is one of dovecots strongest points imo...



Indeed, we bench cyrus and dovecot from scratch and dovecot seems to be 
realy fast !


begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] Cyrus vs Dovecot

2008-08-12 Thread Mathieu Kretchner

Timo Sirainen a écrit :

On Aug 11, 2008, at 10:57 AM, Mathieu Kretchner wrote:


High Performance without hacking conf files !


http://wiki.dovecot.org/PerformanceTuning lists some of the things you 
can tune, but the defaults should be pretty good (although some default 
settings prefer reliability/security over performance).




Thanks, we'll try to test with those configurations!
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] Cyrus vs Dovecot

2008-08-12 Thread Mathieu Kretchner

Hi,

we are providing Mail-Service (POP3, IMAP; either TLS or SSL) to 22000 
students here at my university.


There are 2 machines running as active-passive cluster with DRBD to sync 
the maildata. Each box is a 4 core Intel(R) Xeon(R) CPU 5160 @ 3.00GHz 
with 8 gigs RAM.


After a tuneup for DRBD and upgrade to dovecot 1.1 average load is 
around 1.0.


HTH
Philipp


Impressive !

You'll be my contact for next few months :)

How many Megabyte does the datamail size ? (total and per user?)

Have you tune your conf file following this link : 
http://wiki.dovecot.org/PerformanceTuning ?


Do you have Mail data or index on a NFS server (NAS) ? Actually that the 
point of interest, we would like to take advantage of our NAS because it 
manages so well automatic snapshot and incremental backup that would be 
a really good security for data mail users. Does anybody have such IMAP 
architecture ?


PS : awesome mailing list... so reactive !
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



[Dovecot] Cyrus vs Dovecot

2008-08-11 Thread Mathieu Kretchner

First of all : forgive me for my poor English

Hello all,

I've to compare cyrus with dovecot for my work. Because these are the 
only solutions that could fit our needs.
Unfortunately I really don't know a lot about dovecot and I would like 
to have some of its assets.

Here are the properties of the versus table I've done :
dovecot cyrus
Installation:
Update:
Migration from cyrus :
Migration from dovecot :
functionalities :
Management :
Local Delivery :
availability :
Security :
Indexes management :
NFS compatibility :
Scalability :
Configuration :
interoperability :
Sieve filter :
Documentation :
Quota capability :
Performance :
IMAP capability :

So I know this can scared you, but If you have some asset for dovecot, 
It could be great and a lot more FAIR !!


Thank you in advance for your advice.
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] Cyrus vs Dovecot

2008-08-11 Thread Mathieu Kretchner

Marcin Gryszkalis a écrit :

On Monday of August 11 2008, Proskurin Kirill wrote:

And Timo help a lot for many people in this list.


Confirmed. Timo (and other users) doesn't leave any (non trivial) question 
unanswered, wiki is full of useful info, important bugs are fixed quick 
(follow mercurial repo) and new versions are released often - dovecot is one 
of best supported open source projects I know...


regards


Indeed It's a good point for us that this is a big project with a lot of 
involved developers  !


But, at present, we need to have a secure / reliable / fast with all the 
properties that must fit a real e-mail server in order to support our 
new e-mail IMAP architecture, so the question is (because we have only 2 
options)

Why should I choose dovecot instead of Cyrus ?

Thanks
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



[Dovecot] nombre de compte imap/ rapide rapide

2008-08-11 Thread Mathieu Kretchner
find . -type d -mindepth 2 -maxdepth 3 -print | sort | uniq | grep -vE 
user$ | wc -l
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] Cyrus vs Dovecot

2008-08-11 Thread Mathieu Kretchner

Charles Marcus a écrit :

On 8/11/2008, Mathieu Kretchner ([EMAIL PROTECTED]) wrote:

But, at present, we need to have a secure / reliable / fast with all
the properties that must fit a real e-mail server in order to support
our new e-mail IMAP architecture, so the question is (because we have
only 2 options) Why should I choose dovecot instead of Cyrus ?


Because it is secure / reliable / faster than cyrus - and *much* easier 
to install/configure?


You'll have more chance of a specific answer if you provide more 
specifics as to what 'properties that must fit a real email server' 
means to you.




So here is my next environment :

how many mailbox ?
5000

how many users ?
6000

what is in use now ?
Cyrus

what kind of access ?
IMAP(s), POP3(s), webmail

how many server ?
2 (how to configure this with dovecot ? hearthbeat ? is it better with 1 
big hardware ? )


Database user ?
LDAP

Mail DB ?
Cyrus maildir

Capability ?
Sieve / Quota

High Performance without hacking conf files !




begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard