Ubuntu 18.04, AMD Opteron, Dovecot Version 2.3.3, local file storage.Ā I
believe it's one of my users checking mail remotely via mobile - don't
remember if it's an iPhone or Android.
gdb backtrace:
Reading symbols from /usr/local/libexec/dovecot/imap...done.
[New LWP 13852]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `dovecot/imap [kkhany(a)amfes.c'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0Ā event_want_debug_log (event=event@entry=0x0,
source_filename=source_filename@entry=0x7efd84178aa3 "mail-storage.c",
Ā Ā Ā source_linenum=source_linenum@entry=1261) at event-log.c:120
120Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā if (event->forced_debug)
(gdb) bt full
#0Ā event_want_debug_log (event=event@entry=0x0,
source_filename=source_filename@entry=0x7efd84178aa3 "mail-storage.c",
Ā Ā Ā source_linenum=source_linenum@entry=1261) at event-log.c:120
Ā Ā Ā Ā Ā Ā Ā ctx = {type = LOG_TYPE_DEBUG, exit_status = 0, timestamp = 0x0,
timestamp_usecs = 0, log_prefix = 0x0,
Ā Ā Ā Ā Ā Ā Ā Ā Ā log_prefix_type_pos = 0}
#1Ā 0x00007efd83dc0986 in event_want_debug (event=event@entry=0x0,
Ā Ā Ā source_filename=source_filename@entry=0x7efd84178aa3
"mail-storage.c", source_linenum=source_linenum@entry=1261)
Ā Ā Ā at event-log.c:140
No locals.
#2Ā 0x00007efd840bf270 in mailbox_open_full
(box=box@entry=0x55704dc81058, input=input@entry=0x0) at mail-storage.c:1259
Ā Ā Ā Ā Ā Ā Ā _tmp_event = 0x0
Ā Ā Ā Ā Ā Ā Ā ret = <optimized out>
#3Ā 0x00007efd840bf57a in mailbox_open_full (input=0x0,
box=0x55704dc81058) at mail-storage.c:1368
Ā Ā Ā Ā Ā Ā Ā ret = <optimized out>
Ā Ā Ā Ā Ā Ā Ā ret = <optimized out>
Ā Ā Ā Ā Ā Ā Ā _tmp_event = <optimized out>
Ā Ā Ā Ā Ā Ā Ā _data_stack_cur_id = <optimized out>
Ā Ā Ā Ā Ā Ā Ā _data_stack_cur_id = <optimized out>
#4Ā mailbox_open (box=0x55704dc81058) at mail-storage.c:1349
No locals.
#5Ā 0x000055704c36a31b in select_open (readonly=false,
mailbox=<optimized out>, ctx=0x55704dc13bc8) at cmd-select.c:288
Ā Ā Ā Ā Ā Ā Ā client = 0x55704dc11de8
Ā Ā Ā Ā Ā Ā Ā status = {messages = 1830951344, recent = 32766, unseen =
2391910144, uidvalidity = 1475818629, uidnext = 1830951424,
Ā Ā Ā Ā Ā Ā Ā Ā Ā first_unseen_seq = 32766, first_recent_uid = 1832402502,
last_cached_seq = 32766, highest_modseq = 0,
Ā Ā Ā Ā Ā Ā Ā Ā Ā highest_pvt_modseq = 4294967296, keywords = 0x55704dbf1380,
permanent_flags = 1280910144, flags = 21872,
Ā Ā Ā Ā Ā Ā Ā Ā Ā permanent_keywords = false, allow_new_keywords = false,
nonpermanent_modseqs = false, no_modseq_tracking = false,
Ā Ā Ā Ā Ā Ā Ā Ā Ā have_guids = false, have_save_guids = true, have_only_guid128
= false}
Ā Ā Ā Ā Ā Ā Ā flags = <optimized out>
---Type <return> to continue, or q <return> to quit---
Ā Ā Ā Ā Ā Ā Ā ret = 0
Ā Ā Ā Ā Ā Ā Ā client = <optimized out>
Ā Ā Ā Ā Ā Ā Ā status = <optimized out>
Ā Ā Ā Ā Ā Ā Ā flags = <optimized out>
Ā Ā Ā Ā Ā Ā Ā ret = <optimized out>
#6Ā cmd_select_full (cmd=<optimized out>, readonly=<optimized out>) at
cmd-select.c:417
Ā Ā Ā Ā Ā Ā Ā client = 0x55704dc11de8
Ā Ā Ā Ā Ā Ā Ā ctx = <optimized out>
Ā Ā Ā Ā Ā Ā Ā args = 0x55704dbef690
Ā Ā Ā Ā Ā Ā Ā list_args = 0x5d0000006e
Ā Ā Ā Ā Ā Ā Ā mailbox = 0x55704dbe1540 "shared"
Ā Ā Ā Ā Ā Ā Ā error = 0x55704dc11de8 ""
Ā Ā Ā Ā Ā Ā Ā ret = <optimized out>
Ā Ā Ā Ā Ā Ā Ā __func__ = "cmd_select_full"
#7Ā 0x000055704c371e30 in command_exec (cmd=cmd@entry=0x55704dc13a38) at
imap-commands.c:201
Ā Ā Ā Ā Ā Ā Ā hook = 0x55704dbeb0f0
Ā Ā Ā Ā Ā Ā Ā finished = <optimized out>
Ā Ā Ā Ā Ā Ā Ā __func__ = "command_exec"
#8Ā 0x000055704c3701d2 in client_command_input (cmd=<optimized out>,
cmd@entry=0x55704dc13a38) at imap-client.c:1152
Ā Ā Ā Ā Ā Ā Ā client = 0x55704dc11de8
Ā Ā Ā Ā Ā Ā Ā command = <optimized out>
Ā Ā Ā Ā Ā Ā Ā __func__ = "client_command_input"
#9Ā 0x000055704c370274 in client_command_input (cmd=<optimized out>) at
imap-client.c:1215
Ā Ā Ā Ā Ā Ā Ā client = 0x55704dc11de8
Ā Ā Ā Ā Ā Ā Ā command = <optimized out>
Ā Ā Ā Ā Ā Ā Ā __func__ = "client_command_input"
#10 0x000055704c370675 in client_handle_next_command
(remove_io_r=<synthetic pointer>, client=0x55704dc11de8) at
imap-client.c:1257
---Type <return> to continue, or q <return> to quit---
No locals.
#11 client_handle_input (client=0x55704dc11de8) at imap-client.c:1271
Ā Ā Ā Ā Ā Ā Ā _data_stack_cur_id = 3
Ā Ā Ā Ā Ā Ā Ā ret = <optimized out>
Ā Ā Ā Ā Ā Ā Ā remove_io = false
Ā Ā Ā Ā Ā Ā Ā ret = <optimized out>
Ā Ā Ā Ā Ā Ā Ā remove_io = <optimized out>
Ā Ā Ā Ā Ā Ā Ā client = 0x55704dc11de8
Ā Ā Ā Ā Ā Ā Ā handled_commands = <optimized out>
Ā Ā Ā Ā Ā Ā Ā _data_stack_cur_id = <optimized out>
Ā Ā Ā Ā Ā Ā Ā ret = <optimized out>
Ā Ā Ā Ā Ā Ā Ā remove_io = <optimized out>
Ā Ā Ā Ā Ā Ā Ā _data_stack_cur_id = <optimized out>
#12 0x000055704c370ccc in client_input (client=0x55704dc11de8) at
imap-client.c:1317
Ā Ā Ā Ā Ā Ā Ā cmd = 0x55704dc0bcb0
Ā Ā Ā Ā Ā Ā Ā output = 0x55704dc2d150
Ā Ā Ā Ā Ā Ā Ā bytes = 17
Ā Ā Ā Ā Ā Ā Ā __func__ = "client_input"
#13 0x00007efd83ddae0f in io_loop_call_io (io=0x55704dc13910) at
ioloop.c:698
Ā Ā Ā Ā Ā Ā Ā ioloop = 0x55704dbe9ee0
Ā Ā Ā Ā Ā Ā Ā t_id = 2
Ā Ā Ā Ā Ā Ā Ā __func__ = "io_loop_call_io"
#14 0x00007efd83ddc7c6 in io_loop_handler_run_internal
(ioloop=ioloop@entry=0x55704dbe9ee0) at ioloop-epoll.c:221
Ā Ā Ā Ā Ā Ā Ā ctx = 0x55704dbedc00
Ā Ā Ā Ā Ā Ā Ā events = <optimized out>
Ā Ā Ā Ā Ā Ā Ā event = <optimized out>
Ā Ā Ā Ā Ā Ā Ā list = 0x55704dc13970
---Type <return> to continue, or q <return> to quit---
Ā Ā Ā Ā Ā Ā Ā io = <optimized out>
Ā Ā Ā Ā Ā Ā Ā tv = {tv_sec = 1799, tv_usec = 999365}
Ā Ā Ā Ā Ā Ā Ā events_count = <optimized out>
Ā Ā Ā Ā Ā Ā Ā msecs = <optimized out>
Ā Ā Ā Ā Ā Ā Ā ret = <optimized out>
Ā Ā Ā Ā Ā Ā Ā i = 0
Ā Ā Ā Ā Ā Ā Ā j = <optimized out>
Ā Ā Ā Ā Ā Ā Ā call = <optimized out>
Ā Ā Ā Ā Ā Ā Ā __func__ = "io_loop_handler_run_internal"
#15 0x00007efd83ddaf1c in io_loop_handler_run (ioloop=<optimized out>)
at ioloop.c:750
No locals.
#16 0x00007efd83ddb138 in io_loop_run (ioloop=0x55704dbe9ee0) at
ioloop.c:723
Ā Ā Ā Ā Ā Ā Ā __func__ = "io_loop_run"
#17 0x00007efd83d50873 in master_service_run (service=0x55704dbe9d70,
callback=<optimized out>) at master-service.c:775
No locals.
#18 0x000055704c362611 in main (argc=<optimized out>, argv=<optimized
out>) at main.c:521
Ā Ā Ā Ā Ā Ā Ā set_roots = {0x55704c5909a0 <smtp_submit_setting_parser_info>,
0x55704c5906c0 <imap_setting_parser_info>, 0x0}
Ā Ā Ā Ā Ā Ā Ā login_set = {auth_socket_path = 0x55704dbe12a8 "\340\022\276MpU",
Ā Ā Ā Ā Ā Ā Ā Ā Ā postlogin_socket_path = 0x55704dbe12f0 "m 174.237.3.103
SELECT]", postlogin_timeout_secs = 60,
Ā Ā Ā Ā Ā Ā Ā Ā Ā callback = 0x55704c37ed60 <login_client_connected>,
failure_callback = 0x55704c37e530 <login_client_failed>,
Ā Ā Ā Ā Ā Ā Ā Ā Ā request_auth_token = true}
Ā Ā Ā Ā Ā Ā Ā service_flags = <optimized out>
Ā Ā Ā Ā Ā Ā Ā storage_service_flags = <optimized out>
Ā Ā Ā Ā Ā Ā Ā username = 0x0
Ā Ā Ā Ā Ā Ā Ā auth_socket_path = <optimized out>
Ā Ā Ā Ā Ā Ā Ā c = <optimized out>
Ā Ā Ā Ā Ā Ā Ā error = 0x0
doveconf -n:
# 2.3.3 (dcead646b): /usr/local/etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.3 (f018bbab)
# OS: Linux 4.15.0-43-generic x86_64 Ubuntu 18.04.1 LTS
# Hostname: bubba.amfes.lan
auth_cache_size = 4 k
auth_master_user_separator = *
auth_mechanisms = plain login
default_login_user = nobody
default_vsz_limit = 1 G
dict {
Ā acl = mysql:/usr/local/etc/dovecot/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
imap_client_workarounds = tb-extra-mailbox-sep
imap_idle_notify_interval = 29 mins
listen = *
mail_attachment_hash = %{sha512}
mail_plugins = fts fts_solr acl zlib virtual
mail_prefetch_count = 10
mail_shared_explicit_inbox = 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
namespace inbox {
Ā hidden = no
Ā inbox = yes
Ā list = yes
Ā location =
Ā mailbox "Deleted Messages" {
Ā Ā Ā auto = no
Ā Ā Ā autoexpunge = 30 days
Ā Ā Ā special_use = \Trash
Ā }
Ā mailbox Drafts {
Ā Ā Ā auto = subscribe
Ā Ā Ā special_use = \Drafts
Ā }
Ā mailbox INBOX/Archives {
Ā Ā Ā auto = no
Ā Ā Ā special_use = \Archive
Ā }
Ā mailbox Sent {
Ā Ā Ā auto = subscribe
Ā Ā Ā special_use = \Sent
Ā }
Ā mailbox "Sent Items" {
Ā Ā Ā auto = no
Ā Ā Ā special_use = \Sent
Ā }
Ā mailbox "Sent Messages" {
Ā Ā Ā auto = no
Ā Ā Ā special_use = \Sent
Ā }
Ā mailbox Trash {
Ā Ā Ā auto = subscribe
Ā Ā Ā autoexpunge = 30 days
Ā Ā Ā special_use = \Trash
Ā }
Ā mailbox virtual/Flagged {
Ā Ā Ā comment = All my flagged messages
Ā Ā Ā special_use = \Flagged
Ā }
Ā prefix =
Ā separator = /
Ā subscriptions = yes
Ā type = private
}
namespace usershares {
Ā list = children
Ā location = sdbox:/var/mail/%%d/%%n/sdbox
Ā prefix = shared/%%n/
Ā separator = /
Ā subscriptions = no
Ā type = shared
}
namespace virtual {
Ā list = children
Ā location = virtual:/var/mail/%d/%n/virtual
Ā prefix = virtual/
Ā separator = /
Ā subscriptions = no
}
passdb {
Ā args = /usr/local/etc/dovecot/master-users
Ā driver = passwd-file
Ā master = yes
}
passdb {
Ā args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
Ā driver = ldap
}
plugin {
Ā acl = vfile:/usr/local/etc/dovecot/global-acls:cache_secs=300
Ā acl_shared_dict = proxy::acl
Ā fts = solr
Ā fts_autoindex = yes
Ā fts_solr = break-imap-search url=http://127.0.0.1:8983/solr/dovecot/
Ā mailbox_alias_new = Sent Messages
Ā mailbox_alias_new2 = Sent Items
Ā mailbox_alias_new3 = Deleted Messages
Ā mailbox_alias_old = Sent
Ā mailbox_alias_old2 = Sent
Ā mailbox_alias_old3 = Trash
Ā sieve = file:~/sieve;active=~/.dovecot.sieve
}
protocols = imap lmtp sieve
service auth {
Ā unix_listener /var/spool/postfix/private/auth {
Ā Ā Ā group = postfix
Ā Ā Ā mode = 0660
Ā Ā Ā user = postfix
Ā }
Ā unix_listener auth-userdb {
Ā Ā Ā group = mail
Ā Ā Ā mode = 0600
Ā Ā Ā user = vmail
Ā }
}
service dict {
Ā unix_listener dict {
Ā Ā Ā group = mail
Ā Ā Ā mode = 0660
Ā Ā Ā user = vmail
Ā }
}
service imap-login {
Ā process_min_avail = 10
Ā service_count = 1
}
service imap-postlogin {
Ā executable = script-login /usr/local/etc/dovecot/post-login.sh
Ā user = $default_internal_user
}
service imap {
Ā executable = imap imap-postlogin
}
service lmtp {
Ā process_min_avail = 5
Ā unix_listener /var/spool/postfix/private/dovecot-lmtp {
Ā Ā Ā group = mail
Ā Ā Ā mode = 0666
Ā Ā Ā user = vmail
Ā }
}
service managesieve-login {
Ā inet_listener sieve {
Ā Ā Ā port = 4190
Ā }
Ā inet_listener sieve_deprecated {
Ā Ā Ā port = 2000
Ā }
Ā process_min_avail = 0
Ā service_count = 1
}
ssl_cert = </etc/letsencrypt/live/mail.amfes.com/fullchain.pem
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
Ā driver = prefetch
}
userdb {
Ā args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
Ā driver = ldap
}
verbose_proctitle = yes
protocol lmtp {
Ā mail_plugins = fts fts_solr acl zlib virtual sieve
Ā postmaster_address = postmaster(a)amfes.com
}
protocol lda {
Ā mail_plugins = fts fts_solr acl zlib virtual sieve
}
protocol imap {
Ā mail_max_userip_connections = 50
Ā mail_plugins = fts fts_solr acl zlib virtual imap_acl imap_zlib
mailbox_alias
}
local 192.168.0.2 {
Ā protocol imap {
Ā Ā Ā ssl_cert = </etc/letsencrypt/live/mail.amfes.com/fullchain.pem
Ā Ā Ā ssl_key = # hidden, use -P to show it
Ā }
}
--
Daniel