Dovecot Proxy - Oauth2 mech add custom fields

2020-02-14 Thread Domenico Pastore
Hi,

I have a problem with configuring dovecot passdb for Oauth2 with keyclock.
A user can access more mailbox, mailboxes are associated with the user.

When a user login with this method:

OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ 
AUTH=PLAIN] Dovecot ready.
a login mailbox*user password

Dovecot when requiring the grant_url send to Keyclock, for example, this post 
(I have already enabled raw_log for analysis):

grant_type=password=domenico=test_id=imap-client_secret=99e26b26-0f2a-4b64-8f57-c0ca2147d3a0=emailPOST
 /auth/realms/example/protocol/openid-connect/token/introspect

The call pass to Keyclock only master_user and miss mailbox info.
In fact, the JSON response after login return the only username without mailbox:

[...]
  "scope": "profile email",
  "email_verified": false,
  "preferred_username": "dome.nico"
[...]

When Dovecot proxy connects to the backend, email attribute and user have the 
same value, master-user. 
This behavior is a problem because when backend tries login access, login with 
the user and not with the mailbox.

This is backend logging:

2020-02-13 19:34:13 auth: Debug: client passdb out: OK  1   user=domenico  
token=eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJYVy1fSmNnVkF3aW9GUXh1NUhwdjVlbk5uNU8zaW42Y1VpaGJsM2dWX0V3In0.eyJqdGkiOiJhYTMwZ
Dk0Yy0xNjE0LTQzN2QtOTA5Zi01ZTAwNGQ2YjNmZTIiLCJleHAiOjE1ODE2MTE5NTQsIm5iZiI6MCwiaWF0IjoxNTgxNjExNjU0LCJpc3MiOiJodHRwczovL2tleWNsb2FrLXBlYy1pYW0ucGVjLWFwcHMucGFyLXRlYy5pdC9hdXRoL3JlYWxtcy9wZWMiLCJhdWQiOiJhY2NvdW50Iiwi
c3ViIjoiZjphNTA1NWUzMi1lYzhkLTRmZjgtOWZjNS00ODM4MmQ1MzRhODc6ZG9tZS5uaWNvIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiaW1hcC1jbGllbnQiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiIyN2M0ZDMzYy01YjdlLTQzMWMtYjZmMi0yYmI4NjIzYzMyMjkiLCJ
hY3IiOiIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIm9mZmxpbmVfYWNjZXNzIiwidW1hX2F1dGhvcml6YXRpb24iXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2
ZpbGUiXX19LCJzY29wZSI6InByb2ZpbGUgZW1haWwiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsInByZWZlcnJlZF91c2VybmFtZSI6ImRvbWUubmljbyJ9.LlIx-QeRQPr3lK4Cs1vU0qMvHF3uq3h15BGi1atNCBASkM6oPoYWLV-sYdf8hzpRFyOaTcbxN53SN6LfD0hHvUZ2sKHxh7UJ
idmxS4hf1SsZq8wJTASpebcPLtBIX5JBvXmpxa-cVnZDE1JVw5np5-LLNs0j4sgHwgg85mJEoE2VmYJzbGZjUsSTvaAAoCbvTA0MfsNoKyq0E5JrLVdkI-twX7HjAESFqFD4yHe7BS4FG_UjddrSr3uXmXreB44VLZ8B4xBgVRjK9K-sjjkXT8Bkv8WbxUdEEHaarWU_qanI5DlhA0CZXlJ
CyDsNcRwQfwVHOESxXE7ehgIDPm-NjA

I have a mechanism for adding other attributes with Dovecot when calling 
Keyclock? This for insert email or other fields into the token.

Thanks all,
Domenico

———
Dovecot Frontend

# 2.3.9.2 (cf2918cac): /config/dovecot/dovecot-proxy/dovecot.conf
# OS: Linux 3.10.0-693.17.1.el7.x86_64 x86_64 CentOS Linux release 7.4.1708 
(Core)  
# Hostname: fe-new.example.it
auth_debug = yes
auth_debug_passwords = yes
auth_master_user_separator = *
auth_verbose = yes
auth_verbose_passwords = yes
base_dir = /data/dovecot/var/run/dovecot-proxy
default_vsz_limit = 768 M
disable_plaintext_auth = no
first_valid_gid = 101
first_valid_uid = 102
imap_id_send = 
import_environment = TZ MASTERPWD
info_log_path = /LOGS/imap/dovecot-proxy.log
instance_name = dovecot-proxy
listen = fe-new_imap
log_path = /LOGS/imap/dovecot-proxy.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_gid = 101
mail_location = maildir:%h/Maildir
mail_max_userip_connections = 50
mail_plugins = quota expire mail_log notify
mail_uid = 102
maildir_broken_filename_sizes = yes
mbox_write_locks = fcntl
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix = INBOX.
  separator = .
  subscriptions = yes
  type = private
}
passdb {
  args = /config/dovecot/dovecot-proxy/dovecot-oauth2.conf
  driver = oauth2
  master = yes
  mechanisms = plain login
}
plugin {
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  mail_log_fields = uid box msgid size
}
postmaster_address = po...@foo.it
protocols = imap pop3
service anvil {
  client_limit = 3000
}
service auth {
  client_limit = 4096
  unix_listener auth-userdb {
mode = 0600
  }
}
service imap-login {
  inet_listener imap {
port = 0
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
  process_limit = 2500
  process_min_avail = 5
}
service imap {
  drop_priv_before_exec = yes
  process_limit = 2500
  process_min_avail = 5
}
service lmtp {
  inet_listener lmtp {
port = 24
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
  process_min_avail = 0
  service_count = 1
  vsz_limit = 64 M
}
service managesieve {
  drop_priv_before_exec = yes
  process_limit = 1024
}
service pop3-login {
  inet_listener pop3 {
port = 0
  }
  inet_listener pop3s {
port = 995
ssl = yes
  }
  process_limit = 300
  

Re: Dovecot - Upgrade Solr 7.7.2 to 8.4.1

2020-01-22 Thread Domenico Pastore
Hi,
thanks for your answer.

I confirm, mitigate this issue is very very easy.
There are other issues with high severity for example CVE-2019-17558.

Description: Apache Solr 5.0.0 to Apache Solr 8.3.1 are vulnerable to a Remote 
Code Execution through the VelocityResponseWriter

I think for this issue there is only a solution, upgrade Solr to 8.4. It's 
Correct?

So, with Dovecot is it possible to use Apache Solr 8.4?
High RAM usage is the only problem?

Thanks,

Br,
Domenico


Domenico Pastore
Senior Cloud Engineer
T 06.98269600 | M 347.1474270 | F 06.98269680
Par-Tec<http://www.par-tec.it> | beyond the IT domain
Via Cristoforo Colombo 163, 00147 Roma
CONFIDENZIALE: Questo messaggio ed i suoi allegati sono di carattere 
confidenziale. È vietato l'inoltro non autorizzato a destinatari diversi da 
quelli indicati nel messaggio originale. Se ricevuto per errore si prega di 
informare il mittente e cancellarlo immediatamente.





Il giorno 22 gen 2020, alle ore 15:26, 
deano-dove...@areyes.com<mailto:deano-dove...@areyes.com> ha scritto:

On 2020-01-22 8:42 am, Domenico Pastore wrote:
Hello,
I have Dovecot configured with Solr for the indexes.
I have need your support for upgrade solr 7.7.2 to 8.4.1.
Solr 7.7.2 has a security issue CVE-2019-12409.
It's possible upgrade of Solr?
Dovecot work correctly with Solr 8.x?
The Solr documentation recommended after updating:
"It is always strongly recommended that you fully reindex your
documents after a major version upgrade."
There are tips for Dovecot?

Easy mitigation - block or control all access on port 18983 via iptables ?  
Might be a bit of a blanket statement though ...

Be aware than later version of Solr use a *lot* more ram.  I tested last year 
with 8.3.0 and even with tuning was seeing a much higher higher RES memory 
usage.

DC



Dovecot - Upgrade Solr 7.7.2 to 8.4.1

2020-01-22 Thread Domenico Pastore
Hello,
I have Dovecot configured with Solr for the indexes.

I have need your support for upgrade solr 7.7.2 to 8.4.1.
Solr 7.7.2 has a security issue CVE-2019-12409.

It's possible upgrade of Solr? 
Dovecot work correctly with Solr 8.x? 

The Solr documentation recommended after updating:
"It is always strongly recommended that you fully reindex your documents after 
a major version upgrade."

There are tips for Dovecot?

Br,
Domenico

Pop3 not expunge - expire plugin info

2019-10-29 Thread Domenico Pastore via dovecot
Hi,

I have upgraded dovecot from version 2.2.15 to 2.3.7.
I have an issue with protocol pop3 when the client delete more messages 
but did not execute "quit" command.

With version 2.3.7 without quit command, the server pop not remove mail 
marked deleted.

With version 2.2.15 even without quit command, the server pop remove 
mail marked deleted.

Has this behavior been fixed in the new version?

Has the expire plugin anything to do with that?

BR,
Domenico




# 2.3.7.2 (3c910f64b): /config/dovecot/dovecot/dovecot.conf
# Pigeonhole version 0.5.7.2 (7372921a)
# OS: Linux 3.10.0-1062.1.2.el7.x86_64 x86_64 CentOS Linux release 
7.7.1908 (Core)

auth_debug = yes
auth_master_user_separator = *
auth_username_format =
base_dir = /data/dovecot/var/run/dovecot
default_client_limit = 8192
default_vsz_limit = 768 M
dict {
   sqlquota = mysql:/config/dovecot/common/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
doveadm_password = # hidden, use -P to show it
first_valid_gid = 101
first_valid_uid = 102
imap_id_send =
import_environment = TZ
info_log_path = /LOGS/dovecot/dovecot.log
instance_name = dovecot
listen = dovecot
log_path = /LOGS/dovecot/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_gid = 101
mail_location = maildir:%h/Maildir
mail_max_userip_connections = 50
mail_plugins = quota fts fts_solr mail_log notify virtual
mail_uid = 102
maildir_broken_filename_sizes = 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 index ihave duplicate mime foreverypart 
extracttext vnd.dovecot.debug
mbox_write_locks = fcntl
namespace {
   hidden = yes
   list = no
   location = 
virtual:/config/dovecot/common/virtual:INDEX=~/virtual:SUBSCRIPTIONS=.subscriptions/%u
   prefix = Messaggi in arrivo.
   separator = .
   subscriptions = no
}
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
     special_use = \Drafts
   }
   mailbox Junk {
     special_use = \Junk
   }
   mailbox Sent {
     special_use = \Sent
   }
   mailbox "Sent Messages" {
     special_use = \Sent
   }
   mailbox Trash {
     special_use = \Trash
   }
   prefix = INBOX.
   separator = .
   subscriptions = yes
   type = private
}
passdb {
   args = /config/dovecot/common/passwd.masterusers
   driver = passwd-file
   master = yes
}
passdb {
   args = /config/dovecot/dovecot/dovecot-ldap.conf
   driver = ldap
}
passdb {
   args = /config/dovecot/common/dovecot-ldap-multiuser.conf
   driver = ldap
   master = yes
}
passdb {
   args = /config/dovecot/common/dovecot-ldap-webmail.conf.ext
   driver = ldap
   master = yes
}
plugin {
   fts = solr
   fts_autoindex = yes
   fts_autoindex_max_recent = 1000
   fts_solr = url=https://192.160.10.81:8983/solr/dovecot/
   mail_log_events = delete undelete expunge copy mailbox_delete 
mailbox_rename flag_change save mailbox_create
   mail_log_fields = uid box msgid size flags
   quota = dict:User quota::proxy::sqlquota
   quota_rule2 = INBOX.Trash:storage=+100M
   sieve_default = /dovecot/common/default.sieve
   sieve_extensions = +vnd.dovecot.debug
}
postmaster_address = po...@.it
service anvil {
   client_limit = 8000
}
service auth {
   client_limit = 12000
   unix_listener auth-userdb {
     mode = 0600
   }
}
service dict {
   process_limit = 7500
   process_min_avail = 10
   unix_listener dict {
     mode = 0600
     user = dovecot
   }
}
service doveadm {
   chroot =
   client_limit = 1
   drop_priv_before_exec = no
   executable = doveadm-server
   extra_groups =
   group =
   idle_kill = 0
   inet_listener {
     port = 924
   }
   privileged_group =
   process_limit = 0
   process_min_avail = 10
   protocol =
   service_count = 100
   type =
   unix_listener doveadm-server {
     group =
     mode = 0600
     user =
   }
   user =
   vsz_limit = 18446744073709551615 B
}
service imap-login {
   inet_listener imap {
     port = 143
   }
   inet_listener imaps {
     port = 993
     ssl = yes
   }
   process_limit = 5000
   process_min_avail = 10
}
service imap {
   drop_priv_before_exec = yes
   process_limit = 5000
   process_min_avail = 10
}
service lmtp {
   inet_listener lmtp {
     port = 24
   }
   process_limit = 2500
   process_min_avail = 10
}
service managesieve-login {
   inet_listener sieve {
     port = 4190
   }
   process_min_avail = 0
   service_count = 1
   vsz_limit = 64 M
}
service managesieve {
   drop_priv_before_exec = yes
   process_limit = 1024
}
service pop3-login {
   inet_listener pop3 {
     port = 110
   }
   inet_listener pop3s {
     port = 995
     ssl = yes
   }
   process_limit = 1000
   process_min_avail = 5
}
service pop3 {
   drop_priv_before_exec = yes
   process_limit = 1000
   process_min_avail = 5
}
ssl_cert = 

Sieve problem - Timeout while waiting for lock

2019-10-29 Thread Domenico Pastore via dovecot
Hi,

I have an issue with dovecot 2.3.7.2.

When lmtp stores a message into INBOX, I get this error:

2019-10-29 16:32:53 lmtp(“test@”)<28874><4IPiEytbuF3KcAAAioI89A>: 
Error: sieve: Execution of script /config/dovecot/common/default.sieve 
was aborted due to temporary failure
2019-10-29 16:32:53 lmtp(“test@”)<23470>: Error: sieve: 
msgid=CE595339-2976-6DFD-FDAD-EEA15CC53218@: failed to store into 
mailbox ‘INBOX’: Timeout while waiting for lock

This problem only occurs for one mailbox and when it receives a big 
amount of messages.

With the previous version (dovecot 2.2.15) this did never occur.

The file /config/dovecot/common/default.sieve is in local server, no on 
NFS filesystem

BR,
Domenico

-

# 2.3.7.2 (3c910f64b): /config/dovecot/dovecot/dovecot.conf
# Pigeonhole version 0.5.7.2 (7372921a)
# OS: Linux 3.10.0-1062.1.2.el7.x86_64 x86_64 CentOS Linux release 
7.7.1908 (Core)

auth_debug = yes
auth_master_user_separator = *
auth_username_format =
base_dir = /data/dovecot/var/run/dovecot
default_client_limit = 8192
default_vsz_limit = 768 M
dict {
   sqlquota = mysql:/config/dovecot/common/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
doveadm_password = # hidden, use -P to show it
first_valid_gid = 101
first_valid_uid = 102
imap_id_send =
import_environment = TZ
info_log_path = /LOGS/dovecot/dovecot.log
instance_name = dovecot
listen = dovecot
log_path = /LOGS/dovecot/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_gid = 101
mail_location = maildir:%h/Maildir
mail_max_userip_connections = 50
mail_plugins = quota fts fts_solr mail_log notify virtual
mail_uid = 102
maildir_broken_filename_sizes = 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 index ihave duplicate mime foreverypart 
extracttext vnd.dovecot.debug
mbox_write_locks = fcntl
namespace {
   hidden = yes
   list = no
   location = 
virtual:/config/dovecot/common/virtual:INDEX=~/virtual:SUBSCRIPTIONS=.subscriptions/%u
   prefix = Messaggi in arrivo.
   separator = .
   subscriptions = no
}
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
     special_use = \Drafts
   }
   mailbox Junk {
     special_use = \Junk
   }
   mailbox Sent {
     special_use = \Sent
   }
   mailbox "Sent Messages" {
     special_use = \Sent
   }
   mailbox Trash {
     special_use = \Trash
   }
   prefix = INBOX.
   separator = .
   subscriptions = yes
   type = private
}
passdb {
   args = /config/dovecot/common/passwd.masterusers
   driver = passwd-file
   master = yes
}
passdb {
   args = /config/dovecot/dovecot/dovecot-ldap.conf
   driver = ldap
}
passdb {
   args = /config/dovecot/common/dovecot-ldap-multiuser.conf
   driver = ldap
   master = yes
}
passdb {
   args = /config/dovecot/common/dovecot-ldap-webmail.conf.ext
   driver = ldap
   master = yes
}
plugin {
   fts = solr
   fts_autoindex = yes
   fts_autoindex_max_recent = 1000
   fts_solr = url=https://192.160.10.81:8983/solr/dovecot/
   mail_log_events = delete undelete expunge copy mailbox_delete 
mailbox_rename flag_change save mailbox_create
   mail_log_fields = uid box msgid size flags
   quota = dict:User quota::proxy::sqlquota
   quota_rule2 = INBOX.Trash:storage=+100M
   sieve_default = /dovecot/common/default.sieve
   sieve_extensions = +vnd.dovecot.debug
}
postmaster_address = po...@.it
service anvil {
   client_limit = 8000
}
service auth {
   client_limit = 12000
   unix_listener auth-userdb {
     mode = 0600
   }
}
service dict {
   process_limit = 7500
   process_min_avail = 10
   unix_listener dict {
     mode = 0600
     user = dovecot
   }
}
service doveadm {
   chroot =
   client_limit = 1
   drop_priv_before_exec = no
   executable = doveadm-server
   extra_groups =
   group =
   idle_kill = 0
   inet_listener {
     port = 924
   }
   privileged_group =
   process_limit = 0
   process_min_avail = 10
   protocol =
   service_count = 100
   type =
   unix_listener doveadm-server {
     group =
     mode = 0600
     user =
   }
   user =
   vsz_limit = 18446744073709551615 B
}
service imap-login {
   inet_listener imap {
     port = 143
   }
   inet_listener imaps {
     port = 993
     ssl = yes
   }
   process_limit = 5000
   process_min_avail = 10
}
service imap {
   drop_priv_before_exec = yes
   process_limit = 5000
   process_min_avail = 10
}
service lmtp {
   inet_listener lmtp {
     port = 24
   }
   process_limit = 2500
   process_min_avail = 10
}
service managesieve-login {
   inet_listener sieve {
     port = 4190
   }
   process_min_avail = 0
   service_count = 1
   vsz_limit = 64 M
}
service managesieve {
   drop_priv_before_exec = yes
   process_limit = 1024
}
service pop3-login {
   inet_listener pop3 {
     port = 110
   }
   inet_listener pop3s {
     port = 995
     ssl = yes
   }
   process_limit 

Doveadm error during store - segfault clucene

2019-10-02 Thread Domenico Pastore via dovecot

Hi,
during the store of the messages, I find the following doveadm errors:

2019-10-02 09:22:19 auth: Debug: 
ldap(test@test.xxx.it,10.11.47.60):
 result: mailMessageStore=1/1/2/0/8/7/2/1120872_91093 mailQuota=52428800; 
mailQuota,mailMessageStore unused
2019-10-02 09:22:19 auth: Debug: 
ldap(test@test.xxx.it,10.11.47.60):
 Finished userdb lookup
2019-10-02 09:22:19 auth: Debug: userdb out: USER1
test@test.xxx.it
home=/store/mailbox/mailbox_test/1/1/2/0/8/7/2/1120872_91093
quota_rule=*:bytes=52428800mail_plugins+=
2019-10-02 09:22:19 
doveadm(test@test.xxx.it)<180667>:
 Fatal: master: service(doveadm): child 180667 killed with signal 11 (core 
dumped)
2019-10-02 09:22:19 auth: Debug: master in: USER1
test@test.xxx.itservice=doveadm
lip=192.160.10.100lport=924rip=10.11.47.60rport=56515
2019-10-02 09:22:19 auth: Debug: 
ldap(test@test.xxx.it,10.11.47.60):
 Performing userdb lookup

This problem occurs only with the quota plugin enabled.

Can you help me?

Best regards

Domenico

-

(gdb)
#0  clear (this=0x0) at 
/usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/util/VoidMap.h:123
#1  lucene::search::FieldSortedHitQueue::_shutdown () at 
/usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/search/FieldSortedHitQueue.cpp:60
#2  0x7f4b37a62e96 in _lucene_shutdown () at 
/usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/StdHeader.cpp:33
#3  0x7f4b3b2f2fbb in module_dir_deinit (modules=) at 
module-dir.c:578
#4  0x7f4b3b2f3001 in module_dir_unload 
(modules=modules@entry=0x7f4b3b8e1380 ) at 
module-dir.c:590
#5  0x7f4b3b5dd264 in mail_storage_service_deinit 
(_ctx=_ctx@entry=0x55ea409b7838) at mail-storage-service.c:1730
#6  0x55ea3f4a3d35 in doveadm_mail_cmd_exec (ctx=ctx@entry=0x55ea409b77f8, 
wildcard_user=wildcard_user@entry=0x0) at doveadm-mail.c:673
#7  0x55ea3f4a4bbd in doveadm_cmd_ver2_to_mail_cmd_wrapper (cctx=) at doveadm-mail.c:1144
#8  0x55ea3f4b5c98 in doveadm_cmd_run_ver2 (argc=argc@entry=1, 
argv=argv@entry=0x55ea40997150, cctx=cctx@entry=0x7fff9a1cb990) at 
doveadm-cmd.c:574
#9  0x55ea3f4ba020 in doveadm_cmd_server_run_ver2 (cctx=0x7fff9a1cb990, 
argv=0x55ea40997150, argc=1, conn=0x55ea409ebbd8) at client-connection-tcp.c:178
#10 doveadm_cmd_handle (cctx=0x7fff9a1cb990, argv=0x55ea40997150, argc=1, 
cmd_name=, conn=0x55ea409ebbd8) at client-connection-tcp.c:342
#11 client_handle_command (args=, conn=0x55ea409ebbd8) at 
client-connection-tcp.c:415
#12 client_connection_tcp_input (conn=0x55ea409ebbd8) at 
client-connection-tcp.c:561
#13 0x7f4b3b2e855f in io_loop_call_io (io=0x55ea409c5b10) at ioloop.c:704
#14 0x7f4b3b2e9fa3 in io_loop_handler_run_internal 
(ioloop=ioloop@entry=0x55ea4099fcb0) at ioloop-epoll.c:221
#15 0x7f4b3b2e8666 in io_loop_handler_run 
(ioloop=ioloop@entry=0x55ea4099fcb0) at ioloop.c:756
#16 0x7f4b3b2e in io_loop_run (ioloop=0x55ea4099fcb0) at ioloop.c:729
#17 0x7f4b3b25b2d3 in master_service_run (service=0x55ea4099fb40, 
callback=callback@entry=0x55ea3f4bd260 ) at 
master-service.c:781
#18 0x55ea3f493421 in main (argc=1, argv=0x55ea4099f890) at main.c:151

(gdb) bt full
#0  clear (this=0x0) at 
/usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/util/VoidMap.h:123
No locals.
#1  lucene::search::FieldSortedHitQueue::_shutdown () at 
/usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/search/FieldSortedHitQueue.cpp:60
No locals.
#2  0x7f4b37a62e96 in _lucene_shutdown () at 
/usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/StdHeader.cpp:33
No locals.
#3  0x7f4b3b2f2fbb in module_dir_deinit (modules=) at 
module-dir.c:578
_data_stack_cur_id = 4
module = 0x55ea40a048b0
rev = 0x55ea4099ac18
i = 
count = 6
#4  0x7f4b3b2f3001 in module_dir_unload 
(modules=modules@entry=0x7f4b3b8e1380 ) at 
module-dir.c:590
module = 
next = 
#5  0x7f4b3b5dd264 in mail_storage_service_deinit 
(_ctx=_ctx@entry=0x55ea409b7838) at mail-storage-service.c:1730
ctx = 0x55ea409f0bf8
#6  0x55ea3f4a3d35 in doveadm_mail_cmd_exec (ctx=ctx@entry=0x55ea409b77f8, 
wildcard_user=wildcard_user@entry=0x0) at doveadm-mail.c:673
cctx = 
cli = 
ret = 
error = 0x7f4b3b22d2f7 <__x86_return_thunk+5> 
"\363\220\017\256\350\353\371H\215d$\b\303\350\a"
#7  0x55ea3f4a4bbd in doveadm_cmd_ver2_to_mail_cmd_wrapper (cctx=) at doveadm-mail.c:1144
mctx = 0x55ea409b77f8
wildcard_user = 
fieldstr = 0x55ea40997310 "͒\t7K\177"
pargv = {arr = {buffer = 0x55ea409b7a28, element_size = 8}, v = 
0x55ea409b7a28, v_modifiable = 0x55ea409b7a28}
full_args = {arr = {buffer = , element_size = 

Re: Dovecot 2.3.7.2 lucene segfault and coredump

2019-09-19 Thread Domenico Pastore via dovecot
Hi,

i have find other information of the coredump.

My mail_plugin is:
mail_plugins = quota fts fts_lucene mail_log notify virtual

When I using quota and fts_lucene the coredump is generated.
If i use only the quota plugin or fts_lucene plugin, lmtp store work correctly.

Have you an ideas?

Br,
Domenico

Domenico Pastore
Senior Cloud Engineer
T 06.98269600 | M 347.1474270 | F 06.98269680
Par-Tec<http://www.par-tec.it> | beyond the IT domain
Via Cristoforo Colombo 163, 00147 Roma
CONFIDENZIALE: Questo messaggio ed i suoi allegati sono di carattere 
confidenziale. È vietato l'inoltro non autorizzato a destinatari diversi da 
quelli indicati nel messaggio originale. Se ricevuto per errore si prega di 
informare il mittente e cancellarlo immediatamente.
Il 16/09/19 17:20, Domenico Pastore via dovecot ha scritto:

Hi Stephan,

thanks for your replay.

This is bt full output:


(gdb) bt full
#0  clear (this=0x0) at 
/usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/util/VoidMap.h:123
No locals.
#1  lucene::search::FieldSortedHitQueue::_shutdown () at 
/usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/search/FieldSortedHitQueue.cpp:60
No locals.
#2  0x7f7dc5eabe96 in _lucene_shutdown () at 
/usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/StdHeader.cpp:33
No locals.
#3  0x7f7dc973bfbb in module_dir_deinit (modules=) at 
module-dir.c:578
_data_stack_cur_id = 4
module = 0x55ddb26268f0
rev = 0x55ddb25bd050
i = 
count = 6
#4  0x7f7dc973c001 in module_dir_unload 
(modules=modules@entry=0x7f7dc9d2a380 ) at 
module-dir.c:590
module = 
next = 
#5  0x7f7dc9a26264 in mail_storage_service_deinit 
(_ctx=_ctx@entry=0x55ddb25d9848) at mail-storage-service.c:1730
ctx = 0x55ddb2612c18
#6  0x55ddb0e0dd35 in doveadm_mail_cmd_exec (ctx=ctx@entry=0x55ddb25d9808, 
wildcard_user=wildcard_user@entry=0x0) at doveadm-mail.c:673
cctx = 
cli = 
ret = 
error = 0x7f7dc96762f7 <__x86_return_thunk+5> 
"\363\220\017\256\350\353\371H\215d$\b\303\350\a"
#7  0x55ddb0e0ebbd in doveadm_cmd_ver2_to_mail_cmd_wrapper (cctx=) at doveadm-mail.c:1144
mctx = 0x55ddb25d9808
wildcard_user = 
fieldstr = 0x55ddb25b9318 "\315\"N\305}\177"
pargv = {arr = {buffer = 0x55ddb25d9a38, element_size = 8}, v = 
0x55ddb25d9a38, v_modifiable = 0x55ddb25d9a38}
full_args = {arr = {buffer = , element_size = 8}, v = 
, v_modifiable = }
i = 
cli = 
tcp_server = 
mail_cmd = {alloc = 0x7f7dc54e1d00 , name = 
0x7f7dc54e22b6 "quota get", usage_args = 0x7f7dc54e2291 ""}
dashdash = 0x55ddb0e4a7ca "--"
args_pos = 1
#8  0x55ddb0e1fc98 in doveadm_cmd_run_ver2 (argc=argc@entry=1, 
argv=argv@entry=0x55ddb25b9158, cctx=cctx@entry=0x77c52670) at 
doveadm-cmd.c:574
param = 
pargv = {arr = {buffer = 0x55ddb25b9418, element_size = 104}, v = 
0x55ddb25b9418, v_modifiable = 0x55ddb25b9418}
opts = {arr = {buffer = , element_size = 32}, v = 
, v_modifiable = }
pargc = 4
c = -1
---Type  to continue, or q  to quit---
li = -252221570
pool = 0x55ddb25b9248
optbuf = 0x55ddb25b9260
__func__ = "doveadm_cmd_run_ver2"
#9  0x55ddb0e24020 in doveadm_cmd_server_run_ver2 (cctx=0x77c52670, 
argv=0x55ddb25b9158, argc=1, conn=0x55ddb260dbf8) at client-connection-tcp.c:178
No locals.
#10 doveadm_cmd_handle (cctx=0x77c52670, argv=0x55ddb25b9158, argc=1, 
cmd_name=, conn=0x55ddb260dbf8) at client-connection-tcp.c:342
mail_cmd = 
mctx = 
cmd_ver2 = 
prev_ioloop = 0x55ddb25c1cc0
cmd = 0x0
#11 client_handle_command (args=, conn=0x55ddb260dbf8) at 
client-connection-tcp.c:415
cctx = {cmd = 0x55ddb25d73e8, argc = 4, argv = 0x55ddb25b9450, username 
= 0x55ddb25b9119 
"testcli...@newsvilpec.babel.it"<mailto:testcli...@newsvilpec.babel.it>,
 local_ip = {family = 2, u = {ip6 = {__in6_u = {
  __u6_addr8 = "\300\240\n\003", '\000' , 
__u6_addr16 = {41152, 778, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {51028160, 0, 0, 
0}}}, ip4 = {s_addr = 51028160}}}, remote_ip = {family = 2, u = {
  ip6 = {__in6_u = {__u6_addr8 = "\n\000\b\200", '\000' , __u6_addr16 = {10, 32776, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {2148007946, 
0, 0, 0}}}, ip4 = {s_addr = 2148007946}}},
  local_port = 924, remote_port = 41491, conn_type = 
DOVEADM_CONNECTION_TYPE_TCP, input = 0x55ddb25d2dc0, output = 0x55ddb25d8d00}
flags = 
cmd_name = 
argc = 
#12 client_connection_tcp_input (conn=0x55ddb260dbf8) at 
client-connection-tcp.c:561
args = 
_data_stack_cur_id = 3
line = 
ok = true
minor = 0
#13 0x7f7dc973155f in io_loop_call_io (io=0x55ddb25e7b20) at ioloop.c:704
ioloop = 0x55ddb25c

Re: Dovecot 2.3.7.2 lucene segfault and coredump

2019-09-16 Thread Domenico Pastore via dovecot
(service=0x55ddb25c1b50, 
callback=callback@entry=0x55ddb0e27260 ) at 
master-service.c:781
No locals.
#18 0x55ddb0dfd421 in main (argc=1, argv=0x55ddb25c1890) at main.c:151
set_roots = {0x7f7dc99c5d00 , 
0x55ddb106c6a0 , 0x0}
input = {roots = 0x77c52850, config_path = 0x0, 
preserve_environment = false, preserve_user = false, preserve_home = false, 
never_exec = false, use_sysexits = false, parse_full_config = false,
  module = 0x55ddb0e46d3a "doveadm", service = 0x55ddb0e46d3a 
"doveadm", username = 0x0, local_ip = {family = 0, u = {ip6 = {__in6_u = 
{__u6_addr8 = '\000' , __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' , __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {
0, 0, 0, 0}}}, ip4 = {s_addr = 0}}}, local_name = 0x0}
output = {specific_services = 0x0, service_uses_local = false, 
service_uses_remote = false, used_local = false, used_remote = false, 
permission_denied = false}
error = 0x7f7dc90ecca7 "__vdso_getcpu"
c = 
(gdb)


Br,

Domenico

Domenico Pastore
Senior Cloud Engineer
T 06.98269600 | M 347.1474270 | F 06.98269680
Par-Tec<http://www.par-tec.it> | beyond the IT domain
Via Cristoforo Colombo 163, 00147 Roma
CONFIDENZIALE: Questo messaggio ed i suoi allegati sono di carattere 
confidenziale. È vietato l'inoltro non autorizzato a destinatari diversi da 
quelli indicati nel messaggio originale. Se ricevuto per errore si prega di 
informare il mittente e cancellarlo immediatamente.
Il 16/09/19 17:05, Stephan Bosch ha scritto:


Op 16-9-2019 om 11:53 schreef Domenico Pastore via dovecot:

Hi,

I have other information.

I analyzed the core dump:

(gdb) core 22534
[New LWP 22534]
Reading symbols from /usr/libexec/dovecot/doveadm-server...Reading symbols from 
/usr/lib/debug/usr/libexec/dovecot/doveadm-server.debug...done.
done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `dovecot-devel01/doveadm-server'.
Program terminated with signal 11, Segmentation fault.
#0  clear (this=0x0) at 
/usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/util/VoidMap.h:123
123if ( dk || dv ){
(gdb)


Can you issue GDB command `bt full` at this point?

Regards,

Stephan.


Br,

Domenico

*Domenico Pastore*
Senior Cloud Engineer
*T* 06.98269600 | *M* 347.1474270 | *F* 06.98269680
*Par-Tec <http://www.par-tec.it><http://www.par-tec.it>* | *beyond the IT 
domain*
Via Cristoforo Colombo 163, 00147 Roma
*CONFIDENZIALE*: Questo messaggio ed i suoi allegati sono di carattere 
confidenziale. È vietato l'inoltro non autorizzato a destinatari diversi da 
quelli indicati nel messaggio originale. Se ricevuto per errore si prega di 
informare il mittente e cancellarlo immediatamente.

Il 16/09/19 09:50, Domenico Pastore via dovecot ha scritto:

Hi,

do you have the same problem with lucene?

I collected a strace on the dovecot process during indexing:

[pid 31339] execve("/usr/libexec/dovecot/doveadm-server", 
["dovecot-devel01/doveadm-server"], [/* 18 vars */] 
[pid 30711] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=30932, 
si_uid=0, si_status=SIGSEGV, si_utime=3, si_stime=1} ---
[pid 30711] write(62, "\0", 1)  = 1
[pid 30711] read(124, "8x\0\0008\0\0\0\251\3\0\0", 1020) = 12
[pid 30711] read(61, "\0", 64)  = 1
[pid 30711] open("/proc/sys/fs/suid_dumpable", O_RDONLY) = 227
[pid 30711] read(227, "0\n", 9) = 2
[pid 30711] write(65, "25 30932 FATAL service(doveadm): child 30932 killed with 
signal 11 (core not dumped - https://dovecot.org/bugreport.html#coredumps - set 
/proc/sys/fs/suid_dumpable to 2)\n", 170) = 170
[pid 30711] write(14, "KILL\t30932\n", 11) = 11
[pid 30711] write(65, "25 30932 BYE\n", 13) = 13
[pid 31339] <... execve resumed> )  = 0
[pid 31339] open("/usr/lib64/dovecot/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) 
= -1 ENOENT (No such file or directory)
[pid 31339] stat("/usr/lib64/dovecot/tls/x86_64", 0x7ffda7e3f1d0) = -1 ENOENT 
(No such file or directory)
[pid 31339] open("/usr/lib64/dovecot/tls/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 
ENOENT (No such file or directory)
[pid 31339] stat("/usr/lib64/dovecot/tls", 0x7ffda7e3f1d0) = -1 ENOENT (No such 
file or directory)
[pid 31339] open("/usr/lib64/dovecot/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = 
-1 ENOENT (No such file or directory)
[pid 31339] stat("/usr/lib64/dovecot/x86_64", 0x7ffda7e3f1d0) = -1 ENOENT (No 
such file or directory)
[pid 31339] open("/usr/lib64/dovecot/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 
ENOENT (No such file or directory)
[pid 31339] stat("/usr/lib64/dovecot", {st_mode=

Re: Dovecot 2.3.7.2 lucene segfault and coredump

2019-09-16 Thread Domenico Pastore via dovecot
Hi,

I have other information.

I analyzed the core dump:

(gdb) core 22534
[New LWP 22534]
Reading symbols from /usr/libexec/dovecot/doveadm-server...Reading symbols from 
/usr/lib/debug/usr/libexec/dovecot/doveadm-server.debug...done.
done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `dovecot-devel01/doveadm-server'.
Program terminated with signal 11, Segmentation fault.
#0  clear (this=0x0) at 
/usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/util/VoidMap.h:123
123if ( dk || dv ){
(gdb)

Br,

Domenico

Domenico Pastore
Senior Cloud Engineer
T 06.98269600 | M 347.1474270 | F 06.98269680
Par-Tec<http://www.par-tec.it> | beyond the IT domain
Via Cristoforo Colombo 163, 00147 Roma
CONFIDENZIALE: Questo messaggio ed i suoi allegati sono di carattere 
confidenziale. È vietato l'inoltro non autorizzato a destinatari diversi da 
quelli indicati nel messaggio originale. Se ricevuto per errore si prega di 
informare il mittente e cancellarlo immediatamente.
Il 16/09/19 09:50, Domenico Pastore via dovecot ha scritto:

Hi,

do you have the same problem with lucene?

I collected a strace on the dovecot process during indexing:

[pid 31339] execve("/usr/libexec/dovecot/doveadm-server", 
["dovecot-devel01/doveadm-server"], [/* 18 vars */] 
[pid 30711] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=30932, 
si_uid=0, si_status=SIGSEGV, si_utime=3, si_stime=1} ---
[pid 30711] write(62, "\0", 1)  = 1
[pid 30711] read(124, "8x\0\0008\0\0\0\251\3\0\0", 1020) = 12
[pid 30711] read(61, "\0", 64)  = 1
[pid 30711] open("/proc/sys/fs/suid_dumpable", O_RDONLY) = 227
[pid 30711] read(227, "0\n", 9) = 2
[pid 30711] write(65, "25 30932 FATAL service(doveadm): child 30932 killed with 
signal 11 (core not dumped - https://dovecot.org/bugreport.html#coredumps - set 
/proc/sys/fs/suid_dumpable to 2)\n", 170) = 170
[pid 30711] write(14, "KILL\t30932\n", 11) = 11
[pid 30711] write(65, "25 30932 BYE\n", 13) = 13
[pid 31339] <... execve resumed> )  = 0
[pid 31339] open("/usr/lib64/dovecot/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) 
= -1 ENOENT (No such file or directory)
[pid 31339] stat("/usr/lib64/dovecot/tls/x86_64", 0x7ffda7e3f1d0) = -1 ENOENT 
(No such file or directory)
[pid 31339] open("/usr/lib64/dovecot/tls/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 
ENOENT (No such file or directory)
[pid 31339] stat("/usr/lib64/dovecot/tls", 0x7ffda7e3f1d0) = -1 ENOENT (No such 
file or directory)
[pid 31339] open("/usr/lib64/dovecot/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = 
-1 ENOENT (No such file or directory)
[pid 31339] stat("/usr/lib64/dovecot/x86_64", 0x7ffda7e3f1d0) = -1 ENOENT (No 
such file or directory)
[pid 31339] open("/usr/lib64/dovecot/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 
ENOENT (No such file or directory)
[pid 31339] stat("/usr/lib64/dovecot", {st_mode=S_IFDIR|0755, st_size=4096, 
...}) = 0
[pid 31339] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
[pid 31339] open("/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 4


All missing libs are in "/usr/lib64" and no to "/usr/lib64/dovecot"

Can you help me?

Br,

Domenico



Domenico Pastore
Senior Cloud Engineer
T 06.98269600 | M 347.1474270 | F 06.98269680
Par-Tec<http://www.par-tec.it> | beyond the IT domain
Via Cristoforo Colombo 163, 00147 Roma
CONFIDENZIALE: Questo messaggio ed i suoi allegati sono di carattere 
confidenziale. È vietato l'inoltro non autorizzato a destinatari diversi da 
quelli indicati nel messaggio originale. Se ricevuto per errore si prega di 
informare il mittente e cancellarlo immediatamente.
Il 12/09/19 12:07, Domenico Pastore via dovecot ha scritto:

Hi,

i have a problem with libclucene-core.so.2.3.3.4.
I See segfault error to messages log, when dovecot store mail to INBOX.

set 12 13:41:21 box02.par-tec.it kernel: doveadm-server[20285]: segfault at 38 
ip 7f575b68fc42 sp 7ffc0272e750 error 4 in 
libclucene-core.so.2.3.3.4[7f575b569000+188000]
set 12 13:41:22 box02.par-tec.it kernel: doveadm-server[18871]: segfault at 38 
ip 7f9bea6d2c42 sp 7fff47bceae0 error 4 in 
libclucene-core.so.2.3.3.4[7f9bea5ac000+188000]

In the dovecot logs:

2019-09-12 13:45:09 auth: Debug: 
ldap(testclient@newsvil,10.0.8.128<mailto:testclient@newsvil,10.0.8.128>):
 Finished userdb lookup
2019-09-12 13:45:09 auth: Debug: userdb out: USER1
testclient@newsvil
home=/pec_store/pec_mailbox/pec_mailbox_devel01/4/5/6/7/1/45671_18231
quota_rule=*:bytes=1048576000mail_plugins+=
2019-09-12 13:45:10  SKENO8Uvel0gbAAA5ZKy4w 
doveadm(testclient@newsvil): Fatal: master: service(doveadm): child 
27680 killed with signal 11 (core dumped)
2019-09-12 13

Re: Dovecot 2.3.7.2 lucene segfault and coredump

2019-09-16 Thread Domenico Pastore via dovecot
Hi,

do you have the same problem with lucene?

I collected a strace on the dovecot process during indexing:

[pid 31339] execve("/usr/libexec/dovecot/doveadm-server", 
["dovecot-devel01/doveadm-server"], [/* 18 vars */] 
[pid 30711] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=30932, 
si_uid=0, si_status=SIGSEGV, si_utime=3, si_stime=1} ---
[pid 30711] write(62, "\0", 1)  = 1
[pid 30711] read(124, "8x\0\0008\0\0\0\251\3\0\0", 1020) = 12
[pid 30711] read(61, "\0", 64)  = 1
[pid 30711] open("/proc/sys/fs/suid_dumpable", O_RDONLY) = 227
[pid 30711] read(227, "0\n", 9) = 2
[pid 30711] write(65, "25 30932 FATAL service(doveadm): child 30932 killed with 
signal 11 (core not dumped - https://dovecot.org/bugreport.html#coredumps - set 
/proc/sys/fs/suid_dumpable to 2)\n", 170) = 170
[pid 30711] write(14, "KILL\t30932\n", 11) = 11
[pid 30711] write(65, "25 30932 BYE\n", 13) = 13
[pid 31339] <... execve resumed> )  = 0
[pid 31339] open("/usr/lib64/dovecot/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) 
= -1 ENOENT (No such file or directory)
[pid 31339] stat("/usr/lib64/dovecot/tls/x86_64", 0x7ffda7e3f1d0) = -1 ENOENT 
(No such file or directory)
[pid 31339] open("/usr/lib64/dovecot/tls/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 
ENOENT (No such file or directory)
[pid 31339] stat("/usr/lib64/dovecot/tls", 0x7ffda7e3f1d0) = -1 ENOENT (No such 
file or directory)
[pid 31339] open("/usr/lib64/dovecot/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = 
-1 ENOENT (No such file or directory)
[pid 31339] stat("/usr/lib64/dovecot/x86_64", 0x7ffda7e3f1d0) = -1 ENOENT (No 
such file or directory)
[pid 31339] open("/usr/lib64/dovecot/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 
ENOENT (No such file or directory)
[pid 31339] stat("/usr/lib64/dovecot", {st_mode=S_IFDIR|0755, st_size=4096, 
...}) = 0
[pid 31339] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
[pid 31339] open("/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 4


All missing libs are in "/usr/lib64" and no to "/usr/lib64/dovecot"

Can you help me?

Br,

Domenico



Domenico Pastore
Senior Cloud Engineer
T 06.98269600 | M 347.1474270 | F 06.98269680
Par-Tec<http://www.par-tec.it> | beyond the IT domain
Via Cristoforo Colombo 163, 00147 Roma
CONFIDENZIALE: Questo messaggio ed i suoi allegati sono di carattere 
confidenziale. È vietato l'inoltro non autorizzato a destinatari diversi da 
quelli indicati nel messaggio originale. Se ricevuto per errore si prega di 
informare il mittente e cancellarlo immediatamente.
Il 12/09/19 12:07, Domenico Pastore via dovecot ha scritto:

Hi,

i have a problem with libclucene-core.so.2.3.3.4.
I See segfault error to messages log, when dovecot store mail to INBOX.

set 12 13:41:21 box02.par-tec.it kernel: doveadm-server[20285]: segfault at 38 
ip 7f575b68fc42 sp 7ffc0272e750 error 4 in 
libclucene-core.so.2.3.3.4[7f575b569000+188000]
set 12 13:41:22 box02.par-tec.it kernel: doveadm-server[18871]: segfault at 38 
ip 7f9bea6d2c42 sp 7fff47bceae0 error 4 in 
libclucene-core.so.2.3.3.4[7f9bea5ac000+188000]

In the dovecot logs:

2019-09-12 13:45:09 auth: Debug: 
ldap(testclient@newsvil,10.0.8.128<mailto:testclient@newsvil,10.0.8.128>):
 Finished userdb lookup
2019-09-12 13:45:09 auth: Debug: userdb out: USER1
testclient@newsvil
home=/pec_store/pec_mailbox/pec_mailbox_devel01/4/5/6/7/1/45671_18231
quota_rule=*:bytes=1048576000mail_plugins+=
2019-09-12 13:45:10  SKENO8Uvel0gbAAA5ZKy4w 
doveadm(testclient@newsvil): Fatal: master: service(doveadm): child 
27680 killed with signal 11 (core dumped)
2019-09-12 13:45:10 auth: Debug: master in: USER1
testclient@newsvilservice=doveadmlip=192.160.10.3lport=924  
  rip=10.0.8.128rport=36760
2019-09-12 13:45:10 auth: Debug: ldap(testclient@newsvil 10.0.8.128): 
Performing userdb lookup

I have attach the coredump of error and dovecot.conf

Thanks for support.

Br,

Domenico

--- info: ---
# 2.3.7.2 (3c910f64b): /pec/config/dovecot/dovecot-devel01/dovecot.conf
# Pigeonhole version 0.5.7.2 (7372921a)
# OS: Linux 3.10.0-957.27.2.el7.x86_64 x86_64 CentOS Linux release 7.6.1810 
(Core)
# Hostname: box02







Dovecot 2.3.7 - char "-" missing

2019-08-30 Thread Domenico Pastore via dovecot
Hello,

i have update dovecot from version 2.2.15 to 2.3.7.2.
I have a problem with mine java software because there is a different 
response when open connection to doveadm.

I need open socket to doveadm for get imap quota of a mailbox.

With version 2.2.15:
# telnet 192.160.10.4 924
Trying 192.160.10.4...
Connected to 192.160.10.4.
Escape character is '^]'.
-


With version 2.3.7.2:
# telnet 192.160.10.3 924
Trying 192.160.10.3...
Connected to 192.160.10.3.
Escape character is '^]'.


The difference is "-" character. The version 2.3.7 not respond with "-" 
character after opening the connection.

Is it possible to add the character again with a parameter?

Why did doveadm's answer change?


Br
Domenico