<div dir="ltr">Hi Marc, <div><br></div><div>I can see the processes are running as a root in container environment. Do you think that still have issues ? </div><div>Here is the processes running inside container:</div><div><br></div><div><font face="monospace">bash-4.2# ps -ef<br>UID        PID  PPID  C STIME TTY          TIME CMD<br>root         1     0  0 Dec27 ?        00:00:00 /bin/bash /bootstrap.sh<br>root         7     1  0 Dec27 ?        00:00:00 /usr/sbin/dovecot -F -c /etc/dovecot/director.conf<br>root         8     1  0 Dec27 ?        00:00:00 /usr/sbin/dovecot -F<br>root         9     1  0 Dec27 ?        00:00:00 sleep 36000d<br>dovecot     10     8  0 Dec27 ?        00:00:00 dovecot-Dovecot/anvil<br>dovecot     14     7  0 Dec27 ?        00:00:00 dovecot-Director/anvil<br>root       267     8  0 Dec27 ?        00:00:00 dovecot-Dovecot/log<br>root       269     8  0 Dec27 ?        00:00:08 dovecot-Dovecot/config<br>root       281     7  0 Dec27 ?        00:00:00 dovecot-Director/log<br>root       283     7  0 Dec27 ?        00:00:00 dovecot-Director/config</font></div><div><font face="monospace"><br></font></div><div><font face="monospace"><br></font><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Thanks & Regards,<br>Naveen <br></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 30, 2019 at 2:56 PM Marc Roos <<a href="mailto:M.Roos@f1-outsourcing.eu">M.Roos@f1-outsourcing.eu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
I have noticed several issues with dovecot, trying to run it without <br>
root. Which is preferable in any container environment. Maybe you would <br>
like me to document these somewhere? So at some point they can be <br>
applied.<br>
<br>
<br>
-----Original Message-----<br>
From: Naveen Reddy [mailto:<a href="mailto:naveenreddy99@gmail.com" target="_blank">naveenreddy99@gmail.com</a>] <br>
Sent: 30 December 2019 09:02<br>
To: Aki Tuomi<br>
Cc: <a href="mailto:dovecot@dovecot.org" target="_blank">dovecot@dovecot.org</a><br>
Subject: Re: Issue running Dovecot in Docker Container<br>
<br>
Hi, I can see those values correctly with the doveconf -nc command. Here <br>
is the part of output:<br>
<br>
bash-4.2# doveconf -nc /etc/dovecot/director.conf # 2.2.36 (1f10bfa63): <br>
/etc/dovecot/director.conf # OS: Linux 4.1.12-112.14.11.el7uek.x86_64 <br>
x86_64 Red Hat Enterprise Linux Server release 7.7 (Maipo) # Hostname: <br>
69b492645b56 auth_debug = yes auth_default_realm = xxxxxxxxxxxxxxxx <br>
auth_verbose = yes base_dir = /var/run/dovecot_director debug_log_path = <br>
$log_path director_mail_servers = xxxxxxxxxxxxxxxxxx director_servers = <br>
xxxxxxxxxxxxxxxxxxxx disable_plaintext_auth = no first_valid_uid = 1000 <br>
hostname = xxxxxxxxxxxxxxxxxxxx info_log_path = $log_path instance_name <br>
= Director lmtp_proxy = yes log_path = /dovecot.log <br>
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c <br>
home=%h<br>
<br>
Thanks & Regards,<br>
Naveen <br>
<br>
<br>
<br>
On Fri, Dec 27, 2019 at 10:08 PM Aki Tuomi <<a href="mailto:aki.tuomi@open-xchange.com" target="_blank">aki.tuomi@open-xchange.com</a>> <br>
wrote:<br>
<br>
<br>
<br>
        Can you check with `doveconf -nc /path/to/director.conf` that the <br>
values are actually set correctly? <br>
<br>
        Aki <br>
<br>
                On 27/12/2019 15:34 Naveen Reddy <<a href="mailto:naveenreddy99@gmail.com" target="_blank">naveenreddy99@gmail.com</a>> <br>
wrote: <br>
<br>
<br>
<br>
                The conf.d files are not included. I have added  !include <br>
conf.d/*.conf to director.conf and reloaded the dovecot and director <br>
services.  <br>
<br>
                conf.d/10-logging also has the following lines: <br>
<br>
                log_path = /dovecot.log <br>
                info_log_path = $log_path <br>
                debug_log_path = $log_path <br>
<br>
<br>
                The /dovecot.log file still shows empty.  Nothing is being <br>
logged to that file. <br>
<br>
<br>
                Thanks & Regards, <br>
                Naveen <br>
<br>
<br>
<br>
                On Thu, Dec 26, 2019 at 10:52 PM Aki Tuomi < <br>
<a href="mailto:aki.tuomi@open-xchange.com" target="_blank">aki.tuomi@open-xchange.com</a>> wrote: <br>
<br>
<br>
<br>
                        Do you have !include or !try_include in director.conf? <br>
The conf.d files are not included otherwise. <br>
<br>
                        Aki <br>
<br>
                                On 26/12/2019 11:27 Naveen Reddy < <br>
<a href="mailto:naveenreddy99@gmail.com" target="_blank">naveenreddy99@gmail.com</a>> wrote: <br>
<br>
<br>
                                I have tried these in the 10-logging.conf but no <br>
luck. There is nothing logged to the file. <br>
<br>
                                bash-4.2# ps -ef<br>
                                UID        PID  PPID  C STIME TTY          TIME CMD<br>
                                root         1     0  0 Dec23 ?        00:00:00 <br>
/bin/bash /bootstrap.sh<br>
                                root         8     1  0 Dec23 ?        00:00:00 <br>
sleep 36000d<br>
                                root     15681     0  0 08:51 pts/1    00:00:00 bash<br>
                                root     16340     0  0 09:19 ?        00:00:00 <br>
/usr/sbin/dovecot -c /etc/dovecot/director.conf<br>
                                dovecot  16341 16340  0 09:19 ?        00:00:00 <br>
dovecot-Director/anvil<br>
                                root     16342 16340  0 09:19 ?        00:00:00 <br>
dovecot-Director/log<br>
                                root     16344 16340  0 09:19 ?        00:00:00 <br>
dovecot-Director/config<br>
                                root     16390     0  0 09:22 ?        00:00:00 <br>
/usr/sbin/dovecot -c /etc/dovecot/dovecot.conf<br>
                                dovecot  16391 16390  0 09:22 ?        00:00:00 <br>
dovecot-Dovecot/anvil<br>
                                root     16392 16390  0 09:22 ?        00:00:00 <br>
dovecot-Dovecot/log<br>
                                root     16394 16390  0 09:22 ?        00:00:00 <br>
dovecot-Dovecot/config<br>
                                root     16406 15681  0 09:22 pts/1    00:00:00 ps <br>
-ef <br>
<br>
<br>
                                The below processes are not starting as well.  <br>
<br>
                                dovecot-Dovecot/auth<br>
                                dovecot-Dovecot/ssl-params<br>
                                dovecot-Director/lmtp<br>
                                dovecot-Director/ssl-params<br>
                                dovecot-Director/imap-login director<br>
<br>
                                Thanks & Regards, <br>
                                Naveen <br>
<br>
<br>
<br>
                                On Tue, Dec 24, 2019 at 10:54 PM Aki Tuomi < <br>
<a href="mailto:aki.tuomi@open-xchange.com" target="_blank">aki.tuomi@open-xchange.com</a>> wrote: <br>
<br>
<br>
<br>
<br>
<br>
                                                On 24/12/2019 12:33 Naveen Reddy < <br>
<a href="mailto:naveenreddy99@gmail.com" target="_blank">naveenreddy99@gmail.com</a>> wrote: <br>
<br>
<br>
                                                Hello,  <br>
<br>
                                                We need help with an issue that we are <br>
running into when we are trying to run Dovecot in Docker container.  <br>
                                                Also how do we enable debugging for <br>
dovecot. Logs doesn't show any info about the issue. <br>
<br>
                                                Below processes are not running when a <br>
Director service is started: <br>
<br>
                                                dovecot-Dovecot/auth<br>
                                                dovecot-Dovecot/ssl-params<br>
                                                dovecot-Director/lmtp<br>
                                                dovecot-Director/ssl-params<br>
                                                dovecot-Director/imap-login director<br>
<br>
                                                Here is the version that I'm running and <br>
including the dovecot -n output below: <br>
<br>
                                                bash-4.2# dovecot --version<br>
                                                2.2.36 <br>
<br>
<br>
                                                bash-4.2# dovecot -n<br>
                                                # 2.2.36 (xxxxx): <br>
/etc/dovecot/dovecot.conf<br>
                                                # OS: Linux 4.1.12-112.14.11.el7uek.x86_64 <br>
x86_64 Red Hat Enterprise Linux Server release 7.7 (Maipo)<br>
                                                # Hostname: XXXXXXX<br>
                                                auth_debug = yes<br>
                                                auth_default_realm = xxxxxxxxxxxx<br>
                                                auth_verbose = yes<br>
                                                disable_plaintext_auth = no<br>
                                                dotlock_use_excl = no<br>
                                                hostname = xxxxxxxxxxxxxxxx<br>
                                                instance_name = Dovecot<br>
                                                login_log_format_elements = user=<%u> <br>
method=%m rip=%r lip=%l mpid=%e %c home=% domain=%d<br>
                                                mail_debug = yes<br>
                                                mail_fsync = always<br>
                                                mail_gid = imapd<br>
                                                mail_home = /xxxxxxxxxxx/%d/%n<br>
                                                mail_location = dbox:~/<br>
                                                mail_uid = imapd<br>
                                                mmap_disable = yes<br>
                                                passdb {<br>
                                                  args = <br>
/etc/dovecot/lookups/ldap-pass.conf<br>
                                                  driver = ldap<br>
                                                }<br>
                                                passdb {<br>
                                                  args = /etc/dovecot/lookups/xxxx.conf<br>
                                                  driver = ldap<br>
                                                }<br>
                                                plugin {<br>
                                                  stats_refresh = 30 secs<br>
                                                  stats_track_cmds = yes<br>
                                                }<br>
                                                protocols = imap lmtp<br>
                                                service auth {<br>
                                                  client_limit = 4096<br>
                                                  unix_listener auth-userdb {<br>
                                                    mode = 0777<br>
                                                  }<br>
                                                }<br>
                                                service imap-login {<br>
                                                  chroot = login<br>
                                                  client_limit = 0<br>
                                                  drop_priv_before_exec = no<br>
                                                  executable = imap-login<br>
                                                  extra_groups =<br>
                                                  group =<br>
                                                  idle_kill = 0<br>
                                                  inet_listener imap {<br>
                                                    address =<br>
                                                    port = 1144<br>
                                                    ssl = no<br>
                                                  }<br>
                                                  inet_listener imaps {<br>
                                                    address =<br>
                                                    port = 994<br>
                                                    ssl = yes<br>
                                                  }<br>
                                                  privileged_group =<br>
                                                  process_limit = 0<br>
                                                  process_min_avail = 0<br>
                                                  protocol = imap<br>
                                                  service_count = 50<br>
                                                  type = login<br>
                                                  user = $default_login_user<br>
                                                  vsz_limit = 18446744073709551615 B<br>
                                                }<br>
                                                service imap {<br>
                                                  service_count = 50<br>
                                                }<br>
                                                service lmtp {<br>
                                                  executable = lmtp -L<br>
                                                  inet_listener lmtp {<br>
                                                    address =<br>
                                                    port = 10025<br>
                                                  }<br>
                                                }<br>
                                                service stats {<br>
                                                  fifo_listener stats-mail {<br>
                                                    mode = 0600<br>
                                                    user = imapd<br>
                                                  }<br>
                                                }<br>
                                                ssl_cert = </xxxxxxx/cert/dovecot.pem<br>
                                                ssl_cipher_list = XXXXXX<br>
                                                ssl_key =  # hidden, use -P to show it<br>
                                                ssl_protocols = XXXXX<br>
                                                userdb {<br>
                                                  args = <br>
/etc/dovecot/lookups/ldap-user.conf<br>
                                                  driver = ldap<br>
                                                }<br>
                                                userdb {<br>
                                                  args = /etc/dovecot/lookups/xxxxxxx.conf<br>
                                                  driver = ldap<br>
                                                } <br>
<br>
<br>
                                                Thanks & Regards, <br>
                                                Naveen <br>
<br>
<br>
<br>
                                        Try setting <br>
<br>
                                        log_path=/dovecot.log <br>
                                        info_log_path=$log_path <br>
                                        debug_log_path=$log_path <br>
                                        ---<br>
                                        Aki Tuomi<br>
<br>
<br>
                        ---<br>
                        Aki Tuomi<br>
<br>
<br>
        ---<br>
        Aki Tuomi<br>
<br>
<br>
</blockquote></div>