Re: Initial development work on fts-elasticsearch

2015-01-18 Thread Michael Cramer

Zitat von Joshua Atkins :


Hi all,

I have started work on an ElasticSearch FTS plugin for Dovecot.

It's available now on GitHub at:

https://github.com/ascendantcom/fts-elasticsearch

Please note that it is still in heavy development right now. It
supports indexing, searching and expunging with some caveats (no
multi-mailbox search or attachments).

Pull requests, suggestions and bug reports very welcome!

Cheers,
Josh


nice work, but where can i found the fts-header files? dovecot-dev
package doesn't include it.


Re: last_login plugin with MySQL

2014-10-19 Thread Michael Cramer

Zitat von Luigi Rosa :


Gedalya wrote on 18/10/2014 17:36:


The code looks at shared/$last_login_key, so shared/last-login/username,
but your map says /shared/last-login/$user, note the leading slash! That's
probably all it is.



BINGO!

Now that we killed the mosters of this level, let's move to the next  
level.



Welcome to the SQL query level!

I was expecting an UPDATE...WHERE but I got this:

INSERT INTO mailbox (lastlogin,username) VALUES ('1413647370','username') ON
DUPLICATE KEY UPDATE lastlogin='1413647370'

This is not very useful if I want a `lastlogin` field of the `mailbox` table
updated on every login.




Ciao,
luigi

- --
/
+--[Luigi Rosa]--
\

For every human problem, there is a neat, simple solution;
and it is always wrong.


anybody knows how this can be achieved with postgresql, because 'ON  
DUPLICATE KEY UPDATE' syntax is mysql specific


Re: [Dovecot] v2.2.13 released

2014-05-12 Thread Michael Cramer

Zitat von Timo Sirainen :


http://dovecot.org/releases/2.2/dovecot-2.2.13.tar.gz
http://dovecot.org/releases/2.2/dovecot-2.2.13.tar.gz.sig

A few minor changes since v2.2.13.rc1, mainly making the Pigeonhole  
tests pass.


* Fixed a DoS attack against imap/pop3-login processes. If SSL/TLS
  handshake was started but wasn't finished, the login process
  attempted to eventually forcibly disconnect the client, but failed
  to do it correctly. This could have left the connections hanging
  arond for a long time. (Affected Dovecot v1.1+)

+ mdbox: Added mdbox_purge_preserve_alt setting to keep the file
  within alt storage during purge. (Should become enforced in v2.3.0?)
+ fts: Added support for parsing attachments via Apache Tika. Enable
  with: plugin { fts_tika = http://tikahost:9998/tika/ }
+ virtual plugin: Delay opening backend mailboxes until it's necessary.
  This requires mailbox_list_index=yes to work. (Currently IMAP IDLE
  command still causes all backend mailboxes to be opened.)
+ mail_never_cache_fields=* means now to disable all caching. This may
  be a useful optimization as doveadm/dsync parameter for some admin
  tasks which shouldn't really update the cache file.
+ IMAP: Return SPECIAL-USE flags always for LSUB command.
- pop3 server was still crashing in v2.2.12 with some settings
- maildir: Various fixes and improvements to handling compressed mails,
  especially when they have broken/missing S=sizes in filenames.
- fts-lucene, fts-solr: Fixed crash on search when the index contained
  duplicate entries.
- Many fixes and performance improvements to dsync and replication
- director was somewhat broken when there were exactly two directors
  in the ring. It caused errors about "weak users" getting stuck.
- mail_attachment_dir: Attachments with the last base64-encoded line
  longer than the rest wasn't handled correctly.
- IMAP: SEARCH/SORT PARTIAL was handled completely wrong in v2.2.11+
- acl: Global ACL file handling was broken when multiple entries
  matched the mailbox name. (Only the first entry was used.)


ubuntu ppa build for 12.04, 12.10, 13.10, 14.04 are available here:  
https://launchpad.net/~bigmichi1/+archive/dovecot


Re: [Dovecot] Where can I find a stable PPA?

2014-03-22 Thread Michael Cramer

Zitat von Daniel Reynolds :


Hello,

As the subject says, where can I find a stable PPA of Dovecot v2.2 for
Ubuntu 12.04?

I found this , but the
description says, "...I declare them as unstable."

For obvious reasons, I don't want to use this.

What should I do?

Thanks,

Daniel


you can use my repo here: https://launchpad.net/~bigmichi1/+archive/dovecot
there i provide the latest released versions without any modifications


Re: [Dovecot] panic with 2.2.10 and GETMETADATA

2014-03-16 Thread Michael Cramer

Zitat von Andreas Schulze :


Am 23.12.2013 17:40 schrieb Michael Cramer:

10-mail.conf:mail_attribute_dict =
file:/srv/vmail/dovecot/metadata/%d/%n/attributes
20-imap.conf:imap_metadata = yes

nothing more here but no no segfault.

I had also strange problems while using horde.
They went away after I cleaned *all* files refrerenced by mail_attribute_dict
and the "metadata Mailbox" created by horde.


#0  0x7f174b6bdf77 in raise () from /lib/x86_64-linux-gnu/libc.so.6

Oh, 32bit OS here.

Andreas


still have this segfault with 2.2.12

bt full

#0  0x7f83bc38ff77 in __GI_raise (sig=sig@entry=6) at  
../nptl/sysdeps/unix/sysv/linux/raise.c:56

resultvar = 0
pid = 370
selftid = 370
#1  0x7f83bc3935e8 in __GI_abort () at abort.c:90
save_stage = 2
act = {__sigaction_handler = {sa_handler = 0x189ddf0,  
sa_sigaction = 0x189ddf0}, sa_mask = {__val = {1, 0, 140203785202805,  
1, 0, 25773232, 140203775098088,
  140733279288321, 0, 0, 140203785230117, 0,  
140203776038656, 140203781939744, 25774392, 140733279287980}},  
sa_flags = 1024,

  sa_restorer = 0x7f83bc3a7134 <_IO_vfprintf_internal+18868>}
sigs = {__val = {32, 0 }}
#2  0x7f83bc77fb56 in default_fatal_finish (type=,  
status=status@entry=0) at failures.c:193
backtrace = 0x18944e8  
"/usr/lib/dovecot/libdovecot.so.0(+0x5eb60) [0x7f83bc77fb60] ->  
/usr/lib/dovecot/libdovecot.so.0(+0x5ec3e) [0x7f83bc77fc3e] ->  
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f83bc73ac6e] ->  
dovecot/im"...
#3  0x7f83bc77fc3e in i_internal_fatal_handler  
(ctx=0x7fff051ebc40, format=, args=) at  
failures.c:657

status = 0
#4  0x7f83bc73ac6e in i_panic (format=format@entry=0x422fa0 "file  
%s: line %d (%s): assertion failed: (%s)") at failures.c:267

ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0}
args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area =  
0x7fff051ebd30, reg_save_area = 0x7fff051ebc70}}
#5  0x00415c17 in client_command_free  
(_cmd=_cmd@entry=0x7fff051ebd58) at imap-client.c:634

cmd = 0x18cec90
client = 0x18ce0b0
state = CLIENT_COMMAND_STATE_WAIT_INPUT
__FUNCTION__ = "client_command_free"
#6  0x00415d8a in client_command_input (cmd=0x0) at imap-client.c:783
client = 0x18ce0b0
command = 
__FUNCTION__ = "client_command_input"
#7  0x00415e15 in client_command_input (cmd=0x18cec90) at  
imap-client.c:841

client = 0x18ce0b0
command = 
__FUNCTION__ = "client_command_input"
#8  0x00416115 in client_handle_next_command  
(remove_io_r=, client=0x18ce0b0) at imap-client.c:879

No locals.
#9  client_handle_input (client=client@entry=0x18ce0b0) at imap-client.c:891
_data_stack_cur_id = 3
remove_io = false
handled_commands = false
__FUNCTION__ = "client_handle_input"
#10 0x004164a2 in client_input (client=0x18ce0b0) at imap-client.c:933
cmd = 0x18b2518
output = 0x18ceae0
bytes = 92
__FUNCTION__ = "client_input"
#11 0x7f83bc78fc37 in io_loop_call_io (io=0x18cebb0) at ioloop.c:388
ioloop = 0x189b730
t_id = 2
#12 0x7f83bc7909c7 in io_loop_handler_run  
(ioloop=ioloop@entry=0x189b730) at ioloop-epoll.c:220

ctx = 0x189c3c0
list = 0x189ddf0
io = 
tv = {tv_sec = 29, tv_usec = 999219}
events_count = 
msecs = 
ret = 1
i = 0
call = 
__FUNCTION__ = "io_loop_handler_run"
#13 0x7f83bc78f7d8 in io_loop_run (ioloop=0x189b730) at ioloop.c:412
__FUNCTION__ = "io_loop_run"
#14 0x7f83bc73fe63 in master_service_run (service=0x189b5c0,  
callback=callback@entry=0x41edf0 ) at  
master-service.c:566

No locals.
#15 0x0040b06f in main (argc=1, argv=0x189b390) at main.c:400
set_roots = {0x426c60 , 0x0}
login_set = {auth_socket_path = 0x1893048 "\001",  
postlogin_socket_path = 0x0, postlogin_timeout_secs = 60, callback =  
0x41f1a0 ,
  failure_callback = 0x41eed0 ,  
request_auth_token = 1}

service_flags = 
storage_service_flags = 
username = 0x0
c = 


Re: [Dovecot] Warning: mysql: Query failed, retrying: Unknown column 'filter' in 'where clause'

2014-02-20 Thread Michael Cramer
This comes from your password query 'disablesieve-filter' is the  
result of 'AND disable%Ls' %Ls specifies the lowercase protocol name.
If you have these column in your database you need to set this in 'AND  
`disable%Ls` ' to allow a column name with the minus sign.


Zitat von Thomas Creutz :


Ok, today I did the debug test:

Feb 20 14:57:59 mail1 dovecot: auth: Debug: master in:
USER#0111#011acco...@domain.tld#011service=sieve-filter
Feb 20 14:57:59 mail1 dovecot: auth-worker(29572): Debug:
sql(acco...@domain.tld): SELECT email as user, maildir as home,
CONCAT('maildir:', maildir, '/Maildir') as mail, uid, gid,
CONCAT('*:storage=', quota, 'B') AS quota_rule, CONCAT(maildir,
'/.sieve') as sieve FROM mail_user WHERE (login = 'acco...@domain.tld'
OR email = 'acco...@domain.tld') AND disablesieve-filter = 'n'
Feb 20 14:57:59 mail1 dovecot: auth-worker(29572): Warning: mysql: Query
failed, retrying: Unknown column 'filter' in 'where clause'
Feb 20 14:57:59 mail1 dovecot: auth-worker(29572): Error:
sql(acco...@domain.tld): User query failed: Unknown column 'filter' in
'where clause'
Feb 20 14:57:59 mail1 dovecot: auth: Debug: userdb out: FAIL#0111

my dovecot-sql.conf holds this:
-
driver = mysql
connect = host=localhost dbname=dbispconfig user=ispconfig password=
default_pass_scheme = CRYPT

password_query = SELECT password FROM mail_user WHERE (login = '%u' OR
email = '%u') AND disable%Ls = 'n'
user_query = SELECT email as user, maildir as home, CONCAT('maildir:',
maildir, '/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B')
AS quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE
(login = '%u' OR email = '%u') AND disable%Ls = 'n'

iterate_query = SELECT email as user FROM mail_user
-

From where comes the disablesieve-filter?

Thomas

Am 18.02.2014 11:10, schrieb Michael Cramer:

you can try to turn on the debug logging so that you can see which
query is executed

mail_debug=yes
auth_debug=yes


Zitat von Thomas Creutz :


I would add some informations:

auth lookup works fine with doveadm:

$ doveadm auth lookup acco...@domain.tld
passdb: acco...@domain.tld
  user  : acco...@domain.tld

Any Ideas?

Thomas

Am 17.02.2014 16:31, schrieb Thomas Creutz:

Hi List,

I have a problem with dovecot 2.2.12 and sieve-filter call:

su -c 'sieve-filter -D -v -W -C -u acco...@domain.tld
/var/vmail/domain.tld/account/.sieve INBOX.Refilter' vmail

gives me

sieve-filter(vmail): Error: user acco...@domain.tld: Auth USER
lookup failed
sieve-filter(vmail): Fatal: Internal error occurred. Refer to server
log
for more information.

on log file I see this:

Feb 17 16:21:34 mail1 dovecot: auth-worker(8430): Warning: mysql: Query
failed, retrying: Unknown column 'filter' in 'where clause'
Feb 17 16:21:34 mail1 dovecot: auth-worker(8430): Error:
sql(acco...@domain.tld): User query failed: Unknown column 'filter' in
'where clause'

but I never used filter in dovecot:

grep -iR filter /etc/dovecot/

gives me no result (and yes the dir is right).

Any Idea whats wrong? I know it tells me, that the column is missing in
the Database - but why I need it? I also never see it documented
somewhere:

http://wiki2.dovecot.org/AuthDatabase/SQL
http://wiki2.dovecot.org/PasswordDatabase/ExtraFields

Thomas


--
MfG
Thomas Creutz

Topackt IT Solutions GmbH
Altspeyerer Weide 2
67346 Speyer
---
Mobil: 0151-11711132
Tel:   06232-31504-0
Fax:   06232-31504-240
---
Mail: t.cre...@topackt.com
WWW:  http://www.topackt.com
pgp:  https://ssl.topackt.com/pgp/
Xing: http://www.xing.com/go/invite/5799158.1aa7c1
---
Registergericht: Amtsgericht Ludwigshafen, HRB 53097
Geschäftsführer: Michael Nist


--
MfG
Thomas Creutz

Topackt IT Solutions GmbH
Altspeyerer Weide 2
67346 Speyer
---
Mobil: 0151-11711132
Tel:   06232-31504-0
Fax:   06232-31504-240
---
Mail: t.cre...@topackt.com
WWW:  http://www.topackt.com
pgp:  https://ssl.topackt.com/pgp/
Xing: http://www.xing.com/go/invite/5799158.1aa7c1
---
Registergericht: Amtsgericht Ludwigshafen, HRB 53097
Geschäftsführer: Michael Nist


Re: [Dovecot] Warning: mysql: Query failed, retrying: Unknown column 'filter' in 'where clause'

2014-02-18 Thread Michael Cramer
you can try to turn on the debug logging so that you can see which  
query is executed


mail_debug=yes
auth_debug=yes


Zitat von Thomas Creutz :


I would add some informations:

auth lookup works fine with doveadm:

$ doveadm auth lookup acco...@domain.tld
passdb: acco...@domain.tld
  user  : acco...@domain.tld

Any Ideas?

Thomas

Am 17.02.2014 16:31, schrieb Thomas Creutz:

Hi List,

I have a problem with dovecot 2.2.12 and sieve-filter call:

su -c 'sieve-filter -D -v -W -C -u acco...@domain.tld
/var/vmail/domain.tld/account/.sieve INBOX.Refilter' vmail

gives me

sieve-filter(vmail): Error: user acco...@domain.tld: Auth USER lookup failed
sieve-filter(vmail): Fatal: Internal error occurred. Refer to server log
for more information.

on log file I see this:

Feb 17 16:21:34 mail1 dovecot: auth-worker(8430): Warning: mysql: Query
failed, retrying: Unknown column 'filter' in 'where clause'
Feb 17 16:21:34 mail1 dovecot: auth-worker(8430): Error:
sql(acco...@domain.tld): User query failed: Unknown column 'filter' in
'where clause'

but I never used filter in dovecot:

grep -iR filter /etc/dovecot/

gives me no result (and yes the dir is right).

Any Idea whats wrong? I know it tells me, that the column is missing in
the Database - but why I need it? I also never see it documented somewhere:

http://wiki2.dovecot.org/AuthDatabase/SQL
http://wiki2.dovecot.org/PasswordDatabase/ExtraFields

Thomas


--
MfG
Thomas Creutz

Topackt IT Solutions GmbH
Altspeyerer Weide 2
67346 Speyer
---
Mobil: 0151-11711132
Tel:   06232-31504-0
Fax:   06232-31504-240
---
Mail: t.cre...@topackt.com
WWW:  http://www.topackt.com
pgp:  https://ssl.topackt.com/pgp/
Xing: http://www.xing.com/go/invite/5799158.1aa7c1
---
Registergericht: Amtsgericht Ludwigshafen, HRB 53097
Geschäftsführer: Michael Nist


Re: [Dovecot] questions about SETQUOTA

2014-01-24 Thread Michael Cramer

Zitat von Steffen Kaiser :


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 23 Jan 2014, Michael Cramer wrote:

i tried to setup my configuration to use the SETQUOTA command but  
the only thing i got is:


3 setquota "User quota" (storage 12345)
3 OK Setquota completed.

but nothing is changed in database.

i modified the password_query and the user_query to return the  
admin and userdb_admin field, both set to y.


all other changes that are done are like in the wiki  
http://wiki2.dovecot.org/Quota/Configuration


Please post your doveconf -n

- -- Steffen Kaiser
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUuIZ1nD1/YhP6VMHAQKVCwgAgS9VVyagJLyw/1EPb/IqpQDOx20yVnzM
nX9mu0mvVpuMrCS22VXsEssMQhD2xJ7X+0fL/3eeajXHUdcbAFwTnupndf37U90y
qdi0OGzorbgzltUYDXhPx1wwTPRUs62t4PB3Nbhca/zgT5JeH0Jy2L6q9+CXsYlV
l/rA111qGNptxjjtsPACbuquctXJ1bFf3IKKmLn2GbJCruZEbFm47m3YctN3FewC
tHaTP+3j9oVu+vKlFxTo7NL60lkxPfDzi4B2fPXI3eUvP/BTrAcwgVMbvMJp0DyT
U6Mb4il1ReSsgOdqa6iwp9vff1R+FoYMUz4E6wuR7f08pGMu8n8UIw==
=xlbQ
-END PGP SIGNATURE-



# 2.2.10 (6b8ae0ba5959): /etc/dovecot/dovecot.conf
# OS: Linux 3.11.0-15-generic x86_64 Ubuntu 13.10 ext4
auth_master_user_separator = *
auth_mechanisms = plain login
debug_log_path = /var/log/dovecot/debug.log
dict {
  acl = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
  expire = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
  quota = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_gid = 8
first_valid_uid = 8
imap_metadata = yes
info_log_path = /var/log/dovecot/info.log
last_valid_gid = 8
last_valid_uid = 8
log_path = /var/log/dovecot/error.log
mail_attribute_dict = file:/srv/vmail/dovecot/metadata/%d/%n/attributes
mail_gid = 8
mail_location =  
mdbox:/srv/vmail/dovecot/mail/%d/%n:INDEX=/srv/vmail/dovecot/indexes/shared/%d/%n
mail_plugins = quota zlib acl expire virtual fts fts_solr mail_log  
notify stats

mail_uid = 8
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 imapflags notify

mdbox_preallocate_space = yes
mdbox_rotate_size = 10 M
namespace {
  list = children
  location =  
mdbox:/srv/vmail/dovecot/mail/%%d/%%n:INDEX=/srv/vmail/dovecot/indexes/shared/%%d/%%n:INDEXPVT=/srv/vmail/dovecot/indexes/private/%d/%n/shared/%%u

  prefix = Shared/%%u/
  separator = /
  subscriptions = no
  type = shared
}
namespace inbox {
  inbox = yes
  location =
  mailbox Archive {
auto = subscribe
special_use = \Archive
  }
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox Spam {
auto = subscribe
special_use = \Junk
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  mailbox virtual/All {
auto = subscribe
special_use = \All
  }
  mailbox virtual/Flagged {
auto = subscribe
special_use = \Flagged
  }
  prefix =
  separator = /
  type = private
}
namespace virtual {
  location =  
virtual:/srv/vmail/dovecot/virtual:INDEX=/srv/vmail/dovecot/indexes/shared/%d/%n/virtual

  prefix = virtual/
  separator = /
}
passdb {
  args = /etc/dovecot/dovecot-sql-master.conf.ext
  driver = sql
  master = yes
  pass = yes
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
passdb {
  args = /etc/dovecot/passwd.masterusers
  driver = passwd-file
  master = yes
  pass = yes
}
plugin {
  acl = vfile:/srv/vmail/dovecot/acl:cache_secs=300
  acl_anyone = allow
  acl_shared_dict = proxy::acl
  expire = Trash
  expire1 = Trash/*
  expire2 = Spam
  expire_dict = proxy::expire
  fts = solr
  fts_autoindex = yes
  fts_solr = break-imap-search url=http://localhost:8080/solr/dovecot/
  quota = dict:User quota::proxy::quota
  quota_set = dict:proxy::quota
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  quota_warning3 = -storage=100%% quota-warning below %u
  sieve = /srv/vmail/dovecot/sieve/%d/%n/.dovecot.sieve
  sieve_default = /srv/vmail/dovecot/sieve/default.sieve
  sieve_dir = /srv/vmail/dovecot/sieve/%d/%n/user
  sieve_extensions = +notify +imapflags
  sieve_global_dir = /srv/vmail/dovecot/sieve/global
  stats_refresh = 30 secs
  stats_track_cmds = yes
  zlib_save = gz
  zlib_save_level = 6
}
postmaster_address = postmas...@domain.com
protocols = " imap lmtp sieve"
service auth-worker {
  user = $default_internal_user
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
  }
  unix_listener auth-userdb {
group = mail
mode = 0666
user = mail
  }
}
service dict {
  unix_listener dict {
group = mail
mode = 0660
user = mail
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
service quota-wa

[Dovecot] questions about SETQUOTA

2014-01-23 Thread Michael Cramer

hi,

i tried to setup my configuration to use the SETQUOTA command but the  
only thing i got is:


3 setquota "User quota" (storage 12345)
3 OK Setquota completed.

but nothing is changed in database.

i modified the password_query and the user_query to return the admin  
and userdb_admin field, both set to y.


all other changes that are done are like in the wiki  
http://wiki2.dovecot.org/Quota/Configuration


enabling debug doesn't show anything in debug.log



[Dovecot] panic with 2.2.10 and GETMETADATA

2013-12-23 Thread Michael Cramer

i have in my configs the following lines:

10-mail.conf:mail_attribute_dict =  
file:/srv/vmail/dovecot/metadata/%d/%n/attributes

20-imap.conf:imap_metadata = yes

when i test GETMETADATA with telnet i got a pannic in my error.log  
file and no attributes file in the given location is created


root@i920:/etc/dovecot/conf.d# telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE  
IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.

01 LOGIN tes...@domain.com *
01 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE  
IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS  
THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIA
L CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED  
I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN  
CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY
MOVE SEARCH=FUZZY NOTIFY METADATA COMPRESS=DEFLATE QUOTA ACL  
RIGHTS=texk] Logged in

02 GETMETADATA "*" (/shared/test)
Connection closed by foreign host.


in error.log i have these lines:
Dec 23 17:20:00 imap(tes...@domain.com): Panic: file imap-client.c:  
line 634 (client_command_free): assertion failed:  
(client->output_cmd_lock == NULL)
Dec 23 17:20:00 imap(tes...@domain.com): Error: Raw backtrace:  
/usr/lib/dovecot/libdovecot.so.0(+0x5e900) [0x7fb053bea900] ->  
/usr/lib/dovecot/libdovecot.so.0(+0x5e9de) [0x7fb053bea9de] ->  
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fb053ba5bfe] ->  
dovecot/imap() [0x415c17] -> dovecot/imap() [0x415d8a] ->  
dovecot/imap() [0x415e15] -> dovecot/imap(client_handle_input+0x115)  
[0x416115] -> dovecot/imap(client_input+0x72) [0x4164a2] ->  
/usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x27)  
[0x7fb053bfa8f7] ->  
/usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xd7)  
[0x7fb053bfb687] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x38)  
[0x7fb053bfa498] ->  
/usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13)  
[0x7fb053baadf3] -> dovecot/imap(main+0x2af) [0x40b06f] ->  
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)  
[0x7fb0537e5de5] -> dovecot/imap() [0x40b1cc]



gdb with bt full gives:
#0  0x7f174b6bdf77 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7f174b6c15e8 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x7f174baad8f6 in default_fatal_finish (type=,  
status=status@entry=0) at failures.c:193
backtrace = 0x1801040  
"/usr/lib/dovecot/libdovecot.so.0(+0x5e900) [0x7f174baad900] ->  
/usr/lib/dovecot/libdovecot.so.0(+0x5e9de) [0x7f174baad9de] ->  
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f174ba68bfe] ->  
dovecot/im"...
#3  0x7f174baad9de in i_internal_fatal_handler  
(ctx=0x7fffe2002eb0, format=, args=) at  
failures.c:657

status = 0
#4  0x7f174ba68bfe in i_panic (format=format@entry=0x423040 "file  
%s: line %d (%s): assertion failed: (%s)") at failures.c:267

ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0}
args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area =  
0x7fffe2002fa0, reg_save_area = 0x7fffe2002ee0}}
#5  0x00415c17 in client_command_free  
(_cmd=_cmd@entry=0x7fffe2002fc8) at imap-client.c:634

cmd = 0x183a2d0
client = 0x18396f0
state = CLIENT_COMMAND_STATE_WAIT_INPUT
__FUNCTION__ = "client_command_free"
#6  0x00415d8a in client_command_input (cmd=0x0) at imap-client.c:783
client = 0x18396f0
command = 
__FUNCTION__ = "client_command_input"
#7  0x00415e15 in client_command_input (cmd=0x183a2d0) at  
imap-client.c:841

client = 0x18396f0
command = 
__FUNCTION__ = "client_command_input"
#8  0x00416115 in client_handle_next_command  
(remove_io_r=, client=0x18396f0) at  
imap-client.c:879

No locals.
#9  client_handle_input (client=client@entry=0x18396f0) at imap-client.c:891
_data_stack_cur_id = 3
remove_io = false
handled_commands = false
__FUNCTION__ = "client_handle_input"
#10 0x004164a2 in client_input (client=0x18396f0) at imap-client.c:933
cmd = 0x181db70
output = 0x183a120
bytes = 35
__FUNCTION__ = "client_input"
#11 0x7f174babd8f7 in io_loop_call_io (io=0x183a1f0) at ioloop.c:388
ioloop = 0x1808730
t_id = 2
#12 0x7f174babe687 in io_loop_handler_run  
(ioloop=ioloop@entry=0x1808730) at ioloop-epoll.c:220

ctx = 0x18093c0
list = 0x180adf0
io = 
tv = {tv_sec = 1799, tv_usec = 999100}
events_count = 
msecs = 
ret = 1
i = 0
call = 
__FUNCTION__ = "io_loop_handler_run"
#13 0x7f174babd498 in io_loop_run (ioloop=0x1808730) at ioloop.c:412
__FUNCTION__ = "io_loop_run"
#14 0x7f174ba6ddf3 in master_service_run (service=0x18085c0,  
callback=callback@en

Re: [Dovecot] v2.2.10 released

2013-12-23 Thread Michael Cramer

Zitat von Timo Sirainen :


http://dovecot.org/releases/2.2/dovecot-2.2.10.tar.gz
http://dovecot.org/releases/2.2/dovecot-2.2.10.tar.gz.sig

I've been really busy the last few months, as I guess people in  
Dovecot mailing list have seen since I haven't been very responsive.  
There are at least some dsync bugs I haven't had time to look into  
yet. The busyness probably continues for a while more, but the next  
year is looking much better for me and for Dovecot in general. We're  
planning to hire a few more Dovecot coders at some point, so if  
you're interested send me an email. :)


+ auth: passdb/userdb dict rewrite to support much more complex
  setups. See doc/example-config/dovecot-dict-auth.conf.ext.
  The old settings will continue to work.
+ auth: Added userdb result_success/failure/tempfail and skip
  settings, similar to passdb's. See
  http://wiki2.dovecot.org/UserDatabase
+ imap: Implemented SETQUOTA command for admin user when quota_set is
  configured. See http://master.wiki2.dovecot.org/Quota/Configuration
+ quota: Support "*" and "?" wildcards in mailbox names in  
quota_rules
+ mysql: Added ssl_verify_server_cert=no|yes parameter. This  
currently
  defaults to "no" to make sure nothing breaks, but likely  
will become

  "yes" in Dovecot v2.3.
+ ldap: Added blocking=yes setting to use auth worker processes for
  ldap lookups. This is a workaround for now to be able to  
use multiple

  simultaneous LDAP connections.
+ pop3c+dsync performance improvements
- quota-status: quota_grace was ignored
- ldap: Fixed memory leak with auth_bind=yes and without
  auth_bind_userdn.
- imap: Don't send HIGHESTMODSEQ anymore on SELECT/EXAMINE when
  CONDSTORE/QRESYNC has never before been enabled for the mailbox.
- imap: Fixes to handling mailboxes without permanent modseqs.
  (When [NOMODSEQ] is returned by SELECT, mainly with in-memory
  indexes.)
- imap: Various fixes to METADATA support.
- stats plugin: Processes that only temporarily dropped privileges
  (e.g. indexer-worker) may have been logging errors about not being
  able to open /proc/self/io.


thanks for the new release timo, i updated my ubuntu ppa  
(https://launchpad.net/~bigmichi1/+archive/dovecot) for 12.04, 12.10,  
13.04 and 13.10 if somebody needs the prebuild packages




Re: [Dovecot] warning from managesieve

2013-12-12 Thread Michael Cramer

after adding a dir the warning is gone, thx, i think i misread the wiki page

Zitat von Steffen Kaiser :


On Thu, 12 Dec 2013, Michael Cramer wrote:


sieve = /srv/vmail/sieve/%d/%n/.dovecot.sieve
sieve_dir = /srv/vmail/sieve/%d/%n/


add a subdir to sieve_dir

- --
Steffen Kaiser






Re: [Dovecot] warning from managesieve

2013-12-12 Thread Michael Cramer

# 2.2.9 (5c170e0786f3): /etc/dovecot/dovecot.conf
# OS: Linux 3.11.0-14-generic x86_64 Ubuntu 13.10 ext4
auth_master_user_separator = *
auth_mechanisms = plain login
debug_log_path = /var/log/dovecot/debug.log
dict {
  acl = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
  expire = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
  quota = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_gid = 8
first_valid_uid = 8
info_log_path = /var/log/dovecot/info.log
last_valid_gid = 8
last_valid_uid = 8
log_path = /var/log/dovecot/error.log
mail_gid = 8
mail_location =  
mdbox:/srv/vmail/mail/%d/%n:INDEX=/srv/vmail/indexes/shared/%d/%n

mail_plugins = quota zlib acl expire virtual fts fts_solr mail_log notify
mail_uid = 8
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 imapflags notify

mdbox_preallocate_space = yes
mdbox_rotate_size = 10 M
namespace {
  list = children
  location =  
mdbox:/srv/vmail/mail/%%d/%%n:INDEX=/srv/vmail/indexes/shared/%%d/%%n:INDEXPVT=/srv/vmail/indexes/private/%d/%n/shared/%%u

  prefix = Shared/%%u/
  separator = /
  subscriptions = no
  type = shared
}
namespace inbox {
  inbox = yes
  location =
  mailbox Archive {
auto = subscribe
special_use = \Archive
  }
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox Spam {
auto = subscribe
special_use = \Junk
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  mailbox virtual/All {
auto = subscribe
special_use = \All
  }
  mailbox virtual/Flagged {
auto = subscribe
special_use = \Flagged
  }
  prefix =
  separator = /
  type = private
}
namespace virtual {
  location =  
virtual:/srv/vmail/virtual:INDEX=/srv/vmail/indexes/shared/%d/%n/virtual

  prefix = virtual/
  separator = /
}
passdb {
  args = /etc/dovecot/dovecot-sql-master.conf.ext
  driver = sql
  master = yes
  pass = yes
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
passdb {
  args = /etc/dovecot/passwd.masterusers
  driver = passwd-file
  master = yes
  pass = yes
}
plugin {
  acl = vfile:/srv/vmail/acl:cache_secs=300
  acl_anyone = allow
  acl_shared_dict = proxy::acl
  expire = Trash
  expire1 = Trash/*
  expire2 = Spam
  expire_dict = proxy::expire
  fts = solr
  fts_autoindex = yes
  fts_solr = break-imap-search url=http://localhost:28080/solr/dovecot/
  quota = dict:User quota::proxy::quota
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  quota_warning3 = -storage=100%% quota-warning below %u
  sieve = /srv/vmail/sieve/%d/%n/.dovecot.sieve
  sieve_default = /srv/vmail/sieve/default.sieve
  sieve_dir = /srv/vmail/sieve/%d/%n/
  sieve_extensions = +notify +imapflags
  sieve_global_dir = /srv/vmail/sieve/global
  zlib_save = gz
  zlib_save_level = 6
}
postmaster_address = postmas...@domain.com
protocols = " imap lmtp sieve"
service auth-worker {
  user = $default_internal_user
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
  }
  unix_listener auth-userdb {
group = mail
mode = 0666
user = mail
  }
}
service dict {
  unix_listener dict {
group = mail
mode = 0660
user = mail
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
user = mail
  }
  user = dovecot
}
ssl_cert =   mail_plugins = quota zlib acl expire virtual fts fts_solr mail_log  
notify sieve

}
protocol imap {
  mail_plugins = quota zlib acl expire virtual fts fts_solr mail_log  
notify imap_quota imap_acl imap_zlib

}


same warning is shown when using telnet and upload a script


Zitat von Stephan Bosch :


On 12/12/2013 10:17 AM, Michael Cramer wrote:

when .dovecot.sieve is a symlink (which it is in my case) a warning is
written to the error log file, but it still works.


Dec 12 10:02:33 managesieve(tes...@domain.com): Warning:
sieve-storage: Active sieve script symlink
/srv/vmail/sieve/domain.com/tester/.dovecot.sieve is broken:
invalid/unknown path to storage (points to ingo.sieve).


root@i920:/srv/vmail/sieve/domain.com/tester# ll
insgesamt 20
drwx--  3 mail mail 4096 Dez 12 10:03 ./
drwx-- 15 mail mail 4096 Dez 12 10:02 ../
lrwxrwxrwx  1 mail mail   10 Dez 12 10:02 .dovecot.sieve -> ingo.sieve
-rw---  1 mail mail 1575 Dez 12 10:03 .dovecot.svbin
-rw---  1 mail mail 2457 Dez 12 10:02 ingo.sieve
drwx--  2 mail mail 4096 Dez 12 10:02 tmp/




What is your configuration? Show output from `dovecot -n`.

Regards,

Stephan.





[Dovecot] warning from managesieve

2013-12-12 Thread Michael Cramer
when .dovecot.sieve is a symlink (which it is in my case) a warning is  
written to the error log file, but it still works.



Dec 12 10:02:33 managesieve(tes...@domain.com): Warning:  
sieve-storage: Active sieve script symlink  
/srv/vmail/sieve/domain.com/tester/.dovecot.sieve is broken:  
invalid/unknown path to storage (points to ingo.sieve).



root@i920:/srv/vmail/sieve/domain.com/tester# ll
insgesamt 20
drwx--  3 mail mail 4096 Dez 12 10:03 ./
drwx-- 15 mail mail 4096 Dez 12 10:02 ../
lrwxrwxrwx  1 mail mail   10 Dez 12 10:02 .dovecot.sieve -> ingo.sieve
-rw---  1 mail mail 1575 Dez 12 10:03 .dovecot.svbin
-rw---  1 mail mail 2457 Dez 12 10:02 ingo.sieve
drwx--  2 mail mail 4096 Dez 12 10:02 tmp/




[Dovecot] error with xz compression

2013-12-12 Thread Michael Cramer
i have enabled the zlib plugin with xz compression but on some new  
mails i got now a segfault and the following lines in dovecot error.log


Dec 12 08:51:23 imap(tes...@domain.com): Error:  
lzma.read(/srv/vmail/mail/domain.com/root/storage/m.3): unexpected EOF  
at 136004
Dec 12 08:51:23 imap(tes...@domain.com): Error:  
read(zlib(/srv/vmail/mail/domain.com/root/storage/m.3)) failed:  
Invalid argument (uid=2985)
Dec 12 08:51:23 imap(tes...@domain.com): Error: mail parser:  
read(zlib(/srv/vmail/mail/domain.com/root/storage/m.3),  
box=Shared/r...@domain.com) failed: Invalid argument
Dec 12 08:52:33 indexer-worker(tes...@domain.com): Error:  
lzma.read(/srv/vmail/mail/domain.com/tester/storage/m.41): unexpected  
EOF at 4913758


the problem is that the mails can't be shown. this happens not with  
every mail i also got new mails that can be shown without any problem.  
i was not able to produce a coredump




Re: [Dovecot] Ubuntu packages and broken link in docs

2013-12-11 Thread Michael Cramer

 these are build from the sources that are automatically build for the
debian system mentioned in the
wiki http://wiki2.dovecot.org/PrebuiltBinaries#Automatically_Built_Packages
(only difference to these are some changes to the build file for version
numbers and the changelog file). only building official releases named
...~auto0 packages

Zitat von Alan McGinlay - SICS :


On 2013-12-11 13:00, Michael Cramer wrote:

i uploaded 2.2.9 for ubuntu 12.04 LTS, 12.10, 13.04 and 13.10 to the
ppa

Zitat von mich...@bigmichi1.de:

Zitat von Alan McGinlay - SICS 

Hi,

Two things:

1. Does anyone know of a good PPA with updated packages of Dovecot for
Ubuntu? "For the latest Dovecot for latest Ubuntu LTS see Xiaoka APT
Repository. (Outdated. Could someone provide a ppa for latest stable
Dovecot, please?)"

2. On the http://wiki2.dovecot.org/PrebuiltBinaries#Ubuntu page there
is a link to a supposedly outdated PPA, the ppa page now redirects to
an ad for the guys services so should probably be removed.

/Alan

Hi,

In my ppa https://launchpad.net/~bigmichi1 i provide the latest version
of dovecot for the latest version of Ubuntu. It is build after a
official release.


Thanks! I will give it a try on a dev server. Does it follow the debian
split config files layout?  Also, which sources are the debs built from?
I would like to try building it my self for comparison.


Re: [Dovecot] Ubuntu packages and broken link in docs

2013-12-11 Thread Michael Cramer

 these are build from the sources that are automatically build for the
debian system mentioned in the
wiki http://wiki2.dovecot.org/PrebuiltBinaries#Automatically_Built_Packages
(only difference to these are some changes to the build file for version
numbers and the changelog file). only building official releases named
...~auto0 packages

Zitat von Alan McGinlay - SICS :


On 2013-12-11 13:00, Michael Cramer wrote:

i uploaded 2.2.9 for ubuntu 12.04 LTS, 12.10, 13.04 and 13.10 to the
ppa

Zitat von mich...@bigmichi1.de:

Zitat von Alan McGinlay - SICS 

Hi,

Two things:

1. Does anyone know of a good PPA with updated packages of Dovecot for
Ubuntu? "For the latest Dovecot for latest Ubuntu LTS see Xiaoka APT
Repository. (Outdated. Could someone provide a ppa for latest stable
Dovecot, please?)"

2. On the http://wiki2.dovecot.org/PrebuiltBinaries#Ubuntu page there
is a link to a supposedly outdated PPA, the ppa page now redirects to
an ad for the guys services so should probably be removed.

/Alan

Hi,

In my ppa https://launchpad.net/~bigmichi1 i provide the latest version
of dovecot for the latest version of Ubuntu. It is build after a
official release.


Thanks! I will give it a try on a dev server. Does it follow the debian
split config files layout?  Also, which sources are the debs built from?
I would like to try building it my self for comparison.


Re: [Dovecot] Ubuntu packages and broken link in docs

2013-12-11 Thread Michael Cramer

 i uploaded 2.2.9 for ubuntu 12.04 LTS, 12.10, 13.04 and 13.10 to the
ppa

Zitat von mich...@bigmichi1.de:


Zitat von Alan McGinlay - SICS 


Hi,

Two things:

1. Does anyone know of a good PPA with updated packages of Dovecot for
Ubuntu? "For the latest Dovecot for latest Ubuntu LTS see Xiaoka APT
Repository. (Outdated. Could someone provide a ppa for latest stable
Dovecot, please?)"

2. On the http://wiki2.dovecot.org/PrebuiltBinaries#Ubuntu page there
is a link to a supposedly outdated PPA, the ppa page now redirects to
an ad for the guys services so should probably be removed.

/Alan


Hi,

In my ppa https://launchpad.net/~bigmichi1 i provide the latest version
of dovecot for the latest version of Ubuntu. It is build after a
official release.

Von meinem Sony Xperia™-Smartphone gesendet
Alan McGinlay - SICS  schrieb:


Re: [Dovecot] Connection closed by foreign host.

2013-06-16 Thread Michael Cramer

Zitat von Timo Sirainen :


On 13.6.2013, at 9.16, Michael Cramer  wrote:


3 LIST () "" (*)
Connection closed by foreign host.

..

now the full conf

# 2.2.2 (45399357008a): /etc/dovecot/dovecot.conf


Is it fixed with a newer version? I think  
http://hg.dovecot.org/dovecot-2.2/rev/04ee59c96fc9 fixed it?


i tired today the 2.2.2-auto+68 build and it works, thanks



[Dovecot] access shared mailbox results in error

2013-06-15 Thread Michael Cramer

when i try to access a shared mailbox the logfile shows me this and access
isn't possible

Jun 15 19:38:57 imap(mich...@bigmichi1.de): Error: mdbox  
/srv/vmail/mail/bigmichi1.de/familie/mailboxes/INBOX/dbox-Mails:  
Invalid dbox header size: 0
Jun 15 19:38:57 imap(mich...@bigmichi1.de): Warning: fscking index  
file  
/srv/vmail/indexes/shared/bigmichi1.de/michael/shared/fami...@bigmichi1.de/storage/dovecot.map.index
Jun 15 19:38:57 imap(mich...@bigmichi1.de): Warning: mdbox  
/srv/vmail/mail/bigmichi1.de/familie/storage: rebuilding indexes



doveconf -n

# 2.2.2 (30f00db1a8b0): /etc/dovecot/dovecot.conf
# OS: Linux 3.8.0-25-generic x86_64 Ubuntu 13.04 ext4
auth_mechanisms = plain login
debug_log_path = /var/log/dovecot/debug.log
dict {
  acl = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
  expire = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
  quota = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_gid = 8
first_valid_uid = 8
info_log_path = /var/log/dovecot/info.log
last_valid_gid = 8
last_valid_uid = 8
log_path = /var/log/dovecot/error.log
mail_debug = yes
mail_gid = 8
mail_location =  
mdbox:/srv/vmail/mail/%d/%n:INDEXPVT=/srv/vmail/indexes/private/%d/%n:INDEX=/srv/vmail/indexes/shared/%d/%n

mail_plugins = quota zlib acl expire virtual
mail_uid = 8
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 variab

les body enotify environment mailbox date ihave imapflags notify
mdbox_preallocate_space = yes
mdbox_rotate_size = 10 M
namespace {
  list = children
  location =  
mdbox:/srv/vmail/mail/%%d/%%n:INDEXPVT=/srv/vmail/indexes/private/%d/%n/shared/%%u:INDEX=/srv/vmail/indexes/shared/%d/%n/shared/%%u

  prefix = Shared/%%u/
  separator = /
  subscriptions = no
  type = shared
}
namespace inbox {
  inbox = yes
  location =
  mailbox Archive {
auto = subscribe
special_use = \Archive
  }
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox Spam {
auto = subscribe
special_use = \Junk
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  mailbox virtual/All {
auto = subscribe
special_use = \All
  }
  mailbox virtual/Flagged {
auto = subscribe
special_use = \Flagged
  }
  prefix =
  separator = /
  type = private
}
namespace virtual {
  location =  
virtual:/srv/vmail/virtual:INDEXPVT=/srv/vmail/indexes/private/%d/%n/virtual:INDEX=/srv/vmail/indexes/shared/%d/%n/virtual

  prefix = virtual/
  separator = /
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  acl = vfile:/srv/vmail/acl:cache_secs=300
  acl_anyone = allow
  acl_shared_dict = proxy::acl
  expire = Trash 7 Trash/* 7 Spam 30
  expire_dict = proxy::expire
  quota = dict:User quota::proxy::quota
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  quota_warning3 = -storage=100%% quota-warning below %u
  sieve = /srv/vmail/sieve/%d/%n/.dovecot.sieve
  sieve_default = /srv/vmail/sieve/default.sieve
  sieve_dir = /srv/vmail/sieve/%d/%n/
  sieve_extensions = +notify +imapflags
  sieve_global_dir = /srv/vmail/sieve/global
}
postmaster_address = postmas...@bigmichi1.de
protocols = " imap sieve"
service auth-worker {
  user = $default_internal_user
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
  }
  unix_listener auth-userdb {
group = mail
mode = 0666
user = mail
  }
}
service dict {
  unix_listener dict {
group = mail
mode = 0660
user = mail
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
user = mail
  }
  user = dovecot
}
ssl_cert = 

Re: [Dovecot] Connection closed by foreign host.

2013-06-12 Thread Michael Cramer

Zitat von Timo Sirainen :


On 13.6.2013, at 7.37, Michael Cramer  wrote:


3 LIST () "" (*)
Connection closed by foreign host.

the command with number 3 results everytime in a connection closed. i
turned on debug_log but nothing is shown there.


doveconf -n output?


sorry forgot that part to post

root@i920:/srv/www/horde.bigmichi1.de/conf# doveconf -n
# 2.2.2 (45399357008a): /etc/dovecot/dovecot.conf
# OS: Linux 3.8.0-23-generic x86_64 Ubuntu 13.04 ext4

..

mdbox_preallocate_space = yes
   user = postfix
 }


That seems to be missing a (big?) part in here. I was mainly  
wondering what namespace configs you have?


Oh and BTW:

mail_location =  
mdbox:/srv/vmail/mail/%d/%n:INDEXPVT=/srv/vmail/indexes/private/%d/%n:INDEX=/srv/vmail/indexes/shared/%d/%n


You don't need INDEXPVT for your own mails, only for the shared namespaces.


now the full conf

# 2.2.2 (45399357008a): /etc/dovecot/dovecot.conf
# OS: Linux 3.8.0-23-generic x86_64 Ubuntu 13.04 ext4
auth_mechanisms = plain login
debug_log_path = /var/log/dovecot/debug.log
dict {
  acl = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
  expire = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
  quota = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_gid = 8
first_valid_uid = 8
info_log_path = /var/log/dovecot/info.log
last_valid_gid = 8
last_valid_uid = 8
log_path = /var/log/dovecot/error.log
mail_debug = yes
mail_gid = 8
mail_location =  
mdbox:/srv/vmail/mail/%d/%n:INDEXPVT=/srv/vmail/indexes/private/%d/%n:INDEX=/srv/vmail/indexes/shared/%d/%n

mail_plugins = quota zlib acl expire virtual
mail_uid = 8
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 imapflags notify

mdbox_preallocate_space = yes
mdbox_rotate_size = 10 M
namespace {
  list = children
  location =  
mdbox:/srv/vmail/mail/%%d/%%n:INDEXPVT=/srv/vmail/indexes/private/%d/%n/shared/%%u:INDEX=/srv/vmail/indexes/shared/%d/%n/shared/%%u

  prefix = Shared/%%u/
  separator = /
  subscriptions = no
  type = shared
}
namespace inbox {
  inbox = yes
  location =
  mailbox Archive {
auto = subscribe
special_use = \Archive
  }
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox Spam {
auto = subscribe
special_use = \Junk
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  mailbox virtual/All {
auto = subscribe
special_use = \All
  }
  mailbox virtual/Flagged {
auto = subscribe
special_use = \Flagged
  }
  prefix =
  separator = /
  type = private
}
namespace virtual {
  location =  
virtual:/srv/vmail/virtual:INDEXPVT=/srv/vmail/indexes/private/%d/%n/virtual:INDEX=/srv/vmail/indexes/shared/%d/%n/virtual

  prefix = virtual/
  separator = /
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  acl = vfile:/srv/vmail/acl:cache_secs=300
  acl_anyone = allow
  acl_shared_dict = proxy::acl
  expire = Trash 7 Trash/* 7 Spam 30
  expire_dict = proxy::expire
  quota = dict:User quota::proxy::quota
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  quota_warning3 = -storage=100%% quota-warning below %u
  sieve = /srv/vmail/sieve/%d/%n/.dovecot.sieve
  sieve_default = /srv/vmail/sieve/default.sieve
  sieve_dir = /srv/vmail/sieve/%d/%n/
  sieve_extensions = +notify +imapflags
  sieve_global_dir = /srv/vmail/sieve/global
}
postmaster_address = postmas...@bigmichi1.de
protocols = " imap sieve"
service auth-worker {
  user = $default_internal_user
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
  }
  unix_listener auth-userdb {
group = mail
mode = 0666
user = mail
  }
}
service dict {
  unix_listener dict {
group = mail
mode = 0660
user = mail
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
user = mail
  }
  user = dovecot
}
ssl_cert = 

Re: [Dovecot] Connection closed by foreign host.

2013-06-12 Thread Michael Cramer

Zitat von Timo Sirainen :


On Tue, 2013-06-11 at 19:28 +0200, Michael Cramer wrote:

i tried the latest dev version 2.2.2-0~auto54 for ubuntu and when i do some
testing i got a connection closed.

the commands are issued through telnet:

3 LIST () "" (*)
Connection closed by foreign host.


the command with number 3 results everytime in a connection closed. i
turned on debug_log but nothing is shown there.


doveconf -n output?


sorry forgot that part to post

root@i920:/srv/www/horde.bigmichi1.de/conf# doveconf -n
# 2.2.2 (45399357008a): /etc/dovecot/dovecot.conf
# OS: Linux 3.8.0-23-generic x86_64 Ubuntu 13.04 ext4
auth_mechanisms = plain login
debug_log_path = /var/log/dovecot/debug.log
dict {
  acl = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
  expire = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
  quota = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_gid = 8
first_valid_uid = 8
info_log_path = /var/log/dovecot/info.log
last_valid_gid = 8
last_valid_uid = 8
log_path = /var/log/dovecot/error.log
mail_debug = yes
mail_gid = 8
mail_location =  
mdbox:/srv/vmail/mail/%d/%n:INDEXPVT=/srv/vmail/indexes/private/%d/%n:INDEX=/srv/vmail/indexes/shared/%d/%n

mail_plugins = quota zlib acl expire virtual
mail_uid = 8
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 imapflags notify

mdbox_preallocate_space = yes
user = postfix
  }
  unix_listener auth-userdb {
group = mail
mode = 0666
user = mail
  }
}
service dict {
  unix_listener dict {
group = mail
mode = 0660
user = mail
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
user = mail
  }
  user = dovecot
}
ssl_cert = 

Re: [Dovecot] Connection closed by foreign host.

2013-06-11 Thread Michael Cramer

(gdb) bt full
#0  0x7fbbfe71a015 in ?? () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#1  0x7fbbfe701da5 in ?? () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#2  0x7fbbfe70212d in buffer_write () from  
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#3  0x7fbbfe6efe9e in imap_utf8_to_utf7 ()
   from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#4  0x7fbbfe9df778 in mailbox_list_default_get_storage_name ()
   from /usr/lib/dovecot/libdovecot-storage.so.0
No symbol table info available.
#5  0x7fbbfe9932df in ?? () from /usr/lib/dovecot/libdovecot-storage.so.0
No symbol table info available.
#6  0x7fbbfe9e1856 in mailbox_list_get_storage ()
   from /usr/lib/dovecot/libdovecot-storage.so.0
No symbol table info available.
#7  0x7fbbfe993308 in ?? () from /usr/lib/dovecot/libdovecot-storage.so.0
No symbol table info available.
#8  0x7fbbfe9e1856 in mailbox_list_get_storage ()
   from /usr/lib/dovecot/libdovecot-storage.so.0
No symbol table info available.





Zitat von Michael Cramer :


i tried the latest dev version 2.2.2-0~auto54 for ubuntu and when i do
some
testing i got a connection closed.

the commands are issued through telnet:

root@i920:~# telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
1 LOGIN t...@lokal.de 123456
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS
THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN
NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH
ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY
MOVE NOTIFY COMPRESS=DEFLATE QUOTA ACL RIGHTS=texk] Logged in
2 LIST () "" (virtual/*)
* LIST () "/" virtual/All
* LIST () "/" virtual/Flagged
* LIST (\UnMarked) "/" virtual/Flagged
* LIST (\Marked) "/" virtual/All
2 OK List completed.
3 LIST () "" (*)
Connection closed by foreign host.

the command with number 3 results everytime in a connection closed. i
turned on debug_log but nothing is shown there.




[Dovecot] Connection closed by foreign host.

2013-06-11 Thread Michael Cramer

i tried the latest dev version 2.2.2-0~auto54 for ubuntu and when i do some
testing i got a connection closed.

the commands are issued through telnet:

root@i920:~# telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE  
IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.

1 LOGIN t...@lokal.de 123456
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE  
IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS  
THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT  
CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC  
ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE  
BINARY MOVE NOTIFY COMPRESS=DEFLATE QUOTA ACL RIGHTS=texk] Logged in

2 LIST () "" (virtual/*)
* LIST () "/" virtual/All
* LIST () "/" virtual/Flagged
* LIST (\UnMarked) "/" virtual/Flagged
* LIST (\Marked) "/" virtual/All
2 OK List completed.
3 LIST () "" (*)
Connection closed by foreign host.


the command with number 3 results everytime in a connection closed. i  
turned on debug_log but nothing is shown there.