[Dovecot] Found bug on doing IMAP search with UTF8 chars

2012-09-07 Thread Weinreich, Nico
Hi!
 
I'm using Roundcube 0.9git as mail frontend and have installed Dovecot 2.1.7 on 
Debian Squeeze. When searching for mail via Roundcube and the keyword contains 
"special" chars (like german umlauts), then Dovecot seems to die when the 
folder does not contain a message which contains this keyword, i.e.
 
folder contains message /w subject "Dies ist eine Nachricht" => search for 
"Nachricht" => Roundcube shows that messages
folder contains message /w subject "Dies ist eine Nachricht" => search for 
"Nachricht123" => Roundcube shows error that no messages where found
folder contains message /w subject "Auflösung der Frage" => search for "Lösung" 
=> Roundcube shows that messages 
folder contains message /w subject "Auflösung der Frage" => search for 
"Lösung123" => Roundcube shows error saying: "Connection to storage server 
failed"
 
Looking into /var/log/mail.log shows:
 
Sep  5 11:43:32 mail dovecot: imap(a...@def.de): Panic: search key not utf8: 
L.sung123 dsr_sub_allocation
Sep  5 11:43:32 mail dovecot: imap(a...@def.de): Error: Raw backtrace: 
/usr/lib/dovecot/libdovecot.so.0(+0x4478a) [0
x7f065ba8e78a] -> /usr/lib/dovecot/libdovecot.so.0(+0x447d6) [0x7f065ba8e7d6] 
-> /usr/lib/dovecot/libdovecot.so.0(i_error+0) [0x7f065ba655ef
] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x9a3cb) [0x7f065bd6f3cb] -> 
/usr/lib/dovecot/libdovecot-storage.so.0(+0x9a8aa) [0x7f065bd6f8
aa] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x78641) [0x7f065bd4d641] -> 
/usr/lib/dovecot/libdovecot-storage.so.0(mail_search_args_fore
ach+0x3c) [0x7f065bd4d7bc] -> 
/usr/lib/dovecot/libdovecot.so.0(message_parse_header+0x29) [0x7f065ba78eb9] -> 
/usr/lib/dovecot/libdovecot-st
orage.so.0(+0x9a0cf) [0x7f065bd6f0cf] -> 
/usr/lib/dovecot/libdovecot-storage.so.0(+0x9b160) [0x7f065bd70160] -> 
/usr/lib/dovecot/libdovecot-
storage.so.0(index_storage_search_next_nonblock+0x48) [0x7f065bd706e8] -> 
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_search_next_nonbl
ock+0x27) [0x7f065bd51a07] -> dovecot/imap() [0x41668f] -> 
dovecot/imap(imap_search_start+0xd8) [0x416ad8] -> dovecot/imap(cmd_sort+0x1e6) 
[
0x40e636] -> dovecot/imap(command_exec+0x3d) [0x41157d] -> dovecot/imap() 
[0x4104fe] -> dovecot/imap(client_handle_input+0x135) [0x410805] -
> dovecot/imap(client_input+0x5f) [0x41112f] -> 
> /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x36) [0x7f065ba9a926] -> 
> /usr/lib/dovecot/
libdovecot.so.0(io_loop_handler_run+0x9f) [0x7f065ba9b95f] -> 
/usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x28) [0x7f065ba9a8c8] -> /usr/li
b/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7f065ba87053] -> 
dovecot/imap(main+0x2a4) [0x419354] -> /lib/libc.so.6(__libc_start_ma
in+0xfd) [0x7f065b706c8d] -> dovecot/imap() [0x408e79]

 
Huh? This error only occurs when I search for a keyword, that contains probably 
non-ASCII-US chars (like umlauts, euro sign EUR ...) and no message was found 
in that folder. When there is any message which contains this keyword, then 
Roundcube is fine and there error above cannot be found in mail.log. Can 
anybody confirm this behaviour?
 
Regards
 


[Dovecot] Wrong quota calculation

2012-09-07 Thread Cibest ML

Hi,
We've a strange quota behavior on our dovecot servers.
It seems that it's somehow doubling the real used storage (or could be 
something like twice the inbox size + size of other folders, hard to 
know for sure).
It was initial setup with the maildir++ system. Now it's been configured 
with dict and mysql table but the result is the same.


Dovecot version : 2.1.7 (from squeeze-backports). Maildir format is used
As example, let's use mail...@domain.com.
If I check in the quota table, I'll find :
- size : 697151354
- number of files : 1510

Now if I check the Maildir folder on the filesystem, I'll find :
- size : 34796
- number of files : 824 (using find . -type f|grep -v dovecot|wc -l, not 
100% accurate)


Another mail box
Reported by dovecot : 5034469861081
Filesystem : 248592000598

Does anyone has an idea of what could be possibly wrong. We've checked & 
double-checked everything and nothing seems to be wrong (no dsync used).


--
Regards
Sébastien


[Dovecot] best way to activate quota

2012-09-07 Thread Angel L. Mateo

Hello,

	I'm planning to activate quota control in dovecot, with maildir quota 
backend. I have about 70k users in my system directed to 4 backend 
servers (with a director to ensure that a user is always directed to the 
same server).


	I have tried to activate it in one of my nodes. The problem is that 
load of it has increase a lot, as much as the system was unusable 
(maildir is in nfs storage, with indexes in local disks).


What do you think is the best to activate it?

	I have think that I could use doveadm commands to calculate an initial 
quota (on low load periods) and then activate quota, hoping that 
although quota is not correct, it would be used. Should this work?





Re: [Dovecot] best way to activate quota

2012-09-07 Thread Robert Schetterer
Am 07.09.2012 12:11, schrieb Angel L. Mateo:
> Hello,
> 
> I'm planning to activate quota control in dovecot, with maildir
> quota backend. I have about 70k users in my system directed to 4 backend
> servers (with a director to ensure that a user is always directed to the
> same server).

sounds good, first look

> 
> I have tried to activate it in one of my nodes. The problem is that
> load of it has increase a lot, as much as the system was unusable
> (maildir is in nfs storage, with indexes in local disks).

that might not be the optimal storage solution

> 
> What do you think is the best to activate it?

yes ,until its better investigated, cause your systems shouldnt get unusable

> 
> I have think that I could use doveadm commands to calculate an
> initial quota (on low load periods) and then activate quota, hoping that
> although quota is not correct, it would be used. Should this work?
> 
> 

with 70 k users , you should be able to hire
professional help from timo and/or other dovecot specialists
however you ever will have to post your
config/logs/general-setup-big-picture if asking for help

-- 
Best Regards
MfG Robert Schetterer


Re: [Dovecot] Removing specific entry in user/auth cache

2012-09-07 Thread Angel L. Mateo

El 04/07/12 10:01, Timo Sirainen escribió:

On Fri, 2012-06-29 at 05:01 +0300, Timo Sirainen wrote:

and for v2.1 a bit kludgy way:

doveadm auth  []
doveadm auth cache flush []


Done: http://hg.dovecot.org/dovecot-2.1/rev/007bf0047ab0
http://hg.dovecot.org/dovecot-2.1/rev/1093c74f54af


Hello,

	After some time I have updated my system to 2.1.9 which includes this 
patch but I have doubts it is working.


	I have changed an attribute for one of my users (his home directory) so 
I run:


root@myotis33:~# doveadm auth cache flush 
2 cache entries flushed

	but, then, when I run "doveadm user " I've got the old 
information, not the updated one.


I had to reload dovecot to get the information correctly reloaded.


[Dovecot] Quota less mailbox with mdbox

2012-09-07 Thread Héctor Moreno Blanco
Good morning everyone,

I have a little doubt about setting a quotaless mailbox with mdbox.

Currently we have dovecot 2.0.10 with Maildir as mailbox system. We want to 
migrate to mdbox.

The migration is simple and easy, but there are some configuration settings we 
cannot set to work properly.

In our dovecot with Maildir we have the namespace INBOX with certain quota and 
another one without quota. This is working like a charm.

Dovecot.conf:

...
namespace {
  separator = .
  prefix =
  inbox = yes
  type = private
}
namespace {
  inbox = no
  location =
  prefix = INBOX.
  separator = .
  hidden = yes
  type = private
  list = no
}
namespace {
  location = maildir:%h/Maildir/_backup
  prefix = _backup.
  separator = .
  type = private
}
...
plugin/quota = maildir:_backup:ns=
...


Dovecot-ldap.conf:

...
pass_filter = (&(objectClass=qmailUser)(uid=%u)(accountActive=TRUE))
pass_attrs = uid=user,userPassword=password, mailQuotaSize=quota_rule=*:bytes=%$

user_attrs = mailMessageStore=home, mailQuotaSize=quota_rule=*:bytes=%$
user_filter = 
(&(objectClass=qmailUser)(|(mailAlternateAddress=%u)(mail=%u)(uid=%u))(accountActive=TRUE))
...



When migrated to mdbox and changing the configuration, we don't know how to get 
it work. We have also tried to follow the instructions from the wiki of 
dovecot2 without success.

Could anyone give us a clue please?

If additional information is needed, please let me know.


Thank you very much in advanced.

Kind regards.


[Descripción: C:\Documents and Settings\hhmb\Datos de 
programa\Microsoft\Firmas\logo_gmv.gif]

Héctor Moreno Blanco
División de Seguridad e Infraestructuras /
Security and Infrastructures Division

GMV
Isaac Newton, 11
P.T.M. Tres Cantos
E-28760 Madrid
Tel. +34 91 807 21 00
Fax +34 91 807 21 99
www.gmv.com 
[Descripción: C:\Documents and Settings\hhmb\Datos de 
programa\Microsoft\Firmas\icon_blog.gif]



[Descripción: C:\Documents and Settings\hhmb\Datos de 
programa\Microsoft\Firmas\icon_facebook.gif]



[Descripción: C:\Documents and Settings\hhmb\Datos de 
programa\Microsoft\Firmas\icon_twitter.gif]



[Descripción: C:\Documents and Settings\hhmb\Datos de 
programa\Microsoft\Firmas\icon_youtube.gif]






P Please consider the environment before printing this e-mail.

__
This message including any attachments may contain confidential 
information, according to our Information Security Management System,
 and intended solely for a specific individual to whom they are addressed.
 Any unauthorised copy, disclosure or distribution of this message
 is strictly forbidden. If you have received this transmission in error,
 please notify the sender immediately and delete it.

__
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
 puede contener informacion clasificada por su emisor como confidencial
 en el marco de su Sistema de Gestion de Seguridad de la 
Informacion siendo para uso exclusivo del destinatario, quedando 
prohibida su divulgacion copia o distribucion a terceros sin la 
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje 
 erroneamente, se ruega lo notifique al remitente y proceda a su borrado. 
Gracias por su colaboracion.

__

<><><><><>

[Dovecot] dsync mirror and sieve ?

2012-09-07 Thread Xavier Beaudouin
Hi there,

I am currently doing some extensive test with dsync, but it appear that :

dsync -u  maildir:/path/to/new/Maildir 

doesn't seems to sync sieves rules.

Is there a good way to sync sieves as well ? :p

Regards,
Xavier


[Dovecot] dovecot/log not running

2012-09-07 Thread Mark Hinch

I'm running 2.1.7 as downloaded/installed by Debian (and
then appropriately setup for my config, ...). It almost
works. I can send/receive email from thunderbird, squirrelmail, ...
However there are two anomalies:
1.  dovecot/log is not running. After restarting dovecot (and waiting
30 seconds), I have this in the log files:

Sep  6 17:42:16 hinch4 dovecot: master: Dovecot v2.1.7 starting up (core 
dumps disabled)
Sep  6 17:42:56 hinch4 dovecot: master: Error: service(anvil): Initial 
status notification not received in 30 seconds, killing the process
Sep  6 17:42:56 hinch4 dovecot: master: Error: service(log): Initial 
status notification not received in 30 seconds, killing the process
Sep  6 17:42:56 hinch4 dovecot: master: Error: service(ssl-params): 
Initial status notification not received in 30 seconds, killing the process
Sep  6 17:42:56 hinch4 dovecot: master: Error: service(log): child 31286 
killed with signal 9


After 30 seconds, a "ps -ef | grep dovecot" yields:

dovenull  1858 20223  0 18:56 ?00:00:00 dovecot/imap-login
root  1859 20223  0 18:56 ?00:00:00 dovecot/auth -w
mhinch1860 20223  0 18:56 ?00:00:00 dovecot/imap
root  1862 14520  0 18:56 pts/300:00:00 grep dovecot
root 20223 1  0 18:54 ?00:00:00 /usr/sbin/dovecot -c 
/etc/dovecot/dovecot.conf

dovenull 25144 20223  0 18:55 ?00:00:00 dovecot/imap-login
dovecot  25147 20223  0 18:55 ?00:00:00 dovecot/anvil
root 25148 20223  0 18:55 ?00:00:00 dovecot/config
dovecot  25161 20223  0 18:55 ?00:00:00 dovecot/auth
root 25174 20223  0 18:55 ?00:00:00 dovecot/ssl-params
mhinch   25208 20223  0 18:55 ?00:00:00 dovecot/imap

Seems like everything is there except dovecot/log.  ssl-params and anvil 
came back (?!?).

A  "doveadm log find" dumps this in the log:
Sep  6 18:52:24 hinch4 dovecot: doveadm: Debug: This is Dovecot's debug 
log (1346975543)
Sep  6 18:52:24 hinch4 dovecot: doveadm: This is Dovecot's info log 
(1346975543)
Sep  6 18:52:24 hinch4 dovecot: doveadm: Warning: This is Dovecot's 
warning log (1346975543)
Sep  6 18:52:24 hinch4 dovecot: doveadm: Error: This is Dovecot's error 
log (1346975543)
Sep  6 18:52:24 hinch4 dovecot: doveadm: Fatal: This is Dovecot's fatal 
log (1346975543)


However, further debugging that I try to do (see next problem) does not 
result in ANY
further input to the log files, even though I have all known logging 
turned on. So I *think*
that logging is not actually running. If I can get that started, then 
I'll take a crack at the

next problem myself ...

2. However, as long as I have your attention, my next problem is that it
seems like dovecot/imap-login hangs(?). After a few hours, I have 
something like:


# ps -ef | grep dovecot
dovecot530 31186  0 18:49 ?00:00:00 dovecot/auth
root 13277 31186  0 17:47 ?00:00:00 dovecot/config
dovenull 13664 31186  0 18:44 ?00:00:00 dovecot/imap-login
root 20207 14520  0 18:54 pts/300:00:00 grep dovecot
dovenull 27599 31186  0 18:45 ?00:00:00 dovecot/imap-login
dovenull 27601 31186  0 18:45 ?00:00:00 dovecot/imap-login
dovenull 27603 31186  0 18:45 ?00:00:00 dovecot/imap-login
dovenull 27607 31186  0 18:45 ?00:00:00 dovecot/imap-login
root 31186 1  0 17:42 ?00:00:00 /usr/sbin/dovecot -c 
/etc/dovecot/dovecot.conf

dovecot  31289 31186  0 17:42 ?00:00:00 dovecot/anvil

with exactly 100 imap-login processes. I'm the only meaningful user
on the machine (unless somebody is imap DoS-ing me), so this does not
make much sense. Obviously thunderbird is polling the machine and each
time is leaving around a imap-log process. As far as I can tell, thunderbird
successfully logs in (i.e., I get mail) though I can't be sure whether these
are successful logins or not (no logging!). What hangs imap-log 
processes for hours at a time?

After a while of course, dovecot will not start any new imap-login processes
so Thunderbird cannot get any more mail until I restart
dovecot. Then everything is OK for another 12 hours or so.

Ideas on either problem?

-Mark



Re: [Dovecot] Quota less mailbox with mdbox

2012-09-07 Thread Charles Marcus

On 2012-09-07 6:43 AM, Héctor Moreno Blanco  wrote:

Currently we have dovecot 2.0.10 with Maildir as mailbox system. We want to 
migrate to mdbox.


If you're going to migrate to mdbox, you'd be much better off if you 
upgraded to the latest 2.1.x...


Mdbox is much better supported in the current stable builds.

--

Best regards,

Charles



Re: [Dovecot] dsync mirror and sieve ?

2012-09-07 Thread Michael Grimm

Hi --

Xavier Beaudouin wrote:

I am currently doing some extensive test with dsync, but it appear 
that :


dsync -u  maildir:/path/to/new/Maildir

doesn't seems to sync sieves rules.

Is there a good way to sync sieves as well ? :p


I'm using Unison to sync my user's dedicated sievedirs.

Regards, Michael


Re: [Dovecot] pop3 migration

2012-09-07 Thread TeTeHacko
Probably on server side ... the problem was only on big mailboxes which is used
by IMAP, so there is no problem and we have already migrated all to dovecot. ;)
Thanks for your reply.

On 31.8.2012 15:46, Timo Sirainen wrote:
> On 23.8.2012, at 16.40, TeTeHacko wrote:
> 
>> I have problems with pop3 migration, the server disconect the dovesync when
>> fetching mails after 5 minutes with this error in server log:
>>
>> xx.xx.xx.xx   [28F4] 11:54:05 <<< RETR 6548
>> xx.xx.xx.xx   [28F4] 11:54:05 >>> +OK 47522 octets
>> xx.xx.xx.xx   [28F4] 11:54:05 <<< RETR 6549
>> xx.xx.xx.xx   [28F4] 11:54:05 >>> +OK 355289 octets
>> xx.xx.xx.xx   [28F4] 11:54:05 <<< RETR 6550
>> xx.xx.xx.xx   [28F4] 11:54:05 >>> +OK 9638 octets
>> xx.xx.xx.xx   [28F4] 11:54:05 <<< RETR 6551
>> xx.xx.xx.xx   [28F4] 11:54:05 >>> +OK 2188 octets
>> xx.xx.xx.xx   [28F4] 11:59:05 >>> -ERR Command unrecognized: ""
>> xx.xx.xx.xx   [28F4] 11:59:05 ***  6551 477693894 00:12:55 
>> ERROR
>> xx.xx.xx.xx   [28F4] 11:59:05 Disconnected
> 
> Looks like a bug. But in Dovecot POP3 client or the POP3 server? Apparently 
> either Dovecot sends an empty line after RETR or the server thinks Dovecot 
> sends it. Can you get the actual TCP traffic logs? and/or set 
> pop3c_rawlog_dir and see if it's there.
> 


[Dovecot] Disconnect users for a distinct period of time?

2012-09-07 Thread Michael Grimm
Hi --

Today, I've learned who to disable incoming mail delivery to dovecot (accepted 
by postfix), temporarily. Now, I would like to know if there is a way to make a 
"doveadm kick -A" a permanent disconnect until one would allow reconnects, 
again? This should be done *without* shutting down dovecot or *extensive* 
re-configuration. A "doveadm block -u  -m 'sorry: running maintenance, 
please, come back later'" alike tool/funtionality would be ideal. 

Background: I would like to avoid any modification of my user's maildirs by a 
running dovecot server while modifying maildir formats, mdbox_rotate_size 
setting, and alike, where I would need doveadm/dsnyc access to userdb. (I know 
there a ways to achieve this without downtimes, and I have already done so.)

I just want to be sure that I haven't overseen such a tool/functionality in the 
documentation. Did I or didn't I?

Thanks and regards,
Michael



Re: [Dovecot] Disconnect users for a distinct period of time?

2012-09-07 Thread Ralf Hildebrandt
* Michael Grimm :
> Hi --
> 
> Today, I've learned who to disable incoming mail delivery to dovecot 
> (accepted by postfix), temporarily. Now, I would like to know if there is a 
> way to make a "doveadm kick -A" a permanent disconnect until one would allow 
> reconnects, again? This should be done *without* shutting down dovecot or 
> *extensive* re-configuration. A "doveadm block -u  -m 'sorry: running 
> maintenance, please, come back later'" alike tool/funtionality would be 
> ideal. 
> 
> Background: I would like to avoid any modification of my user's maildirs by a 
> running dovecot server while modifying maildir formats, mdbox_rotate_size 
> setting, and alike, where I would need doveadm/dsnyc access to userdb. (I 
> know there a ways to achieve this without downtimes, and I have already done 
> so.)

I think this can be done with post-login scripting, where a script
checks if the user is allowed to login.
http://wiki.dovecot.org/PostLoginScripting

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de



[Dovecot] Dovecot 1.x POP3 to Dovecot 2.x POP3 mbox to Maildir best transfer program/method

2012-09-07 Thread Tim E.
I have a  box running Dovecot 1.x POP3 only server using mbox format. I want to 
port the mail over to a Centos 6.3 box running a Dovecot 2.x POP3 only server 
using Maildir format. The main thing I want to do is support 
XUID/read/unread status so the transfer is transparent for the end user. I have 
been able to achieve transfers from the mbox format to Maildir 
but loose the XUID/read/unread status so that the Thunderbird client always 
re-downloads all the mail as if it were new. Ive googled and I have tried the 
following:

dsync : dovecot 1.x server is too old and doesnt support the command?
mb2md.pl: transfers the mbox to maildir and creates file dovecot-uidlist but 
the Thunderbird client redownloads the files
virtualmin copy-mailbox: transfers the mailbox to Maildir but doesnt reproduce 
the dovecot indexes.

Any thoughts would be appreciated.
I would like to produce a howto of the process when I am done.

Re: [Dovecot] Disconnect users for a distinct period of time?

2012-09-07 Thread Eric Rostetter

Quoting Michael Grimm :


Hi --

Today, I've learned who to disable incoming mail delivery to dovecot  
(accepted by postfix), temporarily. Now, I would like to know if  
there is a way to make a "doveadm kick -A" a permanent disconnect  
until one would allow reconnects, again? This should be done  
*without* shutting down dovecot or *extensive* re-configuration. A  
"doveadm block -u  -m 'sorry: running maintenance, please, come  
back later'" alike tool/funtionality would be ideal.


What I've been doing so far, is I configure dovecot 2.1 with a deny-hosts
file (in auth-deny.conf.ext) and then I can append a name to that file
to block them, and remove them to allow them back in.  Since this file
is a simple text file with one username/address per line, it is very
easy to manage.

No idea if that would work for you, since your usage is for a different
reason than mine.

--
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Go Longhorns!



Re: [Dovecot] about postlogin in dovecot2

2012-09-07 Thread Daniel Parthey
bmalik wrote:
> when i login to the server using pop3s,   i see in the dovecot log;
> 
> @400050457dd9179c653c pop3-login: Info: Login: user=,
> method=DIGEST-MD5, rip=192.168.12.220, lip=192.168.12.115, mpid=87395, TLS,
> session= 
> 
> if i add my mail address into the users-with-forced-encryption file,
> i would not reach my account.
> 
> i get an error;
> @400050457dd9183f542c pop3(t...@byserver.net): Info: Post-login script
> denied access to user t...@byserver.net
> whereas i connect to the account via pop3s 
> if i remove my mail address from the users-with-forced-encryption
> there is no problem.
> 
> my postlogin_pop3.sh;
> #!/usr/local/bin/bash
> if [ "$SECURED" == "secure" ]
> then
>   :# handle secure connections here
> else
>   :# handle insecure connections here
>   if grep -q "$USER" in /usr/local/etc/dovecot/users-with-forced-encryption
>   then
> printf "* NO [ALERT] You are not allowed to connect without
> encryption\r\n"
> exit 0
>   fi
> fi
> exec "$@"
> ###
> there is also no problem related to SSL certificate 
> what can be the issue ? 

Can you log the value of "$SECURED" to a logfile (using "logger" tool),
and log a message in each of the conditional branches of your script,
so we can see which branch gets called?

Which error message do you get when you manually try to log into POP3S?

openssl s_client -connect ip:port
USER username
PASS password
QUIT

Regards
Daniel
-- 
https://plus.google.com/103021802792276734820


Re: [Dovecot] problem about pop3 using dovecot

2012-09-07 Thread Daniel Parthey
bmalik wrote:
> I upgraded dovecot from 1.1 to 2.1.8
> 
> pop3/imap works but i have a problem.
> 
> i use pop3 protocol on outlook 2010 for my account. and i set keep my mails
> on the server for 5 days or until i delete them.
> These settings were working old dovecot1.1. But when i upgraded it to 2.1.8.
> if i even delete a mail from outlook the server doesn't delete or old mails
> are not deleted.

Dovecot does not remove expunged mails from mdbox automatically.
You can run doveadm purge via cron to remove unreferenced messages:
http://wiki2.dovecot.org/Tools/Doveadm/Purge

Regards
Daniel
-- 
https://plus.google.com/103021802792276734820


Re: [Dovecot] Wrong quota calculation

2012-09-07 Thread Daniel Parthey
Cibest ML wrote:
> We've a strange quota behavior on our dovecot servers.
> It seems that it's somehow doubling the real used storage (or could
> be something like twice the inbox size + size of other folders, hard
> to know for sure).
> It was initial setup with the maildir++ system. Now it's been
> configured with dict and mysql table but the result is the same.
> 
> Dovecot version : 2.1.7 (from squeeze-backports). Maildir format is used
> As example, let's use mail...@domain.com.
> If I check in the quota table, I'll find :
> - size : 697151354
> - number of files : 1510
> 
> Now if I check the Maildir folder on the filesystem, I'll find :
> - size : 34796
> - number of files : 824 (using find . -type f|grep -v dovecot|wc -l,
> not 100% accurate)
> 
> Another mail box
> Reported by dovecot : 5034469861081
> Filesystem : 248592000598
> 
> Does anyone has an idea of what could be possibly wrong. We've
> checked & double-checked everything and nothing seems to be wrong
> (no dsync used).

What happens after quota resync? Does the quota change?

What happens to the "doveadm quota get" output after LMTP/LDA delivery
of a mail with a fixed-size, let's say one mail with 1 MB?

How does your setup look like? Mailbox+Director Proxy or only Mailboxes?

What is your doveconf -n output of mailbox (and possibly director)?

Regards
Daniel
-- 
https://plus.google.com/103021802792276734820


[Dovecot] Sieve command line tool status for Refiltering

2012-09-07 Thread Dieter Knopf
Hello,

is there any update about the sieve command line tool?

I really need some way to refilter my mails without loosings flags and without
moving all messages in a different folder.

This is possible with procmail via direct access to the file system
without the need
of getmail.

Thanks


Re: [Dovecot] Sieve command line tool status for Refiltering

2012-09-07 Thread Robert Schetterer
Am 08.09.2012 07:11, schrieb Dieter Knopf:
> Hello,
> 
> is there any update about the sieve command line tool?
> 
> I really need some way to refilter my mails without loosings flags and without
> moving all messages in a different folder.
> 
> This is possible with procmail via direct access to the file system
> without the need
> of getmail.
> 
> Thanks
> 

look
http://wiki2.dovecot.org/Pigeonhole/Sieve
there is some special sieve stuff to filter against external progs
i.e. procmail


-- 
Best Regards
MfG Robert Schetterer