Re: [Dovecot] constant Log synchronization error's

2013-07-16 Thread kim Bisgaard

Some more detail :-)

The previous system (i386) worked fine with dovecot 2.2.2 and pigeonhole 0.4.0 
packages also from Atrpms on Fedora 17.

I have downgraded to 2.1.16 and pigeonhole 0.3.5 for the time being.

Regards,
Kim


On 2013-07-14 12:18, Kim Bisgaard wrote:

Hi,

I am seeing constant Log synchronization errors in my logs. See later for an 
example.

This is dovecot 2.2.4, pigeonhole 0.4.1, and postfix 2.10.1 (with 
mailbox_command = /usr/libexec/dovecot/deliver) on a Fedora 19 system.

I am using packages from Atrpms so there are some patches applied - ask for 
details. The mailboxes have resently been moved from a i386
system. I have tried to manually do doveadm force-resync for all users, but 
the problem persists :-(

Here are an example from a user which does not use sieve:
11:45:48 Y dovecot: imap-login: Login: user=X, method=PLAIN, rip=62.199.61.123, 
lip=192.168.0.5, mpid=21531, TLS, session=XxDNm3XhdAA+xz17
11:45:52 Y dovecot: imap-login: Login: user=X, method=PLAIN, rip=62.199.61.123, 
lip=192.168.0.5, mpid=21541, TLS, session=UewQnHXhAwA+xz17
11:45:54 Y dovecot: imap(X): Error: mdbox 
/var/mail/X/mdbox/mailboxes/INBOX/Streams/dbox-Mails: map uidvalidity mismatch 
(0 vs 1283330954)
11:45:54 Y dovecot: imap(X): Disconnected: Internal error occurred. Refer to 
server log for more information. [2013-07-14 11:45:54] in=353
out=115680
11:45:54 Y dovecot: imap(X): Warning: fscking index file 
/var/mail/X/mdbox/storage/dovecot.map.index
11:45:54 Y dovecot: imap(X): Warning: mdbox /var/mail/X/mdbox/storage: 
rebuilding indexes
11:45:54 Y dovecot: imap(X): Disconnected: Disconnected in IDLE in=707 
out=437806
11:45:55 Y dovecot: imap(X): Error: Log synchronization error at 
seq=4,offset=156 for
/var/mail/X/mdbox/mailboxes/INBOX/Kvitteringer/dbox-Mails/dovecot.index: Ex 
tension header update points outside header size
11:45:55 Y dovecot: imap(X): Warning: fscking index file 
/var/mail/X/mdbox/mailboxes/INBOX/Kvitteringer/dbox-Mails/dovecot.index
11:45:55 Y dovecot: imap(X): Error: Log synchronization error at 
seq=9,offset=156 for
/var/mail/X/mdbox/mailboxes/INBOX/Streams/dbox-Mails/dovecot.index: Extensi on 
header update points outside header size
11:45:55 Y dovecot: imap(X): Warning: fscking index file 
/var/mail/X/mdbox/mailboxes/INBOX/Streams/dbox-Mails/dovecot.index
11:45:55 Y dovecot: imap(X): Error: Log synchronization error at 
seq=13,offset=156 for
/var/mail/X/mdbox/mailboxes/Facebook/dbox-Mails/dovecot.index: Extension h 
eader update points outside header size
11:45:55 Y dovecot: imap(X): Warning: fscking index file 
/var/mail/X/mdbox/mailboxes/Facebook/dbox-Mails/dovecot.index
11:45:55 Y dovecot: imap(X): Error: Log synchronization error at 
seq=5,offset=156 for
/var/mail/X/mdbox/mailboxes/Junk/dbox-Mails/dovecot.index: Extension header 
update points outside header size
11:45:55 Y dovecot: imap(X): Warning: fscking index file 
/var/mail/X/mdbox/mailboxes/Junk/dbox-Mails/dovecot.index
11:45:55 Y dovecot: imap(X): Error: Log synchronization error at 
seq=5,offset=156 for
/var/mail/X/mdbox/mailboxes/Sent/dbox-Mails/dovecot.index: Extension header 
update points outside header size
11:45:55 Y dovecot: imap(X): Warning: fscking index file 
/var/mail/X/mdbox/mailboxes/Sent/dbox-Mails/dovecot.index
11:45:55 Y dovecot: imap(X): Error: Log synchronization error at 
seq=4,offset=156 for
/var/mail/X/mdbox/mailboxes/Drafts/dbox-Mails/dovecot.index: Extension header 
update points outside header size
11:45:55 Y dovecot: imap(X): Warning: fscking index file 
/var/mail/X/mdbox/mailboxes/Drafts/dbox-Mails/dovecot.index
11:45:55 Y dovecot: imap(X): Error: Log synchronization error at 
seq=4,offset=156 for
/var/mail/X/mdbox/mailboxes/Archives/dbox-Mails/dovecot.index: Extension header 
update points outside header size
11:45:55 Y dovecot: imap(X): Warning: fscking index file 
/var/mail/X/mdbox/mailboxes/Archives/dbox-Mails/dovecot.index
11:45:55 Y dovecot: imap-login: Disconnected (no auth attempts in 1 secs): 
user=, rip=62.199.61.123, lip=192.168.0.5, TLS,
session=dz05nHXh9wA+xz17
11:45:55 Y dovecot: imap(X): Error: Log synchronization error at 
seq=4,offset=156 for
/var/mail/X/mdbox/mailboxes/Archives/2012/dbox-Mails/dovecot.index: Extension 
header update points outside header size
11:45:55 Y dovecot: imap(X): Warning: fscking index file 
/var/mail/X/mdbox/mailboxes/Archives/2012/dbox-Mails/dovecot.index
11:45:55 Y dovecot: imap-login: Login: user=X, method=PLAIN, rip=62.199.61.123, 
lip=192.168.0.5, mpid=21548, TLS, session=bAs5nHXhfgA+xz17
11:45:55 Y dovecot: imap(X): Error: Log synchronization error at 
seq=5,offset=156 for
/var/mail/X/mdbox/mailboxes/Trash/dbox-Mails/dovecot.index: Extension header 
update points outside header size
11:45:55 Y dovecot: imap(X): Warning: fscking index file 
/var/mail/X/mdbox/mailboxes/Trash/dbox-Mails/dovecot.index
11:45:55 Y dovecot: imap(X): Error: Log synchronization error at 
seq=4,offset=156 for

[Dovecot] dovecot-metadata-plugin v14 patches

2013-07-16 Thread Sergey Sidlyarenko

Please apply patches for dovecot-metadata-plugin v14.
1. dovecot-metadata-plugin-value_nil - fix plugin crach if entry-value 
== NULL (strlen(NULL) - segfault).
2. dovecot-metadata-plugin-utf7_support - add support metadata for UTF8 
mailfolder.


--
Sidlyarenko Sergey
https://github.com/lefoyerdiff -rNu dovecot-metadata-plugin-2a17386d4dbc/src/metadata-entry.c dovecot-metadata-plugin-new/src/metadata-entry.c
--- dovecot-metadata-plugin-2a17386d4dbc/src/metadata-entry.c	2013-05-14 12:13:53.0 +0400
+++ dovecot-metadata-plugin-new/src/metadata-entry.c	2013-07-14 03:01:37.709320981 +0400
@@ -151,7 +151,7 @@
 	if (entry == NULL)
 		return NULL;
 
-	return entry-value;
+	return entry-value == NULL ? NIL : entry-value;
 }
 
 enum metadata_entry_subject
diff -rNu dovecot-metadata-plugin-2a17386d4dbc/src/imap-metadata-plugin.c dovecot-metadata-plugin-new/src/imap-metadata-plugin.c
--- dovecot-metadata-plugin-2a17386d4dbc/src/imap-metadata-plugin.c	2013-05-14 12:13:53.0 +0400
+++ dovecot-metadata-plugin-new/src/imap-metadata-plugin.c	2013-07-14 21:57:07.653321000 +0400
@@ -34,6 +34,7 @@
 #include metadata-entry.h
 #include metadata-backend.h
 #include metadata-mail-user-module-private.h
+#include imap-utf7.h
 
 /* The IMAP Metadata plugin is an implementation of RFC 5464 */
 
@@ -332,12 +333,19 @@
 			}
 
 			const char *mailbox_name = mailbox_get_vname(box);
+			const char *mailbox_name_utf7 = NULL;
 			string_t *str = t_str_new(128);
 			str_append(str, * METADATA );
 #if DOVECOT_PREREQ(2,2)
-			imap_append_string(str, mailbox_name);
-#else
-			imap_quote_append_string(str, mailbox_name, false);
+			if (t_imap_utf8_to_utf7(mailbox_name, mailbox_name_utf7) == 0)
+imap_append_string(str, mailbox_name_utf7);
+			else
+imap_append_string(str, mailbox_name);
+#else
+			if (t_imap_utf8_to_utf7(mailbox_name, mailbox_name_utf7) == 0)
+imap_quote_append_string(str, mailbox_name_utf7, false);
+			else
+imap_quote_append_string(str, mailbox_name, false);
 #endif
 			str_append(str,  ();
 #if DOVECOT_PREREQ(2,2)
@@ -368,12 +376,19 @@
 	int num_entries = 0;
 
 	const char *mailbox_name = mailbox_get_vname(box);
+	const char *mailbox_name_utf7 = NULL;
 	string_t *str = t_str_new(128);
 	str_append(str, * METADATA );
 #if DOVECOT_PREREQ(2,2)
-	imap_append_string(str, mailbox_name);
-#else
-	imap_quote_append_string(str, mailbox_name, false);
+	if (t_imap_utf8_to_utf7(mailbox_name, mailbox_name_utf7))
+		imap_append_string(str, mailbox_name_utf7);
+	else
+		imap_append_string(str, mailbox_name);
+#else
+	if (t_imap_utf8_to_utf7(mailbox_name, mailbox_name_utf7))
+		imap_quote_append_string(str, mailbox_name_utf7, false);
+	else
+		imap_quote_append_string(str, mailbox_name, false);
 #endif
 	str_append(str,  ();
 
@@ -503,6 +518,12 @@
 		return true;
 	}
 
+	if (imap_utf7_is_valid(mailbox_name)) {
+		string_t *mailbox_name_utf8 = t_str_new(strlen(mailbox_name));
+		if (imap_utf7_to_utf8(mailbox_name, mailbox_name_utf8) == 0)
+			mailbox_name = str_c(mailbox_name_utf8);
+	}
+
 	const char **entry_names = NULL;
 	if (!imap_arg_get_astringlist(args[1], entry_names)) {
 		client_send_command_error(cmd, Cannot read entries - string or list of strings expected. (RFC 5464 Section 4.2));
@@ -727,6 +748,12 @@
 		return true;
 	}
 
+	if (imap_utf7_is_valid(mailbox_name)) {
+		string_t *mailbox_name_utf8 = t_str_new(strlen(mailbox_name));
+		if (imap_utf7_to_utf8(mailbox_name, mailbox_name_utf8) == 0)
+			mailbox_name = str_c(mailbox_name_utf8);
+	}
+
 	struct mailbox *box = NULL;
 	/* empty name - box=NULL - server scope */
 	if (*mailbox_name != '\0') {


Re: [Dovecot] Sieve vacation variables reference

2013-07-16 Thread Axel Luttgens
Le 16 juil. 2013 à 02:15, Simon a écrit :

 Hi There.
 
 [...]
 
 is there a definitive list of things like days, subject etc?

Hello Simon,

You might go to:

http://www.rfc-editor.org/search/rfc_search.php

and perform there a search on sieve.

For the vacation extension, there's document RFC 5230.
The overall working of sieve is described in RFC 5228.

HTH,
Axel




Re: [Dovecot] Sieve vacation variables reference

2013-07-16 Thread Simon
On Tue, Jul 16, 2013 at 6:53 PM, Axel Luttgens axelluttg...@swing.bewrote:

Hello Simon,

 You might go to:

 http://www.rfc-editor.org/search/rfc_search.php

 and perform there a search on sieve.

 For the vacation extension, there's document RFC 5230.
 The overall working of sieve is described in RFC 5228.


Thanks Axel - perfect.


Re: [Dovecot] courier to dovecot

2013-07-16 Thread Eugene

Hello,

Yes, I did that some years ago. Just create a working Dovecot installation 
and then copy the Maildirs (with correct permissions/owners etc). They 
probably have some additional housekeeping files from Courier, I believe 
Dovecot even can use some of them, but anyway they do no harm.


Best wishes
Eugene

-Original Message- 
From: J Gao

Sent: Tuesday, July 16, 2013 2:13 AM
To: dovecot@dovecot.org
Subject: [Dovecot] courier to dovecot

Hi, All,

I am new here and I need your advises. Here is my story:

I have a mail server like this:
- CentOS 5  32 bit (LAMP)
- Postfix 2.3
- Courier
- MailScanner
Courier use maildir to save emails in /home/vmail/virtual domain/user /


Now I want to build a new system on CentOS 6.4 64bit with postfix,
dovecot and migrate all user accounts and their emails.

I already installed CentOS 6.4, postfix and mysql. Also just installed
Dovecot v2.2.4 from the RPM. Now I am looking into how to
Is there a good instruction on how to do this kind of migration?

I still prefer using the maildir system.  If I just copy all users email
from old server to new dovecot user maildir, will dovecot see these
mails (and sub-folders) ? Do I need do anything extra?

Thanks in advance.

Gao

--
 __
   _|==|_
('')__/

--(`^^')

  (`^'^'`)
  `=='



Re: [Dovecot] Proxying improvements in v2.1.2

2013-07-16 Thread grundman
I have a configuration of two dovecot servers ( 192.168.251.134
192.168.251.135 ) with a director setup. 
I have 

passdb {
driver = static
args = proxy_maybe=y nopassword=y starttls=any-cert
}
}
passdb {
driver = pam
args=*
}
  userdb {
  driver = passwd
}

It seems that auth_proxy_self = 192.168.251.134 and even  auth_proxy_self
= 192.168.251.134 192.168.251.135 are ignored. I receive always
imap-login: Error: Proxying loops to itself: user=test1 ...

I have a dovecot version 2.2.2. 



--
View this message in context: 
http://dovecot.2317879.n4.nabble.com/Proxying-improvements-in-v2-1-2-tp988p43314.html
Sent from the Dovecot mailing list archive at Nabble.com.


[Dovecot] 2.2.4 - Some questions about and needing help with quota-status

2013-07-16 Thread Axel Luttgens
Help! I'm stuck. :-(

The config of my experimental setup appears at the end of this message; I'm 
providing hereafter some more info that may not be immediately obvious.

This is dovecot 2.2.4 with changesets 9091d0f2d971 and 2be295a0b64f.

All involved databases are sqlite ones.

passdb and userdb are devised so as to change usernames.
For example, I could have a user with addresses d...@oldexample.com, 
jo...@oldexample.com and john@example.com needing to be able to log in 
as jdoe or u123456; all db lookups for that user then end with name 
john.doe.

This is a single mail user setup (user/group dovemailer, uid/gid 999).

Service lmtp has been configured to run as that user; that required a slight 
adjustment at the auth-userdb socket level.

As a general rule, the quota dict appears to be correctly updated upon message 
arrivals and removals (thru lmtp, pop, imap), and to be correctly 
queried/interpreted by the various parts of the server.

For example, thru the userdb query, user john.doe has been given an even lower 
quota limit than the already low default defined for testings:

$ sudo doveadm quota get -u john.doe
Quota nameTypeValue Limit   %
Quota utilisateur STORAGE20 5 400
Quota utilisateur MESSAGE14 -   0

and is clearly recognized as being over-quota by lmtp:

$ telnet /_ROOT/var/run/dovecot/lmtp
Trying /_ROOT/var/run/dovecot/lmtp...
Connected to (null).
Escape character is '^]'.
220 almba.local Dovecot ready.
mail from:mary.j...@example.com
250 2.1.0 OK
rcpt to:john@example.com
250 2.1.5 OK
data
354 OK
Subject: test

.
552 5.2.2 john@example.com Quota exceeded (mailbox for user is 
full)

Note that both services config and dict are launched if they aren't running.

Since it has been previously seen that running quota-status as root comes with 
its own problems, and since it is a single user setup anyway, I'm trying to run 
it as dovemailer as well.

So, let's try to see what quota-status thinks about john.doe:

$ sudo -u _postfix telnet /_ROOT/var/spool/postfix/private/quota-policyd
Trying /_ROOT/var/spool/postfix/private/quota-policyd...
Connected to (null).
Escape character is '^]'.
Connection closed by foreign host.

Clearly, not much...
Looking in the log:

dovecot[10554]: quota-status: Fatal: Error reading configuration: 
net_connect_unix(/_ROOT/var/run/dovecot/config) failed: Permission denied

This thus raises a first question:

Q1. What makes lmtp and quota-status different? How does lmtp manage to fetch 
all needed info, while quota-status seems to require an access to the config 
socket?

Let's then slightly adjust dovecot.conf, in the hope to make quota-status happy:

service config {
unix_listener config {
group = dovemailer
mode = 0660
}
}

Q2. Should the above really be needed, wouldn't there be a better way?

I ask, because it seems to me that I'm starting to seriously lose the benefits 
of privilege separation...

Anyway, let's ask quota-status again:

$ sudo -u _postfix telnet /_ROOT/var/spool/postfix/private/quota-policyd
Password:
Trying /_ROOT/var/spool/postfix/private/quota-policyd...
Connected to (null).
Escape character is '^]'.
recipient=john@example.com
size=1

action=OK

^]
telnet quit
Connection closed.

In the log:

dovecot[11050]: auth: Debug: userdb out: USER   1   
john@example.comquota_rule=*:storage=5k
dovecot[11050]: quota-status: Debug: auth input: john@example.com 
quota_rule=*:storage=5k
dovecot[11050]: quota-status: Debug: Added userdb setting: 
plugin/quota_rule=*:storage=5k
dovecot[11050]: quota-status(john@example.com): Debug: Effective 
uid=999, gid=999, home=/_Mailstores/john.doe
dovecot[11050]: quota-status(john@example.com): Debug: Quota root: 
name=Quota utilisateur backend=dict args=john.doe:proxy::sql_quota
dovecot[11050]: quota-status(john@example.com): Debug: Quota rule: 
root=Quota utilisateur mailbox=* bytes=5120 messages=0
dovecot[11050]: quota-status(john@example.com): Debug: Quota grace: 
root=Quota utilisateur bytes=512 (10%)
dovecot[11050]: quota-status(john@example.com): Debug: dict quota: 
user=john.doe, uri=proxy::sql_quota, noenforcing=0
dovecot[11050]: quota-status(john@example.com): Debug: fs: 
root=/_Mailstores/john.doe/mboxes, index=, indexpvt=, control=, 
inbox=/_Mailstores/john.doe/mboxes/inbox, alt=

It is to be noted that the config server is now launched as expected, but that 
the dict server still isn't.

Trying a dirsize backend instead 

Re: [Dovecot] mail not reject when the mailbox is full (Dovecot-LDAP-Imap_quota)

2013-07-16 Thread Axel Luttgens
Le 15 juil. 2013 à 22:41, Victor Oñate a écrit :

 Hi list...
 
 this is my #dovecot -n
 thanks..
 
 # 1.2.15: /etc/dovecot/dovecot.conf
 # OS: Linux 2.6.32-5-mckinley ia64 Debian 6.0.5
 base_dir: /var/run/dovecot/
 [...]
 
 any idea is welcome

Hello Victor,

I don't remember exactly, but wasn't it needed with 1.x to explicitly enable 
the wanted plugins for each protocol section?
Or was the global mail_plugins setting already sufficient?

Axel



[Dovecot] reload without shutting imap connections down

2013-07-16 Thread Hajo Locke

Hello,

we have some problems with users who report connectionproblems to dovecot 
sometimes. According to the logs there are dovecot reloads at this times.

Seems that a reload also causes dovecot to shut all imapconnections down:

Jul 16 13:31:40 myhostname dovecot: master: Warning: SIGHUP received - 
reloading configuration
Jul 16 13:31:40 myhostname dovecot: imap: Server shutting down. 
bytes=251/675


I tried to reload by initscript or sending -HUP manually to pid, dovecot is 
shutting down imapconnections and i think this is the reason for users to 
report this problems with some clients.
This seems to be new with versions 2.x, i have some old 1.2.x dovecots 
running and cant find Server shutting down in their logs after reload.


I have still potential to reduce reloads, but cant avoid them completely. Is 
there a workaround?


Thanks,
Hajo 



Re: [Dovecot] reload without shutting imap connections down

2013-07-16 Thread Daniel Reinhardt
Hajo,

From the looks and sounds of things your Dovecot installation and
configuration is crashing without creating a dump.  What happens prior to
the aforementioned log entries?

Thanks,
Dan


On Tue, Jul 16, 2013 at 11:44 AM, Hajo Locke hajo.lo...@gmx.de wrote:

 Hello,

 we have some problems with users who report connectionproblems to dovecot
 sometimes. According to the logs there are dovecot reloads at this times.
 Seems that a reload also causes dovecot to shut all imapconnections down:

 Jul 16 13:31:40 myhostname dovecot: master: Warning: SIGHUP received -
 reloading configuration
 Jul 16 13:31:40 myhostname dovecot: imap: Server shutting down.
 bytes=251/675

 I tried to reload by initscript or sending -HUP manually to pid, dovecot
 is shutting down imapconnections and i think this is the reason for users
 to report this problems with some clients.
 This seems to be new with versions 2.x, i have some old 1.2.x dovecots
 running and cant find Server shutting down in their logs after reload.

 I have still potential to reduce reloads, but cant avoid them completely.
 Is there a workaround?

 Thanks,
 Hajo




-- 
Daniel Reinhardt
crypto...@cryptodan.net
http://www.cryptodan.net
301-875-7018(c)
410-455-0488(h)


Re: [Dovecot] reload without shutting imap connections down

2013-07-16 Thread Reindl Harald
where do you suspect a crash in Warning: SIGHUP received?
https://en.wikipedia.org/wiki/Unix_signal

SIGHUP is used for a lot of software to indicate reload
the configuration without completly restart a service

Am 16.07.2013 13:49, schrieb Daniel Reinhardt:
 From the looks and sounds of things your Dovecot installation and
 configuration is crashing without creating a dump.  What happens prior to
 the aforementioned log entries?
 
 On Tue, Jul 16, 2013 at 11:44 AM, Hajo Locke hajo.lo...@gmx.de wrote:
 
 Hello,

 we have some problems with users who report connectionproblems to dovecot
 sometimes. According to the logs there are dovecot reloads at this times.
 Seems that a reload also causes dovecot to shut all imapconnections down:

 Jul 16 13:31:40 myhostname dovecot: master: Warning: SIGHUP received -
 reloading configuration
 Jul 16 13:31:40 myhostname dovecot: imap: Server shutting down.
 bytes=251/675

 I tried to reload by initscript or sending -HUP manually to pid, dovecot
 is shutting down imapconnections and i think this is the reason for users
 to report this problems with some clients.
 This seems to be new with versions 2.x, i have some old 1.2.x dovecots
 running and cant find Server shutting down in their logs after reload.

 I have still potential to reduce reloads, but cant avoid them completely.
 Is there a workaround?



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] reload without shutting imap connections down

2013-07-16 Thread Hajo Locke

Hello,


From the looks and sounds of things your Dovecot installation and
configuration is crashing without creating a dump.  What happens prior to
the aforementioned log entries?


none unexpected behaviour. I run now with debugoptions. There is no evidence 
of problem.
some regular mailtraffic and some people are imap-ideling...then comes the 
reload and connections are shut down.

2.0.19 ist default of Ubuntu 12.10, but we also use 2.1.7 with same effect.
Older Machines with 1.2 dont show this behaviour.

Thanks,
Hajo 



Re: [Dovecot] Difference between using auth_realms and setting up virtual mailboxes in postfix?

2013-07-16 Thread Axel Luttgens
Le 12 juil. 2013 à 21:32, Gab IIpop a écrit :

 Hi, there is a possibility in the future that I might have to support
 multiple domain names(but using the same IP address). Postfix has something
 called 'virtual mailboxes' to help handle this.

Hello Gab,

Let's suppose you have a simple Postfix/Dovecot server and two domains.

With Postfix, this is basically handled by telling it that emails for 
recipients in those domains are to be delivered thru Dovecot's lda or lmtp.

On the Dovecot side, it is essentially a matter of having a mapping 
address-mailbox, so that lda or lmtp know where/how to store emails.


 But I also noticed that dovecot has a setting auth_realms where I can
 specify domains separated by a space.
 
 What is the relationship between the two?

Very distant...
Such realms may be used by some authentication mechanisms, and their names, 
even if often looking like domain names, may be quite arbitrary.

HTH,
Axel



Re: [Dovecot] reload without shutting imap connections down

2013-07-16 Thread mourik jan heupink

Hi,


we have some problems with users who report connectionproblems to
dovecot sometimes. According to the logs there are dovecot reloads at
this times.
Seems that a reload also causes dovecot to shut all imapconnections down:

Just a wile guess:
Could it have something to do with the shutdown_clients setting, 
perhaps..?


Re: [Dovecot] reload without shutting imap connections down

2013-07-16 Thread Hajo Locke

Hello,

Could it have something to do with the shutdown_clients setting, 
perhaps..?



arrgh, did not see there is a adequate setting. works good
default of shutdown_clients is yes, must be changed between versions?

Thanks,
Hajo


Re: [Dovecot] reload without shutting imap connections down

2013-07-16 Thread Reindl Harald


Am 16.07.2013 15:18, schrieb Hajo Locke:
 Could it have something to do with the shutdown_clients setting, perhaps..?
  
 arrgh, did not see there is a adequate setting. works good
 default of shutdown_clients is yes, must be changed between versions?

yes - depends of what you need and want

keep in mind that without this and in case of IMAP
with long running connections (over days maybe) the
existing connections are still running with the
old configuration and depending on the config changes
this may or may not be a problem



signature.asc
Description: OpenPGP digital signature


[Dovecot] Dovecot v2.2.4 (ebbe00999da8) doveadm crash

2013-07-16 Thread e-frog

Hello,

Current Dovecot v2.2 HG crashes using the following command:

$ doveadm mailbox status -A -t unseen 'virtual/unread'

Please see backtrace below and dovecot -n output attached.

Thanks,
e-frog

gdb /usr/bin/doveadm 24023
GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i686-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/doveadm...Reading symbols from 
/usr/lib/debug/usr/bin/doveadm...done.

done.
Attaching to program: /usr/bin/doveadm, process 24023

warning: unable to open /proc file '/proc/24023/status'

warning: unable to open /proc file '/proc/24023/status'
ptrace: No such process.
[New LWP 24023]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/i386-linux-gnu/libthread_db.so.1.
Core was generated by `doveadm mailbox status -A -t unseen virtual/unread'.
Program terminated with signal 11, Segmentation fault.
#0  i_stream_next_line (stream=0x0) at istream.c:382
382 istream.c: No such file or directory.
(gdb) bt full
#0  i_stream_next_line (stream=0x0) at istream.c:382
_stream = optimized out
pos = optimized out
#1  0xb754656b in auth_master_user_list_next (ctx=0xb91bfbd8) at 
auth-master.c:689

line = optimized out
#2  0xb7634a0b in mail_storage_service_all_next (ctx=0xb91c4ba8, 
username_r=username_r@entry=0xbf8e6630) at mail-storage-service.c:1260

__FUNCTION__ = mail_storage_service_all_next
#3  0xb7752d46 in doveadm_mail_cmd_get_next_user (ctx=0xb91be478, 
username_r=0xbf8e6630) at doveadm-mail.c:416

No locals.
#4  0xb7753e95 in doveadm_mail_all_users (wildcard_user=0x0, 
argv=0xb91ba1ec, ctx=0xb91be478) at doveadm-mail.c:368

ret = optimized out
input = {module = 0x0, service = 0xb77918f3 doveadm, username 
= 0xb91bf8a0 te...@local.lan, session_id = 0x0, local_ip = {family = 
0, u = {
  ip6 = {__in6_u = {__u6_addr8 = '\000' repeats 15 times, 
__u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, 
ip4 = {
s_addr = 0}}}, remote_ip = {family = 0, u = {ip6 = 
{__in6_u = {__u6_addr8 = '\000' repeats 15 times, __u6_addr16 = {0, 0, 
0, 0, 0, 0, 0, 0},
  __u6_addr32 = {0, 0, 0, 0}}}, ip4 = {s_addr = 0}}}, 
local_port = 0, remote_port = 0, userdb_fields = 0x0, flags_override_add 
= (unknown: 0),

  flags_override_remove = (unknown: 0), no_userdb_lookup = 0}
user_idx = 0
user = 0xb91bf8a0 te...@local.lan
error = 0x10 Address 0x10 out of bounds
#5  doveadm_mail_cmd (argv=0xb91ba1ec, argc=-1189371412, cmd=0xbf8e668c) 
at doveadm-mail.c:523

ctx = 0xb91be478
getopt_args = optimized out
ret = optimized out
c = optimized out
wildcard_user = 0x0
error = optimized out
#6  doveadm_mail_try_run (cmd_name=cmd_name@entry=0xb91ba200 mailbox, 
argc=5, argc@entry=6, argv=argv@entry=0xb91ba1dc) at doveadm-mail.c:608

cmd = 0xbf8e668c
#7  0xb7752903 in main (argc=6, argv=0xb91ba1dc) at doveadm.c:398
cmd_name = 0xb91ba200 mailbox
i = optimized out
quick_init = false
c = optimized out
(gdb)
# 2.2.4 (ebbe00999da8): /etc/dovecot/dovecot.conf
# OS: Linux 3.8.0-26-generic i686 Ubuntu 13.04
deliver_log_format = msgid=%m: from=%f: %$
dict {
  dictionary = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
imap_client_workarounds = tb-extra-mailbox-sep
imap_id_log = *
lda_mailbox_autocreate = yes
mail_gid = vmail
mail_home = /home/vmail/%Ld/%Ln
mail_location = mdbox:~/mdbox
mail_plugins = quota virtual fts fts_lucene
mail_uid = vmail
mailbox_list_index = yes
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date ihave 
vnd.dovecot.duplicate vnd.dovecot.pipe
namespace inbox {
  hidden = no
  inbox = yes
  list = yes
  location =
  prefix =
  separator = /
  subscriptions = yes
  type = private
}
namespace virtual {
  location = virtual:~/virtual
  prefix = virtual/
  separator = /
  subscriptions = no
  type = private
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  antispam_backend = spool2dir
  antispam_spam = Junk
  antispam_spool2dir_notspam = /home/vmail/learn-ham/%%020lu-%u-%%05luh
  antispam_spool2dir_spam = /home/vmail/learn-spam/%%020lu-%u-%%05lus
  antispam_trash = Trash
  fts = lucene
  fts_lucene = whitespace_chars=@.
  mail_log_events = delete undelete expunge copy 

Re: [Dovecot] courier to dovecot

2013-07-16 Thread Kelsey Cummings
On Mon, Jul 15, 2013 at 03:13:54PM -0700, J Gao wrote:
 Now I want to build a new system on CentOS 6.4 64bit with postfix, 
 dovecot and migrate all user accounts and their emails.

I assume you've already reviewed the migration pages on the wiki?

http://wiki2.dovecot.org/Migration/Courier

My only advice would be to consider dropping the INBOX. prefix - this
has some significant affects for the migration but will prevent
headaches from clients that don't handle namespaces correctly (like all
iOS devices.)  Or, maybe add a second hidden namespace for INBOX.
compatibility so existing clients that are hard coded hopefully wont
trip up on themselves too bad.

-- 
Kelsey Cummings - k...@corp.sonic.net  sonic.net, inc.
System Architect  2260 Apollo Way
707.522.1000  Santa Rosa, CA 95407