The conf.d files are not included. I have added !include conf.d/*.conf to director.conf and reloaded the dovecot and director services. conf.d/10-logging also has the following lines: log_path = /dovecot.log info_log_path = $log_path debug_log_path = $log_path The /dovecot.log file still shows empty. Nothing is being logged to that file. Thanks & Regards, Naveen On Thu, Dec 26, 2019 at 10:52 PM Aki Tuomi <aki.tuomi at open-xchange.com> wrote:> Do you have !include or !try_include in director.conf? The conf.d files > are not included otherwise. > > Aki > > On 26/12/2019 11:27 Naveen Reddy <naveenreddy99 at gmail.com> wrote: > > > I have tried these in the 10-logging.conf but no luck. There is nothing > logged to the file. > > bash-4.2# ps -ef > UID PID PPID C STIME TTY TIME CMD > root 1 0 0 Dec23 ? 00:00:00 /bin/bash /bootstrap.sh > root 8 1 0 Dec23 ? 00:00:00 sleep 36000d > root 15681 0 0 08:51 pts/1 00:00:00 bash > root 16340 0 0 09:19 ? 00:00:00 /usr/sbin/dovecot -c > /etc/dovecot/director.conf > dovecot 16341 16340 0 09:19 ? 00:00:00 dovecot-Director/anvil > root 16342 16340 0 09:19 ? 00:00:00 dovecot-Director/log > root 16344 16340 0 09:19 ? 00:00:00 dovecot-Director/config > root 16390 0 0 09:22 ? 00:00:00 /usr/sbin/dovecot -c > /etc/dovecot/dovecot.conf > dovecot 16391 16390 0 09:22 ? 00:00:00 dovecot-Dovecot/anvil > root 16392 16390 0 09:22 ? 00:00:00 dovecot-Dovecot/log > root 16394 16390 0 09:22 ? 00:00:00 dovecot-Dovecot/config > root 16406 15681 0 09:22 pts/1 00:00:00 ps -ef > > The below processes are not starting as well. > > dovecot-Dovecot/auth > dovecot-Dovecot/ssl-params > dovecot-Director/lmtp > dovecot-Director/ssl-params > dovecot-Director/imap-login director > > > Thanks & Regards, > Naveen > > > On Tue, Dec 24, 2019 at 10:54 PM Aki Tuomi < aki.tuomi at open-xchange.com> > wrote: > > > On 24/12/2019 12:33 Naveen Reddy < naveenreddy99 at gmail.com> wrote: > > > Hello, > > We need help with an issue that we are running into when we are trying to > run Dovecot in Docker container. > Also how do we enable debugging for dovecot. Logs doesn't show any info > about the issue. > > Below processes are not running when a Director service is started: > > dovecot-Dovecot/auth > dovecot-Dovecot/ssl-params > dovecot-Director/lmtp > dovecot-Director/ssl-params > dovecot-Director/imap-login director > > > Here is the version that I'm running and including the dovecot -n output > below: > > bash-4.2# dovecot --version > 2.2.36 > > bash-4.2# dovecot -n > # 2.2.36 (xxxxx): /etc/dovecot/dovecot.conf > # OS: Linux 4.1.12-112.14.11.el7uek.x86_64 x86_64 Red Hat Enterprise Linux > Server release 7.7 (Maipo) > # Hostname: XXXXXXX > auth_debug = yes > auth_default_realm = xxxxxxxxxxxx > auth_verbose = yes > disable_plaintext_auth = no > dotlock_use_excl = no > hostname = xxxxxxxxxxxxxxxx > instance_name = Dovecot > login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c > home=% domain=%d > mail_debug = yes > mail_fsync = always > mail_gid = imapd > mail_home = /xxxxxxxxxxx/%d/%n > mail_location = dbox:~/ > mail_uid = imapd > mmap_disable = yes > passdb { > args = /etc/dovecot/lookups/ldap-pass.conf > driver = ldap > } > passdb { > args = /etc/dovecot/lookups/xxxx.conf > driver = ldap > } > plugin { > stats_refresh = 30 secs > stats_track_cmds = yes > } > protocols = imap lmtp > service auth { > client_limit = 4096 > unix_listener auth-userdb { > mode = 0777 > } > } > service imap-login { > chroot = login > client_limit = 0 > drop_priv_before_exec = no > executable = imap-login > extra_groups > group > idle_kill = 0 > inet_listener imap { > address > port = 1144 > ssl = no > } > inet_listener imaps { > address > port = 994 > ssl = yes > } > privileged_group > process_limit = 0 > process_min_avail = 0 > protocol = imap > service_count = 50 > type = login > user = $default_login_user > vsz_limit = 18446744073709551615 B > } > service imap { > service_count = 50 > } > service lmtp { > executable = lmtp -L > inet_listener lmtp { > address > port = 10025 > } > } > service stats { > fifo_listener stats-mail { > mode = 0600 > user = imapd > } > } > ssl_cert = </xxxxxxx/cert/dovecot.pem > ssl_cipher_list = XXXXXX > ssl_key = # hidden, use -P to show it > ssl_protocols = XXXXX > userdb { > args = /etc/dovecot/lookups/ldap-user.conf > driver = ldap > } > userdb { > args = /etc/dovecot/lookups/xxxxxxx.conf > driver = ldap > } > > Thanks & Regards, > Naveen > > > Try setting > > log_path=/dovecot.log > info_log_path=$log_path > debug_log_path=$log_path > > --- > Aki Tuomi > > > --- > Aki Tuomi > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20191227/199db957/attachment-0001.html>
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> Can you check with `doveconf -nc /path/to/director.conf` that the values are actually set correctly? </div> <div> <br> </div> <div> Aki </div> <blockquote type="cite"> <div> On 27/12/2019 15:34 Naveen Reddy <naveenreddy99@gmail.com> wrote: </div> <div> <br> </div> <div> <br> </div> <div dir="ltr"> <div> <br> </div>The conf.d files are not included. I have added <span style="background-color: #eeeeee; color: #3e4349; font-family: Consolas,Menlo,'DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace; font-size: 0.9em;">!include conf.d/*.conf </span>to director.conf and reloaded the dovecot and director services. <div> <div data-smartmail="gmail_signature" class="gmail_signature"> <br> </div> <div data-smartmail="gmail_signature" class="gmail_signature"> conf.d/10-logging also has the following lines: </div> <div data-smartmail="gmail_signature" class="gmail_signature"> <br> </div> <div data-smartmail="gmail_signature" class="gmail_signature"> log_path = /dovecot.log <br>info_log_path = $log_path <br>debug_log_path = $log_path <br> </div> <div data-smartmail="gmail_signature" class="gmail_signature" dir="ltr"> <br> </div> <div data-smartmail="gmail_signature" class="gmail_signature"> The /dovecot.log file still shows empty. Nothing is being logged to that file. </div> <div data-smartmail="gmail_signature" class="gmail_signature"> <br> </div> <div data-smartmail="gmail_signature" class="gmail_signature"> <br> </div> <div data-smartmail="gmail_signature" class="gmail_signature" dir="ltr"> Thanks & Regards, <br>Naveen <br> </div> </div> <br> </div> <br> <div class="gmail_quote"> <div class="gmail_attr" dir="ltr"> On Thu, Dec 26, 2019 at 10:52 PM Aki Tuomi < <a href="mailto:aki.tuomi@open-xchange.com">aki.tuomi@open-xchange.com</a>> wrote: <br> </div> <blockquote> <u></u> <div> <div> Do you have !include or !try_include in director.conf? The conf.d files are not included otherwise. </div> <div> <br> </div> <div> Aki </div> <blockquote type="cite"> <div> On 26/12/2019 11:27 Naveen Reddy < <a target="_blank" href="mailto:naveenreddy99@gmail.com" rel="noopener">naveenreddy99@gmail.com</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <div dir="ltr"> I have tried these in the 10-logging.conf but no luck. There is nothing logged to the file. <div> <br> </div> <div> <span style="font-family: monospace;">bash-4.2# ps -ef<br>UID PID PPID C STIME TTY TIME CMD<br>root 1 0 0 Dec23 ? 00:00:00 /bin/bash /bootstrap.sh<br>root 8 1 0 Dec23 ? 00:00:00 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 /usr/sbin/dovecot -c /etc/dovecot/director.conf<br>dovecot 16341 16340 0 09:19 ? 00:00:00 dovecot-Director/anvil<br>root 16342 16340 0 09:19 ? 00:00:00 dovecot-Director/log<br>root 16344 16340 0 09:19 ? 00:00:00 dovecot-Director/config<br>root 16390 0 0 09:22 ? 00:00:00 /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf<br>dovecot 16391 16390 0 09:22 ? 00:00:00 dovecot-Dovecot/anvil<br>root 16392 16390 0 09:22 ? 00:00:00 dovecot-Dovecot/log<br>root 16394 16390 0 09:22 ? 00:00:00 dovecot-Dovecot/config<br>root 16406 15681 0 09:22 pts/1 00:00:00 ps -ef</span> <br> </div> <div> <br> </div> <div> The below processes are not starting as well. </div> <div> <br> </div> <div> <pre style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-height: 30em; overflow: auto; color: #172b4d; font-size: 12px; background-color: #f4f5f7; outline: none;">dovecot-Dovecot/auth dovecot-Dovecot/ssl-params dovecot-Director/lmtp dovecot-Director/ssl-params dovecot-Director/imap-login director</pre> <pre style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-height: 30em; overflow: auto; color: #172b4d; font-size: 12px; background-color: #f4f5f7; outline: none;"><br></pre> <div> <div dir="ltr"> Thanks & Regards, <br>Naveen <br> </div> </div> <br> </div> </div> <br> <div class="gmail_quote"> <div dir="ltr" class="gmail_attr"> On Tue, Dec 24, 2019 at 10:54 PM Aki Tuomi < <a target="_blank" href="mailto:aki.tuomi@open-xchange.com" rel="noopener">aki.tuomi@open-xchange.com</a>> wrote: <br> </div> <blockquote> <u></u> <div> <div> <br> </div> <blockquote type="cite"> <div> On 24/12/2019 12:33 Naveen Reddy < <a target="_blank" href="mailto:naveenreddy99@gmail.com" rel="noopener">naveenreddy99@gmail.com</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <div dir="ltr"> <div> Hello, </div> <div> <br> </div> <div> We need help with an issue that we are running into when we are trying to run Dovecot in Docker container. </div> <div> Also how do we enable debugging for dovecot. Logs doesn't show any info about the issue. </div> <div> <br> </div> <div> Below processes are not running when a Director service is started: </div> <div> <br> </div> <div> <pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; max-height: 30em; overflow: auto; white-space: pre-wrap; color: #172b4d; font-size: 12px; background-color: #f4f5f7; outline: none;">dovecot-Dovecot/auth dovecot-Dovecot/ssl-params dovecot-Director/lmtp dovecot-Director/ssl-params dovecot-Director/imap-login director</pre> </div> <div> <br> </div> <div> Here is the version that I'm running and including the dovecot -n output below: </div> <div> <br> </div> <div> <span style="font-family: monospace;">bash-4.2# dovecot --version<br>2.2.36</span> <br> </div> <div> <br> </div> <div> <span style="font-family: monospace;">bash-4.2# dovecot -n<br># 2.2.36 (xxxxx): /etc/dovecot/dovecot.conf<br># OS: Linux 4.1.12-112.14.11.el7uek.x86_64 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> 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 = /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 = /etc/dovecot/lookups/ldap-user.conf<br> driver = ldap<br>}<br>userdb {<br> args = /etc/dovecot/lookups/xxxxxxx.conf<br> driver = ldap<br>}</span> <br> </div> <br clear="all"> <div> <div dir="ltr"> Thanks & Regards, <br>Naveen <br> </div> </div> </div> </blockquote> <div> <br> </div> <div> Try setting </div> <div> <br> </div> <div> log_path=/dovecot.log </div> <div> info_log_path=$log_path </div> <div> debug_log_path=$log_path </div> <div> <pre>--- Aki Tuomi</pre> </div> </div> </blockquote> </div> </blockquote> <div> <br> </div> <div> <pre>--- Aki Tuomi</pre> </div> </div> </blockquote> </div> </blockquote> <div> <br> </div> <div class="io-ox-signature"> <pre>--- Aki Tuomi</pre> </div> </body> </html>
Hi, I can see those values correctly with the doveconf -nc command. Here is the part of output: bash-4.2# doveconf -nc /etc/dovecot/director.conf # 2.2.36 (1f10bfa63): /etc/dovecot/director.conf # OS: Linux 4.1.12-112.14.11.el7uek.x86_64 x86_64 Red Hat Enterprise Linux Server release 7.7 (Maipo) # Hostname: 69b492645b56 auth_debug = yes auth_default_realm = xxxxxxxxxxxxxxxx auth_verbose = yes base_dir = /var/run/dovecot_director debug_log_path = $log_path director_mail_servers = xxxxxxxxxxxxxxxxxx director_servers = xxxxxxxxxxxxxxxxxxxx disable_plaintext_auth = no first_valid_uid = 1000 hostname = xxxxxxxxxxxxxxxxxxxx info_log_path = $log_path instance_name = Director lmtp_proxy = yes log_path = /dovecot.log login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c home=%h Thanks & Regards, Naveen On Fri, Dec 27, 2019 at 10:08 PM Aki Tuomi <aki.tuomi at open-xchange.com> wrote:> Can you check with `doveconf -nc /path/to/director.conf` that the values > are actually set correctly? > > Aki > > On 27/12/2019 15:34 Naveen Reddy <naveenreddy99 at gmail.com> wrote: > > > > The conf.d files are not included. I have added !include conf.d/*.conf to > director.conf and reloaded the dovecot and director services. > > conf.d/10-logging also has the following lines: > > log_path = /dovecot.log > info_log_path = $log_path > debug_log_path = $log_path > > The /dovecot.log file still shows empty. Nothing is being logged to that > file. > > > Thanks & Regards, > Naveen > > > On Thu, Dec 26, 2019 at 10:52 PM Aki Tuomi < aki.tuomi at open-xchange.com> > wrote: > > Do you have !include or !try_include in director.conf? The conf.d files > are not included otherwise. > > Aki > > On 26/12/2019 11:27 Naveen Reddy < naveenreddy99 at gmail.com> wrote: > > > I have tried these in the 10-logging.conf but no luck. There is nothing > logged to the file. > > bash-4.2# ps -ef > UID PID PPID C STIME TTY TIME CMD > root 1 0 0 Dec23 ? 00:00:00 /bin/bash /bootstrap.sh > root 8 1 0 Dec23 ? 00:00:00 sleep 36000d > root 15681 0 0 08:51 pts/1 00:00:00 bash > root 16340 0 0 09:19 ? 00:00:00 /usr/sbin/dovecot -c > /etc/dovecot/director.conf > dovecot 16341 16340 0 09:19 ? 00:00:00 dovecot-Director/anvil > root 16342 16340 0 09:19 ? 00:00:00 dovecot-Director/log > root 16344 16340 0 09:19 ? 00:00:00 dovecot-Director/config > root 16390 0 0 09:22 ? 00:00:00 /usr/sbin/dovecot -c > /etc/dovecot/dovecot.conf > dovecot 16391 16390 0 09:22 ? 00:00:00 dovecot-Dovecot/anvil > root 16392 16390 0 09:22 ? 00:00:00 dovecot-Dovecot/log > root 16394 16390 0 09:22 ? 00:00:00 dovecot-Dovecot/config > root 16406 15681 0 09:22 pts/1 00:00:00 ps -ef > > The below processes are not starting as well. > > dovecot-Dovecot/auth > dovecot-Dovecot/ssl-params > dovecot-Director/lmtp > dovecot-Director/ssl-params > dovecot-Director/imap-login director > > > Thanks & Regards, > Naveen > > > On Tue, Dec 24, 2019 at 10:54 PM Aki Tuomi < aki.tuomi at open-xchange.com> > wrote: > > > On 24/12/2019 12:33 Naveen Reddy < naveenreddy99 at gmail.com> wrote: > > > Hello, > > We need help with an issue that we are running into when we are trying to > run Dovecot in Docker container. > Also how do we enable debugging for dovecot. Logs doesn't show any info > about the issue. > > Below processes are not running when a Director service is started: > > dovecot-Dovecot/auth > dovecot-Dovecot/ssl-params > dovecot-Director/lmtp > dovecot-Director/ssl-params > dovecot-Director/imap-login director > > > Here is the version that I'm running and including the dovecot -n output > below: > > bash-4.2# dovecot --version > 2.2.36 > > bash-4.2# dovecot -n > # 2.2.36 (xxxxx): /etc/dovecot/dovecot.conf > # OS: Linux 4.1.12-112.14.11.el7uek.x86_64 x86_64 Red Hat Enterprise Linux > Server release 7.7 (Maipo) > # Hostname: XXXXXXX > auth_debug = yes > auth_default_realm = xxxxxxxxxxxx > auth_verbose = yes > disable_plaintext_auth = no > dotlock_use_excl = no > hostname = xxxxxxxxxxxxxxxx > instance_name = Dovecot > login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c > home=% domain=%d > mail_debug = yes > mail_fsync = always > mail_gid = imapd > mail_home = /xxxxxxxxxxx/%d/%n > mail_location = dbox:~/ > mail_uid = imapd > mmap_disable = yes > passdb { > args = /etc/dovecot/lookups/ldap-pass.conf > driver = ldap > } > passdb { > args = /etc/dovecot/lookups/xxxx.conf > driver = ldap > } > plugin { > stats_refresh = 30 secs > stats_track_cmds = yes > } > protocols = imap lmtp > service auth { > client_limit = 4096 > unix_listener auth-userdb { > mode = 0777 > } > } > service imap-login { > chroot = login > client_limit = 0 > drop_priv_before_exec = no > executable = imap-login > extra_groups > group > idle_kill = 0 > inet_listener imap { > address > port = 1144 > ssl = no > } > inet_listener imaps { > address > port = 994 > ssl = yes > } > privileged_group > process_limit = 0 > process_min_avail = 0 > protocol = imap > service_count = 50 > type = login > user = $default_login_user > vsz_limit = 18446744073709551615 B > } > service imap { > service_count = 50 > } > service lmtp { > executable = lmtp -L > inet_listener lmtp { > address > port = 10025 > } > } > service stats { > fifo_listener stats-mail { > mode = 0600 > user = imapd > } > } > ssl_cert = </xxxxxxx/cert/dovecot.pem > ssl_cipher_list = XXXXXX > ssl_key = # hidden, use -P to show it > ssl_protocols = XXXXX > userdb { > args = /etc/dovecot/lookups/ldap-user.conf > driver = ldap > } > userdb { > args = /etc/dovecot/lookups/xxxxxxx.conf > driver = ldap > } > > Thanks & Regards, > Naveen > > > Try setting > > log_path=/dovecot.log > info_log_path=$log_path > debug_log_path=$log_path > > --- > Aki Tuomi > > > --- > Aki Tuomi > > > --- > Aki Tuomi > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20191230/7fcaeafd/attachment-0001.html>
If you are running your container as root. You will not have the issues I encountered. Dovecot is dropping to the 'dovecot' and 'dovenull'(?) when needed, this is fine. PS. I would not recommend using internal logging, use something like this to log to the host or remote syslog. docker run -v /dev/log:/dev/log -it dovecot-proxy -----Original Message----- Subject: Re: Issue running Dovecot in Docker Container Hi Marc, I can see the processes are running as a root in container environment. Do you think that still have issues ? Here is the processes running inside container: bash-4.2# ps -ef UID PID PPID C STIME TTY TIME CMD root 1 0 0 Dec27 ? 00:00:00 /bin/bash /bootstrap.sh root 7 1 0 Dec27 ? 00:00:00 /usr/sbin/dovecot -F -c /etc/dovecot/director.conf root 8 1 0 Dec27 ? 00:00:00 /usr/sbin/dovecot -F root 9 1 0 Dec27 ? 00:00:00 sleep 36000d dovecot 10 8 0 Dec27 ? 00:00:00 dovecot-Dovecot/anvil dovecot 14 7 0 Dec27 ? 00:00:00 dovecot-Director/anvil root 267 8 0 Dec27 ? 00:00:00 dovecot-Dovecot/log root 269 8 0 Dec27 ? 00:00:08 dovecot-Dovecot/config root 281 7 0 Dec27 ? 00:00:00 dovecot-Director/log root 283 7 0 Dec27 ? 00:00:00 dovecot-Director/config Thanks & Regards, Naveen On Mon, Dec 30, 2019 at 2:56 PM Marc Roos <M.Roos at f1-outsourcing.eu> wrote: I have noticed several issues with dovecot, trying to run it without root. Which is preferable in any container environment. Maybe you would like me to document these somewhere? So at some point they can be applied. -----Original Message----- From: Naveen Reddy [mailto:naveenreddy99 at gmail.com] Sent: 30 December 2019 09:02 To: Aki Tuomi Cc: dovecot at dovecot.org Subject: Re: Issue running Dovecot in Docker Container Hi, I can see those values correctly with the doveconf -nc command. Here is the part of output: bash-4.2# doveconf -nc /etc/dovecot/director.conf # 2.2.36 (1f10bfa63): /etc/dovecot/director.conf # OS: Linux 4.1.12-112.14.11.el7uek.x86_64 x86_64 Red Hat Enterprise Linux Server release 7.7 (Maipo) # Hostname: 69b492645b56 auth_debug = yes auth_default_realm = xxxxxxxxxxxxxxxx auth_verbose = yes base_dir = /var/run/dovecot_director debug_log_path = $log_path director_mail_servers = xxxxxxxxxxxxxxxxxx director_servers = xxxxxxxxxxxxxxxxxxxx disable_plaintext_auth = no first_valid_uid = 1000 hostname = xxxxxxxxxxxxxxxxxxxx info_log_path = $log_path instance_name = Director lmtp_proxy = yes log_path = /dovecot.log login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c home=%h Thanks & Regards, Naveen On Fri, Dec 27, 2019 at 10:08 PM Aki Tuomi <aki.tuomi at open-xchange.com> wrote: Can you check with `doveconf -nc /path/to/director.conf` that the values are actually set correctly? Aki On 27/12/2019 15:34 Naveen Reddy <naveenreddy99 at gmail.com> wrote: The conf.d files are not included. I have added !include conf.d/*.conf to director.conf and reloaded the dovecot and director services. conf.d/10-logging also has the following lines: log_path = /dovecot.log info_log_path = $log_path debug_log_path = $log_path The /dovecot.log file still shows empty. Nothing is being logged to that file. Thanks & Regards, Naveen On Thu, Dec 26, 2019 at 10:52 PM Aki Tuomi < aki.tuomi at open-xchange.com> wrote: Do you have !include or !try_include in director.conf? The conf.d files are not included otherwise. Aki On 26/12/2019 11:27 Naveen Reddy < naveenreddy99 at gmail.com> wrote: I have tried these in the 10-logging.conf but no luck. There is nothing logged to the file. bash-4.2# ps -ef UID PID PPID C STIME TTY TIME CMD root 1 0 0 Dec23 ? 00:00:00 /bin/bash /bootstrap.sh root 8 1 0 Dec23 ? 00:00:00 sleep 36000d root 15681 0 0 08:51 pts/1 00:00:00 bash root 16340 0 0 09:19 ? 00:00:00 /usr/sbin/dovecot -c /etc/dovecot/director.conf dovecot 16341 16340 0 09:19 ? 00:00:00 dovecot-Director/anvil root 16342 16340 0 09:19 ? 00:00:00 dovecot-Director/log root 16344 16340 0 09:19 ? 00:00:00 dovecot-Director/config root 16390 0 0 09:22 ? 00:00:00 /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf dovecot 16391 16390 0 09:22 ? 00:00:00 dovecot-Dovecot/anvil root 16392 16390 0 09:22 ? 00:00:00 dovecot-Dovecot/log root 16394 16390 0 09:22 ? 00:00:00 dovecot-Dovecot/config root 16406 15681 0 09:22 pts/1 00:00:00 ps -ef The below processes are not starting as well. dovecot-Dovecot/auth dovecot-Dovecot/ssl-params dovecot-Director/lmtp dovecot-Director/ssl-params dovecot-Director/imap-login director Thanks & Regards, Naveen On Tue, Dec 24, 2019 at 10:54 PM Aki Tuomi < aki.tuomi at open-xchange.com> wrote: On 24/12/2019 12:33 Naveen Reddy < naveenreddy99 at gmail.com> wrote: Hello, We need help with an issue that we are running into when we are trying to run Dovecot in Docker container. Also how do we enable debugging for dovecot. Logs doesn't show any info about the issue. Below processes are not running when a Director service is started: dovecot-Dovecot/auth dovecot-Dovecot/ssl-params dovecot-Director/lmtp dovecot-Director/ssl-params dovecot-Director/imap-login director Here is the version that I'm running and including the dovecot -n output below: bash-4.2# dovecot --version 2.2.36 bash-4.2# dovecot -n # 2.2.36 (xxxxx): /etc/dovecot/dovecot.conf # OS: Linux 4.1.12-112.14.11.el7uek.x86_64 x86_64 Red Hat Enterprise Linux Server release 7.7 (Maipo) # Hostname: XXXXXXX auth_debug = yes auth_default_realm = xxxxxxxxxxxx auth_verbose = yes disable_plaintext_auth = no dotlock_use_excl = no hostname = xxxxxxxxxxxxxxxx instance_name = Dovecot login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c home=% domain=%d mail_debug = yes mail_fsync = always mail_gid = imapd mail_home = /xxxxxxxxxxx/%d/%n mail_location = dbox:~/ mail_uid = imapd mmap_disable = yes passdb { args = /etc/dovecot/lookups/ldap-pass.conf driver = ldap } passdb { args = /etc/dovecot/lookups/xxxx.conf driver = ldap } plugin { stats_refresh = 30 secs stats_track_cmds = yes } protocols = imap lmtp service auth { client_limit = 4096 unix_listener auth-userdb { mode = 0777 } } service imap-login { chroot = login client_limit = 0 drop_priv_before_exec = no executable = imap-login extra_groups group idle_kill = 0 inet_listener imap { address port = 1144 ssl = no } inet_listener imaps { address port = 994 ssl = yes } privileged_group process_limit = 0 process_min_avail = 0 protocol = imap service_count = 50 type = login user = $default_login_user vsz_limit = 18446744073709551615 B } service imap { service_count = 50 } service lmtp { executable = lmtp -L inet_listener lmtp { address port = 10025 } } service stats { fifo_listener stats-mail { mode = 0600 user = imapd } } ssl_cert = </xxxxxxx/cert/dovecot.pem ssl_cipher_list = XXXXXX ssl_key = # hidden, use -P to show it ssl_protocols = XXXXX userdb { args = /etc/dovecot/lookups/ldap-user.conf driver = ldap } userdb { args = /etc/dovecot/lookups/xxxxxxx.conf driver = ldap } Thanks & Regards, Naveen Try setting log_path=/dovecot.log info_log_path=$log_path debug_log_path=$log_path --- Aki Tuomi --- Aki Tuomi --- Aki Tuomi
Maybe start over with your configuration. Start with default setup, see if everything is running and then start changing the configuration step by step, see when it goes wrong. I saw you have some ldap configs, maybe outside communication fails, acls? sff level? I saw you were using this el7. I am also fan of using 'professional supported' distributions like el7/centos7. But have a look at this alpine linux. My dovecot-proxy container is only 30MB vs 300MB on el7. -----Original Message----- From: Naveen Reddy [mailto:naveenreddy99 at gmail.com] Sent: 30 December 2019 11:19 To: Marc Roos Cc: dovecot Subject: Re: Issue running Dovecot in Docker Container I'm not using internal logging. I'm running the docker with the logging to the host. I have used the same options you have specified. The problem is that the below processes are not running inside docker container whereas the standalone dovecot is running these processes(meaning without container) dovecot-Dovecot/auth dovecot-Dovecot/ssl-params dovecot-Director/lmtp dovecot-Director/ssl-params dovecot-Director/imap-login director Thanks & Regards, Naveen On Mon, Dec 30, 2019 at 3:16 PM > wrote: If you are running your container as root. You will not have the issues I encountered. Dovecot is dropping to the 'dovecot' and 'dovenull'(?) when needed, this is fine. PS. I would not recommend using internal logging, use something like this to log to the host or remote syslog. docker run -v /dev/log:/dev/log -it dovecot-proxy -----Original Message----- Subject: Re: Issue running Dovecot in Docker Container Hi Marc, I can see the processes are running as a root in container environment. Do you think that still have issues ? Here is the processes running inside container: bash-4.2# ps -ef UID PID PPID C STIME TTY TIME CMD root 1 0 0 Dec27 ? 00:00:00 /bin/bash /bootstrap.sh root 7 1 0 Dec27 ? 00:00:00 /usr/sbin/dovecot -F -c /etc/dovecot/director.conf root 8 1 0 Dec27 ? 00:00:00 /usr/sbin/dovecot -F root 9 1 0 Dec27 ? 00:00:00 sleep 36000d dovecot 10 8 0 Dec27 ? 00:00:00 dovecot-Dovecot/anvil dovecot 14 7 0 Dec27 ? 00:00:00 dovecot-Director/anvil root 267 8 0 Dec27 ? 00:00:00 dovecot-Dovecot/log root 269 8 0 Dec27 ? 00:00:08 dovecot-Dovecot/config root 281 7 0 Dec27 ? 00:00:00 dovecot-Director/log root 283 7 0 Dec27 ? 00:00:00 dovecot-Director/config Thanks & Regards, Naveen
Hi Marc, I can see the processes are running as a root in container environment. Do you think that still have issues ? Here is the processes running inside container: bash-4.2# ps -ef UID PID PPID C STIME TTY TIME CMD root 1 0 0 Dec27 ? 00:00:00 /bin/bash /bootstrap.sh root 7 1 0 Dec27 ? 00:00:00 /usr/sbin/dovecot -F -c /etc/dovecot/director.conf root 8 1 0 Dec27 ? 00:00:00 /usr/sbin/dovecot -F root 9 1 0 Dec27 ? 00:00:00 sleep 36000d dovecot 10 8 0 Dec27 ? 00:00:00 dovecot-Dovecot/anvil dovecot 14 7 0 Dec27 ? 00:00:00 dovecot-Director/anvil root 267 8 0 Dec27 ? 00:00:00 dovecot-Dovecot/log root 269 8 0 Dec27 ? 00:00:08 dovecot-Dovecot/config root 281 7 0 Dec27 ? 00:00:00 dovecot-Director/log root 283 7 0 Dec27 ? 00:00:00 dovecot-Director/config Thanks & Regards, Naveen On Mon, Dec 30, 2019 at 2:56 PM Marc Roos <M.Roos at f1-outsourcing.eu> wrote:> > I have noticed several issues with dovecot, trying to run it without > root. Which is preferable in any container environment. Maybe you would > like me to document these somewhere? So at some point they can be > applied. > > > -----Original Message----- > From: Naveen Reddy [mailto:naveenreddy99 at gmail.com] > Sent: 30 December 2019 09:02 > To: Aki Tuomi > Cc: dovecot at dovecot.org > Subject: Re: Issue running Dovecot in Docker Container > > Hi, I can see those values correctly with the doveconf -nc command. Here > is the part of output: > > bash-4.2# doveconf -nc /etc/dovecot/director.conf # 2.2.36 (1f10bfa63): > /etc/dovecot/director.conf # OS: Linux 4.1.12-112.14.11.el7uek.x86_64 > x86_64 Red Hat Enterprise Linux Server release 7.7 (Maipo) # Hostname: > 69b492645b56 auth_debug = yes auth_default_realm = xxxxxxxxxxxxxxxx > auth_verbose = yes base_dir = /var/run/dovecot_director debug_log_path > $log_path director_mail_servers = xxxxxxxxxxxxxxxxxx director_servers > xxxxxxxxxxxxxxxxxxxx disable_plaintext_auth = no first_valid_uid = 1000 > hostname = xxxxxxxxxxxxxxxxxxxx info_log_path = $log_path instance_name > = Director lmtp_proxy = yes log_path = /dovecot.log > login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c > home=%h > > Thanks & Regards, > Naveen > > > > On Fri, Dec 27, 2019 at 10:08 PM Aki Tuomi <aki.tuomi at open-xchange.com> > wrote: > > > > Can you check with `doveconf -nc /path/to/director.conf` that the > values are actually set correctly? > > Aki > > On 27/12/2019 15:34 Naveen Reddy <naveenreddy99 at gmail.com> > > wrote: > > > > The conf.d files are not included. I have added !include > conf.d/*.conf to director.conf and reloaded the dovecot and director > services. > > conf.d/10-logging also has the following lines: > > log_path = /dovecot.log > info_log_path = $log_path > debug_log_path = $log_path > > > The /dovecot.log file still shows empty. Nothing is being > logged to that file. > > > Thanks & Regards, > Naveen > > > > On Thu, Dec 26, 2019 at 10:52 PM Aki Tuomi < > aki.tuomi at open-xchange.com> wrote: > > > > Do you have !include or !try_include in > director.conf? > The conf.d files are not included otherwise. > > Aki > > On 26/12/2019 11:27 Naveen Reddy < > naveenreddy99 at gmail.com> wrote: > > > I have tried these in the 10-logging.conf > but no > luck. There is nothing logged to the file. > > bash-4.2# ps -ef > UID PID PPID C STIME TTY > TIME CMD > root 1 0 0 Dec23 ? > 00:00:00 > /bin/bash /bootstrap.sh > root 8 1 0 Dec23 ? > 00:00:00 > sleep 36000d > root 15681 0 0 08:51 pts/1 > 00:00:00 bash > root 16340 0 0 09:19 ? > 00:00:00 > /usr/sbin/dovecot -c /etc/dovecot/director.conf > dovecot 16341 16340 0 09:19 ? > 00:00:00 > dovecot-Director/anvil > root 16342 16340 0 09:19 ? > 00:00:00 > dovecot-Director/log > root 16344 16340 0 09:19 ? > 00:00:00 > dovecot-Director/config > root 16390 0 0 09:22 ? > 00:00:00 > /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf > dovecot 16391 16390 0 09:22 ? > 00:00:00 > dovecot-Dovecot/anvil > root 16392 16390 0 09:22 ? > 00:00:00 > dovecot-Dovecot/log > root 16394 16390 0 09:22 ? > 00:00:00 > dovecot-Dovecot/config > root 16406 15681 0 09:22 pts/1 > 00:00:00 ps > -ef > > > The below processes are not starting as > well. > > dovecot-Dovecot/auth > dovecot-Dovecot/ssl-params > dovecot-Director/lmtp > dovecot-Director/ssl-params > dovecot-Director/imap-login director > > Thanks & Regards, > Naveen > > > > On Tue, Dec 24, 2019 at 10:54 PM Aki Tuomi > < > aki.tuomi at open-xchange.com> wrote: > > > > > > On 24/12/2019 12:33 Naveen > Reddy < > naveenreddy99 at gmail.com> wrote: > > > Hello, > > We need help with an issue > that we are > running into when we are trying to run Dovecot in Docker container. > Also how do we enable > debugging for > dovecot. Logs doesn't show any info about the issue. > > Below processes are not > running when a > Director service is started: > > dovecot-Dovecot/auth > dovecot-Dovecot/ssl-params > dovecot-Director/lmtp > dovecot-Director/ssl-params > > dovecot-Director/imap-login director > > Here is the version that > I'm running and > including the dovecot -n output below: > > bash-4.2# dovecot --version > 2.2.36 > > > bash-4.2# dovecot -n > # 2.2.36 (xxxxx): > /etc/dovecot/dovecot.conf > # OS: Linux > 4.1.12-112.14.11.el7uek.x86_64 > x86_64 Red Hat Enterprise Linux Server release 7.7 (Maipo) > # Hostname: XXXXXXX > auth_debug = yes > auth_default_realm > xxxxxxxxxxxx > auth_verbose = yes > disable_plaintext_auth = no > dotlock_use_excl = no > hostname = xxxxxxxxxxxxxxxx > instance_name = Dovecot > login_log_format_elements > = user=<%u> > method=%m rip=%r lip=%l mpid=%e %c home=% domain=%d > mail_debug = yes > mail_fsync = always > mail_gid = imapd > mail_home > /xxxxxxxxxxx/%d/%n > mail_location = dbox:~/ > mail_uid = imapd > mmap_disable = yes > passdb { > args > /etc/dovecot/lookups/ldap-pass.conf > driver = ldap > } > passdb { > args > /etc/dovecot/lookups/xxxx.conf > driver = ldap > } > plugin { > stats_refresh = 30 secs > stats_track_cmds = yes > } > protocols = imap lmtp > service auth { > client_limit = 4096 > unix_listener > auth-userdb { > mode = 0777 > } > } > service imap-login { > chroot = login > client_limit = 0 > drop_priv_before_exec > no > executable = imap-login > extra_groups > group > idle_kill = 0 > inet_listener imap { > address > port = 1144 > ssl = no > } > inet_listener imaps { > address > port = 994 > ssl = yes > } > privileged_group > process_limit = 0 > process_min_avail = 0 > protocol = imap > service_count = 50 > type = login > user > $default_login_user > vsz_limit > 18446744073709551615 B > } > service imap { > service_count = 50 > } > service lmtp { > executable = lmtp -L > inet_listener lmtp { > address > port = 10025 > } > } > service stats { > fifo_listener stats-mail > { > mode = 0600 > user = imapd > } > } > ssl_cert > </xxxxxxx/cert/dovecot.pem > ssl_cipher_list = XXXXXX > ssl_key = # hidden, use > -P to show it > ssl_protocols = XXXXX > userdb { > args > /etc/dovecot/lookups/ldap-user.conf > driver = ldap > } > userdb { > args > /etc/dovecot/lookups/xxxxxxx.conf > driver = ldap > } > > > Thanks & Regards, > Naveen > > > > Try setting > > log_path=/dovecot.log > info_log_path=$log_path > debug_log_path=$log_path > --- > Aki Tuomi > > > --- > Aki Tuomi > > > --- > Aki Tuomi > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20191230/27a400c9/attachment-0001.html>
I'm not using internal logging. I'm running the docker with the logging to the host. I have used the same options you have specified. The problem is that the below processes are not running inside docker container whereas the standalone dovecot is running these processes(meaning without container) dovecot-Dovecot/auth dovecot-Dovecot/ssl-params dovecot-Director/lmtp dovecot-Director/ssl-params dovecot-Director/imap-login director Thanks & Regards, Naveen On Mon, Dec 30, 2019 at 3:16 PM Marc Roos <M.Roos at f1-outsourcing.eu> wrote:> > If you are running your container as root. You will not have the issues > I encountered. Dovecot is dropping to the 'dovecot' and 'dovenull'(?) > when needed, this is fine. > > PS. I would not recommend using internal logging, use something like > this to log to the host or remote syslog. > docker run -v /dev/log:/dev/log -it dovecot-proxy > > > -----Original Message----- > Subject: Re: Issue running Dovecot in Docker Container > > Hi Marc, > > I can see the processes are running as a root in container environment. > Do you think that still have issues ? > Here is the processes running inside container: > > bash-4.2# ps -ef > UID PID PPID C STIME TTY TIME CMD > root 1 0 0 Dec27 ? 00:00:00 /bin/bash /bootstrap.sh > root 7 1 0 Dec27 ? 00:00:00 /usr/sbin/dovecot -F -c > /etc/dovecot/director.conf > root 8 1 0 Dec27 ? 00:00:00 /usr/sbin/dovecot -F > root 9 1 0 Dec27 ? 00:00:00 sleep 36000d > dovecot 10 8 0 Dec27 ? 00:00:00 dovecot-Dovecot/anvil > dovecot 14 7 0 Dec27 ? 00:00:00 dovecot-Director/anvil > root 267 8 0 Dec27 ? 00:00:00 dovecot-Dovecot/log > root 269 8 0 Dec27 ? 00:00:08 dovecot-Dovecot/config > root 281 7 0 Dec27 ? 00:00:00 dovecot-Director/log > root 283 7 0 Dec27 ? 00:00:00 dovecot-Director/config > > > > > Thanks & Regards, > Naveen > > > > On Mon, Dec 30, 2019 at 2:56 PM Marc Roos <M.Roos at f1-outsourcing.eu> > wrote: > > > > I have noticed several issues with dovecot, trying to run it > without > root. Which is preferable in any container environment. Maybe you > would > like me to document these somewhere? So at some point they can be > applied. > > > -----Original Message----- > From: Naveen Reddy [mailto:naveenreddy99 at gmail.com] > Sent: 30 December 2019 09:02 > To: Aki Tuomi > Cc: dovecot at dovecot.org > Subject: Re: Issue running Dovecot in Docker Container > > Hi, I can see those values correctly with the doveconf -nc > command. > Here > is the part of output: > > bash-4.2# doveconf -nc /etc/dovecot/director.conf # 2.2.36 > (1f10bfa63): > /etc/dovecot/director.conf # OS: Linux > 4.1.12-112.14.11.el7uek.x86_64 > x86_64 Red Hat Enterprise Linux Server release 7.7 (Maipo) # > Hostname: > 69b492645b56 auth_debug = yes auth_default_realm > xxxxxxxxxxxxxxxx > > auth_verbose = yes base_dir = /var/run/dovecot_director > debug_log_path > $log_path director_mail_servers = xxxxxxxxxxxxxxxxxx > director_servers > xxxxxxxxxxxxxxxxxxxx disable_plaintext_auth = no first_valid_uid > 1000 > hostname = xxxxxxxxxxxxxxxxxxxx info_log_path = $log_path > instance_name > = Director lmtp_proxy = yes log_path = /dovecot.log > login_log_format_elements = user=<%u> method=%m rip=%r lip=%l > mpid=%e %c > home=%h > > Thanks & Regards, > Naveen > > > > On Fri, Dec 27, 2019 at 10:08 PM Aki Tuomi > <aki.tuomi at open-xchange.com> > wrote: > > > > Can you check with `doveconf -nc /path/to/director.conf` > that the > values are actually set correctly? > > Aki > > On 27/12/2019 15:34 Naveen Reddy > <naveenreddy99 at gmail.com> > wrote: > > > > The conf.d files are not included. I have added > !include > conf.d/*.conf to director.conf and reloaded the dovecot and > director > services. > > conf.d/10-logging also has the following lines: > > log_path = /dovecot.log > info_log_path = $log_path > debug_log_path = $log_path > > > The /dovecot.log file still shows empty. Nothing > is being > logged to that file. > > > Thanks & Regards, > Naveen > > > > On Thu, Dec 26, 2019 at 10:52 PM Aki Tuomi < > aki.tuomi at open-xchange.com> wrote: > > > > Do you have !include or !try_include in > director.conf? > The conf.d files are not included otherwise. > > Aki > > On 26/12/2019 11:27 Naveen Reddy < > naveenreddy99 at gmail.com> wrote: > > > I have tried these in the > 10-logging.conf but no > luck. There is nothing logged to the file. > > bash-4.2# ps -ef > UID PID PPID C STIME TTY > > TIME CMD > root 1 0 0 Dec23 ? > > 00:00:00 > /bin/bash /bootstrap.sh > root 8 1 0 Dec23 ? > > 00:00:00 > sleep 36000d > root 15681 0 0 08:51 > pts/1 > 00:00:00 bash > root 16340 0 0 09:19 ? > > 00:00:00 > /usr/sbin/dovecot -c /etc/dovecot/director.conf > dovecot 16341 16340 0 09:19 ? > > 00:00:00 > dovecot-Director/anvil > root 16342 16340 0 09:19 ? > > 00:00:00 > dovecot-Director/log > root 16344 16340 0 09:19 ? > > 00:00:00 > dovecot-Director/config > root 16390 0 0 09:22 ? > > 00:00:00 > /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf > dovecot 16391 16390 0 09:22 ? > > 00:00:00 > dovecot-Dovecot/anvil > root 16392 16390 0 09:22 ? > > 00:00:00 > dovecot-Dovecot/log > root 16394 16390 0 09:22 ? > > 00:00:00 > dovecot-Dovecot/config > root 16406 15681 0 09:22 > pts/1 > 00:00:00 ps > -ef > > > The below processes are not > starting as well. > > dovecot-Dovecot/auth > dovecot-Dovecot/ssl-params > dovecot-Director/lmtp > dovecot-Director/ssl-params > dovecot-Director/imap-login > director > > Thanks & Regards, > Naveen > > > > On Tue, Dec 24, 2019 at 10:54 PM > Aki Tuomi < > aki.tuomi at open-xchange.com> wrote: > > > > > > On 24/12/2019 > 12:33 > Naveen Reddy < > naveenreddy99 at gmail.com> wrote: > > > Hello, > > We need help with > an issue that we are > running into when we are trying to run Dovecot in Docker > container. > > Also how do we > enable debugging for > dovecot. Logs doesn't show any info about the issue. > > Below processes > are > not running when a > Director service is started: > > > dovecot-Dovecot/auth > > dovecot-Dovecot/ssl-params > > dovecot-Director/lmtp > > dovecot-Director/ssl-params > > dovecot-Director/imap-login director > > Here is the > version > that I'm running and > including the dovecot -n output below: > > bash-4.2# dovecot > --version > 2.2.36 > > > bash-4.2# dovecot > -n > # 2.2.36 (xxxxx): > /etc/dovecot/dovecot.conf > # OS: Linux > 4.1.12-112.14.11.el7uek.x86_64 > x86_64 Red Hat Enterprise Linux Server release 7.7 (Maipo) > # Hostname: XXXXXXX > auth_debug = yes > auth_default_realm > = xxxxxxxxxxxx > auth_verbose = yes > > disable_plaintext_auth = no > dotlock_use_excl > no > hostname > xxxxxxxxxxxxxxxx > instance_name > Dovecot > > login_log_format_elements = user=<%u> > method=%m rip=%r lip=%l mpid=%e %c home=% domain=%d > mail_debug = yes > mail_fsync = always > mail_gid = imapd > mail_home > /xxxxxxxxxxx/%d/%n > mail_location > dbox:~/ > mail_uid = imapd > mmap_disable = yes > passdb { > args > /etc/dovecot/lookups/ldap-pass.conf > driver = ldap > } > passdb { > args > /etc/dovecot/lookups/xxxx.conf > driver = ldap > } > plugin { > stats_refresh > 30 secs > stats_track_cmds > = yes > } > protocols = imap > lmtp > service auth { > client_limit > 4096 > unix_listener > auth-userdb { > mode = 0777 > } > } > service imap-login > { > chroot = login > client_limit = 0 > > drop_priv_before_exec = no > executable > imap-login > extra_groups > group > idle_kill = 0 > inet_listener > imap { > address > port = 1144 > ssl = no > } > inet_listener > imaps { > address > port = 994 > ssl = yes > } > privileged_group > > process_limit = 0 > > process_min_avail > = 0 > protocol = imap > service_count > 50 > type = login > user > $default_login_user > vsz_limit > 18446744073709551615 B > } > service imap { > service_count > 50 > } > service lmtp { > executable > lmtp > -L > inet_listener > lmtp { > address > port = 10025 > } > } > service stats { > fifo_listener > stats-mail { > mode = 0600 > user = imapd > } > } > ssl_cert > </xxxxxxx/cert/dovecot.pem > ssl_cipher_list > XXXXXX > ssl_key = # > hidden, use -P to show it > ssl_protocols > XXXXX > userdb { > args > /etc/dovecot/lookups/ldap-user.conf > driver = ldap > } > userdb { > args > /etc/dovecot/lookups/xxxxxxx.conf > driver = ldap > } > > > Thanks & Regards, > Naveen > > > > Try setting > > log_path=/dovecot.log > info_log_path=$log_path > debug_log_path=$log_path > --- > Aki Tuomi > > > --- > Aki Tuomi > > > --- > Aki Tuomi > > > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20191230/00e521fa/attachment-0001.html>
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> You could also try our docker images, see <a href="https://hub.docker.com/u/dovecot">https://hub.docker.com/u/dovecot</a> </div> <div> <br> </div> <div> Aki </div> <blockquote type="cite"> <div> On 30/12/2019 12:18 Naveen Reddy <naveenreddy99@gmail.com> wrote: </div> <div> <br> </div> <div> <br> </div> <div dir="ltr"> I'm not using internal logging. I'm running the docker with the logging to the host. <div> I have used the same options you have specified. <br> <div> The problem is that the below processes are not running inside docker container whereas the standalone dovecot is running these processes(meaning without container) </div> <div> <br> </div> <div> <pre style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-height: 30em; overflow: auto; color: #172b4d; font-size: 12px; background-color: #f4f5f7; outline: none;">dovecot-Dovecot/auth dovecot-Dovecot/ssl-params dovecot-Director/lmtp dovecot-Director/ssl-params dovecot-Director/imap-login director</pre> <div> <div data-smartmail="gmail_signature" class="gmail_signature" dir="ltr"> <br> </div> <div data-smartmail="gmail_signature" class="gmail_signature" dir="ltr"> Thanks & Regards, <br>Naveen <br> </div> </div> <br> </div> </div> </div> <br> <div class="gmail_quote"> <div class="gmail_attr" dir="ltr"> On Mon, Dec 30, 2019 at 3:16 PM Marc Roos < <a href="mailto:M.Roos@f1-outsourcing.eu">M.Roos@f1-outsourcing.eu</a>> wrote: <br> </div> <blockquote> <br>If you are running your container as root. You will not have the issues <br>I encountered. Dovecot is dropping to the 'dovecot' and 'dovenull'(?) <br>when needed, this is fine. <br> <br>PS. I would not recommend using internal logging, use something like <br>this to log to the host or remote syslog. <br>docker run -v /dev/log:/dev/log -it dovecot-proxy <br> <br> <br>-----Original Message----- <br>Subject: Re: Issue running Dovecot in Docker Container <br> <br>Hi Marc, <br> <br>I can see the processes are running as a root in container environment. <br>Do you think that still have issues ? <br>Here is the processes running inside container: <br> <br>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 <br>/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 <br> <br> <br> <br> <br>Thanks & Regards, <br>Naveen <br> <br> <br> <br>On Mon, Dec 30, 2019 at 2:56 PM Marc Roos < <a target="_blank" href="mailto:M.Roos@f1-outsourcing.eu" rel="noopener">M.Roos@f1-outsourcing.eu</a>> <br>wrote: <br> <br> <br> <br> I have noticed several issues with dovecot, trying to run it <br>without <br> root. Which is preferable in any container environment. Maybe you <br>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 target="_blank" href="mailto:naveenreddy99@gmail.com" rel="noopener">naveenreddy99@gmail.com</a>] <br> Sent: 30 December 2019 09:02 <br> To: Aki Tuomi <br> Cc: <a target="_blank" href="mailto:dovecot@dovecot.org" rel="noopener">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. <br>Here <br> is the part of output: <br> <br> bash-4.2# doveconf -nc /etc/dovecot/director.conf # 2.2.36 <br>(1f10bfa63): <br> /etc/dovecot/director.conf # OS: Linux <br>4.1.12-112.14.11.el7uek.x86_64 <br> x86_64 Red Hat Enterprise Linux Server release 7.7 (Maipo) # <br>Hostname: <br> 69b492645b56 auth_debug = yes auth_default_realm = xxxxxxxxxxxxxxxx <br> <br> auth_verbose = yes base_dir = /var/run/dovecot_director <br>debug_log_path = <br> $log_path director_mail_servers = xxxxxxxxxxxxxxxxxx <br>director_servers = <br> xxxxxxxxxxxxxxxxxxxx disable_plaintext_auth = no first_valid_uid = <br>1000 <br> hostname = xxxxxxxxxxxxxxxxxxxx info_log_path = $log_path <br>instance_name <br> = Director lmtp_proxy = yes log_path = /dovecot.log <br> login_log_format_elements = user=<%u> method=%m rip=%r lip=%l <br>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 <br>< <a target="_blank" href="mailto:aki.tuomi@open-xchange.com" rel="noopener">aki.tuomi@open-xchange.com</a>> <br> wrote: <br> <br> <br> <br> Can you check with `doveconf -nc /path/to/director.conf` <br>that the <br> values are actually set correctly? <br> <br> Aki <br> <br> On 27/12/2019 15:34 Naveen Reddy <br>< <a target="_blank" href="mailto:naveenreddy99@gmail.com" rel="noopener">naveenreddy99@gmail.com</a>> <br> wrote: <br> <br> <br> <br> The conf.d files are not included. I have added <br>!include <br> conf.d/*.conf to director.conf and reloaded the dovecot and <br>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 <br>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 target="_blank" href="mailto:aki.tuomi@open-xchange.com" rel="noopener">aki.tuomi@open-xchange.com</a>> wrote: <br> <br> <br> <br> Do you have !include or !try_include in <br>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 target="_blank" href="mailto:naveenreddy99@gmail.com" rel="noopener">naveenreddy99@gmail.com</a>> wrote: <br> <br> <br> I have tried these in the <br>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 <br> TIME CMD <br> root 1 0 0 Dec23 ? <br> 00:00:00 <br> /bin/bash /bootstrap.sh <br> root 8 1 0 Dec23 ? <br> 00:00:00 <br> sleep 36000d <br> root 15681 0 0 08:51 pts/1 <br> 00:00:00 bash <br> root 16340 0 0 09:19 ? <br> 00:00:00 <br> /usr/sbin/dovecot -c /etc/dovecot/director.conf <br> dovecot 16341 16340 0 09:19 ? <br> 00:00:00 <br> dovecot-Director/anvil <br> root 16342 16340 0 09:19 ? <br> 00:00:00 <br> dovecot-Director/log <br> root 16344 16340 0 09:19 ? <br> 00:00:00 <br> dovecot-Director/config <br> root 16390 0 0 09:22 ? <br> 00:00:00 <br> /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf <br> dovecot 16391 16390 0 09:22 ? <br> 00:00:00 <br> dovecot-Dovecot/anvil <br> root 16392 16390 0 09:22 ? <br> 00:00:00 <br> dovecot-Dovecot/log <br> root 16394 16390 0 09:22 ? <br> 00:00:00 <br> dovecot-Dovecot/config <br> root 16406 15681 0 09:22 pts/1 <br> 00:00:00 ps <br> -ef <br> <br> <br> The below processes are not <br>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 <br>director <br> <br> Thanks & Regards, <br> Naveen <br> <br> <br> <br> On Tue, Dec 24, 2019 at 10:54 PM <br>Aki Tuomi < <br> <a target="_blank" href="mailto:aki.tuomi@open-xchange.com" rel="noopener">aki.tuomi@open-xchange.com</a>> wrote: <br> <br> <br> <br> <br> <br> On 24/12/2019 12:33 <br>Naveen Reddy < <br> <a target="_blank" href="mailto:naveenreddy99@gmail.com" rel="noopener">naveenreddy99@gmail.com</a>> wrote: <br> <br> <br> Hello, <br> <br> We need help with <br>an issue that we are <br> running into when we are trying to run Dovecot in Docker container. <br> <br> Also how do we <br>enable debugging for <br> dovecot. Logs doesn't show any info about the issue. <br> <br> Below processes are <br>not running when a <br> Director service is started: <br> <br> <br>dovecot-Dovecot/auth <br> <br>dovecot-Dovecot/ssl-params <br> <br>dovecot-Director/lmtp <br> <br>dovecot-Director/ssl-params <br> <br>dovecot-Director/imap-login director <br> <br> Here is the version <br>that I'm running and <br> including the dovecot -n output below: <br> <br> bash-4.2# dovecot <br>--version <br> 2.2.36 <br> <br> <br> bash-4.2# dovecot <br>-n <br> # 2.2.36 (xxxxx): <br> /etc/dovecot/dovecot.conf <br> # OS: Linux <br>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 <br>= xxxxxxxxxxxx <br> auth_verbose = yes <br> <br>disable_plaintext_auth = no <br> dotlock_use_excl = <br>no <br> hostname = <br>xxxxxxxxxxxxxxxx <br> instance_name = <br>Dovecot <br> <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 = <br>/xxxxxxxxxxx/%d/%n <br> mail_location = <br>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 = <br>/etc/dovecot/lookups/xxxx.conf <br> driver = ldap <br> } <br> plugin { <br> stats_refresh = <br>30 secs <br> stats_track_cmds <br>= yes <br> } <br> protocols = imap <br>lmtp <br> service auth { <br> client_limit = <br>4096 <br> unix_listener <br>auth-userdb { <br> mode = 0777 <br> } <br> } <br> service imap-login <br>{ <br> chroot = login <br> client_limit = 0 <br> <br>drop_priv_before_exec = no <br> executable = <br>imap-login <br> extra_groups <br> group <br> idle_kill = 0 <br> inet_listener <br>imap { <br> address <br> port = 1144 <br> ssl = no <br> } <br> inet_listener <br>imaps { <br> address <br> port = 994 <br> ssl = yes <br> } <br> privileged_group <br> <br> process_limit = 0 <br> process_min_avail <br>= 0 <br> protocol = imap <br> service_count = <br>50 <br> type = login <br> user = <br>$default_login_user <br> vsz_limit = <br>18446744073709551615 B <br> } <br> service imap { <br> service_count = <br>50 <br> } <br> service lmtp { <br> executable = lmtp <br>-L <br> inet_listener <br>lmtp { <br> address <br> port = 10025 <br> } <br> } <br> service stats { <br> fifo_listener <br>stats-mail { <br> mode = 0600 <br> user = imapd <br> } <br> } <br> ssl_cert = <br></xxxxxxx/cert/dovecot.pem <br> ssl_cipher_list = <br>XXXXXX <br> ssl_key = # <br>hidden, use -P to show it <br> ssl_protocols = <br>XXXXX <br> userdb { <br> args = <br> /etc/dovecot/lookups/ldap-user.conf <br> driver = ldap <br> } <br> userdb { <br> args = <br>/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> <br> <br> <br> </blockquote> </div> </blockquote> <div> <br> </div> <div class="io-ox-signature"> <pre>--- Aki Tuomi</pre> </div> </body> </html>