Panic alert

2019-07-18 Thread marvin alcantara via dovecot
Hi,

I am getting a panic alert when sending an email in my box.  Below is the 
backtrace:
/usr/lib64/dovecot/libdovecot.so.0(+0x9f3de) [0x7fa90b5543de] -> 
/usr/lib64/dovecot/libdovecot.so.0(+0x9f4be) [0x7fa90b5544be] -> 
/usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7fa90b4e577c] -> 
/usr/lib64/dovecot/libdovecot-storage.so.0(mail_search_args_unref+0xa2) 
[0x7fa90b827c82] -> 
/usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_search_result_free+0x7a) 
[0x7fa90b84029a] -> 
/usr/lib64/dovecot/libdovecot-storage.so.0(mail_thread_init+0x128) 
[0x7fa90b8b2e88] -> 
/usr/lib64/dovecot/libdovecot-storage.so.0(index_storage_search_init+0x471) 
[0x7fa90b8a78a1] -> 
/usr/lib64/dovecot/lib20_virtual_plugin.so(virtual_search_init+0x23) 
[0x7fa90a0ac3d3] -> 
/usr/lib64/dovecot/libdovecot-storage.so.0(index_search_result_update_flags+0x11f)
 [0x7fa90b8a4f8f] -> 
/usr/lib64/dovecot/libdovecot-storage.so.0(index_sync_search_results_update+0x5b)
 [0x7fa90b8afe9b] -> 
/usr/lib64/dovecot/libdovecot-storage.so.0(index_mailbox_sync_deinit+0x1a4) 
[0x7fa90b8b0724] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xaa03f) 
[0x7fa90b89103f] -> 
/usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_sync_deinit+0x38) 
[0x7fa90b830cb8] -> dovecot/imap(+0x27111) [0x564ec6db6111] -> 
dovecot/imap(imap_sync_more+0x10d) [0x564ec6db6ccd] -> dovecot/imap(+0x28356) 
[0x564ec6db7356] -> dovecot/imap(cmd_sync_delayed+0x1f4) [0x564ec6db7814] -> 
dovecot/imap(client_handle_input+0x218) [0x564ec6daa968] -> 
dovecot/imap(client_input+0x85) [0x564ec6daae05] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x52) [0x7fa90b569cd2] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x10f) 
[0x7fa90b56b3bf] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x3c) [0x7fa90b569d6c] 
-> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7fa90b569f28] -> 
/usr/lib64/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7fa90b4effa3] -> 
dovecot/imap(main+0x333) [0x564ec6d9d2e3] -> 
/lib64/libc.so.6(__libc_start_main+0xf5) [0x7fa90b10a445] -> 
dovecot/imap(+0xe476) [0x564ec6d9d476]

Dovecot version: 2.2.33.2
I would like to ask help on what is happening here. I found in the code that 
the trigger is in plugins/virtual/virtual-sync.c virtual_sync() call. When does 
this actually being called? 
Thank you very much!
Regards,Marvin Alcantara

Dovecot with MySQL over SSL.

2019-07-18 Thread Reio Remma via dovecot

Hello!

I'm attempting to get Dovecot working with MySQL user database on 
another machine. I can connect to the MySQL (5.7.26) instance with SSL 
enabled:


 mysql -h db.mrst.ee --ssl-ca=/etc/dovecot/ca.pem 
--ssl-cert=/etc/dovecot/client-cert.pem 
--ssl-key=/etc/dovecot/client-key.pem --ssl-cipher=DHE-RSA-AES256-SHA -u 
vmail -p


However if I use the same values in dovecot-sql.conf.ext, I get the 
following error:


Jul 19 00:20:18 turin dovecot: master: Dovecot v2.3.7 (494d20bdc) 
starting up for imap, lmtp, sieve (core dumps disabled)
Jul 19 00:20:18 turin dovecot: auth-worker(82996): Error: 
mysql(db.mrst.ee): Connect failed to database (vmail): SSL connection 
error: protocol version mismatch - waiting for 1 seconds before retry
Jul 19 00:20:18 turin dovecot: auth-worker(82996): Error: 
mysql(db.mrst.ee): Connect failed to database (vmail): SSL connection 
error: protocol version mismatch - waiting for 1 seconds before retry
Jul 19 00:20:19 turin dovecot: auth-worker(82996): Error: 
mysql(db.mrst.ee): Connect failed to database (vmail): Connections using 
insecure transport are prohibited while --require_secure_transport=ON. - 
waiting for 5 seconds before retry
Jul 19 00:20:19 turin dovecot: auth-worker(82996): Error: 
mysql(db.mrst.ee): Connect failed to database (vmail): Connections using 
insecure transport are prohibited while --require_secure_transport=ON. - 
waiting for 5 seconds before retry


Database connection string:

connect = host=db.mrst.ee dbname=vmail user=vmail password=stuff \
    ssl_ca=/etc/dovecot/ca.pem \
    ssl_cert=/etc/dovecot/client-cert.pem \
    ssl_key=/etc/dovecot/client-key.pem \
    ssl_cipher=DHE-RSA-AES256-SHA

If I leave the ssl_cipher unset, I get:

Jul 19 00:23:41 turin dovecot: auth-worker(83069): Error: 
mysql(db.mrst.ee): Connect failed to database (vmail): SSL connection 
error: Failed to set ciphers to use - waiting for 1 seconds before retry


Any ideas?

Thanks!
Reio


Re: Dovecot Director upgrade from 2.2 to 2.3

2019-07-18 Thread Timo Sirainen via dovecot
On 18 Jul 2019, at 11.44, Alessio Cecchi via dovecot  
wrote:
> 
> Hi,
> 
> I have a setup with 3 Dovecot Director v2.2.36 and 
> director_consistent_hashing = yes ;-)
> 
> Now I would like to upgrade to 2.3.7, first only Director and after also 
> Backend.
> 
> Can works fine a ring of director with mixed 2.2 and 2.3 version?
> 
> Mi idea is to setup a new Director server with 2.3, stop one server with 2.2 
> and insert the new 2.3 in the current ring to check if works fine.
> 
> If all works fine I will replace all Director 2.2 with 2.3 version.
> 

There's no known reason why it wouldn't work. But be prepared in case there is 
an unknown reason.



Re: auth: Warning: Event 0x1280fe20 leaked

2019-07-18 Thread Jos Chrispijn via dovecot

On 17-7-19 21:38, Timo Sirainen wrote:
What's your doveconf -n? I suppose this is coming either when 
stopping/reloading, or maybe auth process stops when it's been idling 
for 1 minute. Do you use Postfix/Exim (or something else) that 
authenticates via Dovecot?


# 2.3.7 (494d20bdc):
# OS: FreeBSD 12.0-RELEASE-p7 amd64  zfs
# Hostname: poseidon.cloudzeeland.nl

auth_mechanisms = plain login
disable_plaintext_auth = no
mail_location = mbox:/home/%u:INBOX=/var/mail/%u
mail_privileged_group = mail
passdb {
  driver = pam
}
protocols = imap
service auth {
  unix_listener auth-client {
    group = mail
    mode = 0660
    user = postfix
  }
  unix_listener auth-master {
    mode = 0666
  }
  user = x
}
service imap-login {
  inet_listener imap {
    address = xxx.xxx.xxx.xxx
  }
  inet_listener imaps {
    address = xxx.xxx.xxx.xxx
  }
}
ssl_ca = 

Dovecot Director upgrade from 2.2 to 2.3

2019-07-18 Thread Alessio Cecchi via dovecot

Hi,

I have a setup with 3 Dovecot Director v2.2.36 and 
director_consistent_hashing = yes ;-)


Now I would like to upgrade to 2.3.7, first only Director and after also 
Backend.


Can works fine a ring of director with mixed 2.2 and 2.3 version?

Mi idea is to setup a new Director server with 2.3, stop one server with 
2.2 and insert the new 2.3 in the current ring to check if works fine.


If all works fine I will replace all Director 2.2 with 2.3 version.

Thanks

--
Alessio Cecchi
Postmaster @ http://www.qboxmail.it
https://www.linkedin.com/in/alessice