Issue running Dovecot in Docker Container

Marc Roos M.Roos at f1-outsourcing.eu
Mon Dec 30 11:04:15 EET 2019


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 
	
	



More information about the dovecot mailing list