<div dir="ltr">I had permission issues on docker, its fixed by running chown command at docker init.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 29, 2020 at 8:56 PM Dshah <<a href="mailto:divxtamana@gmail.com">divxtamana@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div># dovecot --version</div><div>2.3.10.1 (a3d0e1171)</div><div><span style="color:rgb(0,0,0)"></span><br></div><div>Dovecot is unable to start, I see error " Fatal: fchown() failed for /run/dovecot/login: Operation not permitted"</div><div><br></div><div>what could be the problem?</div><div>any help please</div><div><br></div><div><br></div><div>$ls -la /var/mail/</div><div><div></div><div>drwxr-xr-x 1 root root 4096 May 29 17:32 .</div><div>drwxr-xr-x 1 root root 4096 May 28 17:08 ..</div><div>drw------- 2 root root 4096 May 29 17:32 domains</div></div><div><br></div><div>====# cat /etc/dovecot/dovecot.conf<span style="color:rgb(0,0,0)">=====</span></div><div style="color:rgb(0,0,0)"></div><div><div>auth_mechanisms = plain login</div><div>auth_username_format = %Lu</div><div>auth_verbose = yes</div><div>auth_debug = yes</div><div>auth_debug_passwords = no</div><div><br></div><div>log_timestamp = "%Y-%m-%d %H:%M:%S "</div><div>login_greeting = IMAP server ready</div><div><br></div><div>disable_plaintext_auth = no</div><div><br></div><div>protocols = imap pop3</div><div>log_timestamp = "%Y-%m-%d %H:%M:%S "</div><div>mail_location = maildir:/var/mail/domains/%d/%n</div><div><br></div><div>first_valid_gid = 105</div><div>first_valid_uid = 102</div><div>last_valid_gid = 105</div><div>last_valid_uid = 102</div><div><br></div><div>service anvil {</div><div> client_limit = 2100</div><div>}</div><div><br></div><div>ssl_cert = </secret/tls.crt</div><div>ssl_key = </secret/tls.key</div><div>ssl_ca = </secret/ca.crt</div><div><br></div><div><br></div><div>namespace inbox {</div><div> inbox = yes</div><div><br></div><div> mailbox Trash {</div><div> auto = create</div><div> special_use = \Trash</div><div> }</div><div><br></div><div> mailbox Spam {</div><div> auto = no</div><div> special_use = \Junk</div><div> }</div><div><br></div><div> mailbox Ham {</div><div> auto = no</div><div> }</div><div> mailbox Sent {</div><div> auto = subscribe</div><div> special_use = \Sent</div><div> }</div><div><br></div><div>}</div><div># service auth {</div><div># unix_listener auth-master {</div><div># mode = 0600</div><div># user = vmail</div><div># }</div><div><br></div><div># unix_listener /var/spool/postfix/private/auth {</div><div># mode = 0666</div><div># user = postfix</div><div># group = postfix</div><div># }</div><div><br></div><div># user = root</div><div># }</div><div><br></div><div># service auth-worker {</div><div># user = root</div><div># }</div><div><br></div><div># protocol lda {</div><div># log_path = /home/vmail/dovecot-deliver.log</div><div># auth_socket_path = /var/run/dovecot/auth-master</div><div># postmaster_address = <a href="mailto:postmaster@razalabs.com" target="_blank">postmaster@razalabs.com</a></div><div># }</div><div><br></div><div>protocol pop3 {</div><div> pop3_uidl_format = %08Xu%08Xv</div><div>}</div><div><br></div><div>userdb {</div><div> driver = static</div><div> args = uid=102 gid=105 home=/var/mail/domains/%d/%n allow_all_users=yes</div><div>}</div><div><br></div><div>passdb {</div><div> driver = sql</div><div> args = /etc/dovecot/dovecot-sql.conf.ext</div><div>}</div></div><div><br></div><div><span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">========</span><span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">========</span><span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">=</span><span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">/etc/dovecot/dovecot-sql.conf.ext</span><span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">=====</span><span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">=====</span><span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">=====</span></div><div><div style="color:rgb(0,0,0)">driver = mysql</div><div style="color:rgb(0,0,0)">connect = host=localhost dbname=mail user=root password=pass</div><div style="color:rgb(0,0,0)">default_pass_scheme = CRYPT</div><div style="color:rgb(0,0,0)">password_query = SELECT email as user, password FROM users WHERE email='%u';</div></div><span style="color:rgb(0,0,0);font-size:medium">========</span><span style="color:rgb(0,0,0);font-size:medium">========</span><span style="color:rgb(0,0,0);font-size:medium">=</span><span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">dovecot-sql.conf.ext</span><span style="color:rgb(0,0,0);font-size:medium">=====</span><span style="color:rgb(0,0,0);font-size:medium">=====</span><span style="color:rgb(0,0,0);font-size:medium">=====</span><div><br></div><div><div style="color:rgb(0,0,0)"><span style="font-size:medium">========</span><span style="font-size:medium">========</span><span style="font-size:medium">=</span><span style="font-size:medium">/etc/dovecot/dovecot-sql.conf.ext</span><span style="font-size:medium">=====</span><span style="font-size:medium">=====</span><span style="font-size:medium">=====</span></div><div style="color:rgb(0,0,0)"><div>driver = mysql</div><div>connect = host=localhost dbname=mail user=root password=pass</div><div>default_pass_scheme = CRYPT</div><div>password_query = SELECT email as user, password FROM users WHERE email='%u';</div></div><span style="color:rgb(0,0,0);font-size:medium">========</span><span style="color:rgb(0,0,0);font-size:medium">========</span><span style="color:rgb(0,0,0);font-size:medium">=</span><span style="color:rgb(0,0,0);font-size:medium">dovecot-sql.conf.ext</span><span style="color:rgb(0,0,0);font-size:medium">=====</span><span style="color:rgb(0,0,0);font-size:medium">=====</span><span style="color:rgb(0,0,0);font-size:medium">=====</span><br></div><div><span style="color:rgb(0,0,0);font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-size:medium">and postfix</span></div><div><span style="color:rgb(0,0,0);font-size:medium"> </span><span style="color:rgb(0,0,0);font-size:medium">========</span><span style="color:rgb(0,0,0);font-size:medium">========</span><span style="color:rgb(0,0,0);font-size:medium">=</span><span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">/etc/postfix/<a href="http://main.cf" target="_blank">main.cf</a></span><span style="color:rgb(0,0,0);font-size:medium">=====</span><span style="color:rgb(0,0,0);font-size:medium">=====</span><span style="color:rgb(0,0,0);font-size:medium">=====</span></div><div><div>inet_protocols = all</div><div>meta_directory = /etc/postfix</div><div>shlib_directory = /usr/lib/postfix</div><div>myhostname = <a href="http://mail.my-domain.com" target="_blank">mail.my-domain.com</a></div><div>mynetworks = <a href="http://127.0.0.0/8" target="_blank">127.0.0.0/8</a></div><div>message_size_limit = 30720000</div><div>virtual_alias_domains =</div><div>virtual_alias_maps = proxy:mysql:/etc/postfix/<a href="http://mysql-virtual_forwardings.cf" target="_blank">mysql-virtual_forwardings.cf</a>, mysql:/etc/postfix/<a href="http://mysql-virtual_email2email.cf" target="_blank">mysql-virtual_email2email.cf</a></div><div>virtual_mailbox_domains = proxy:mysql:/etc/postfix/<a href="http://mysql-virtual_domains.cf" target="_blank">mysql-virtual_domains.cf</a></div><div>virtual_mailbox_maps = proxy:mysql:/etc/postfix/<a href="http://mysql-virtual_mailboxes.cf" target="_blank">mysql-virtual_mailboxes.cf</a></div><div>virtual_mailbox_base = /var/mail/domains</div><div>virtual_uid_maps = static:102</div><div>virtual_gid_maps = static:105</div><div>smtpd_sasl_type = dovecot</div><div>smtpd_sasl_path = /var/spool/postfix/private/auth</div><div>smtpd_sasl_auth_enable = yes</div><div>broken_sasl_auth_clients = yes</div><div>smtpd_sasl_authenticated_header = yes</div><div>smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination</div><div>smtpd_use_tls = yes</div><div>smtpd_tls_cert_file = /secret/tls.crt</div><div>smtpd_tls_key_file = /secret/tls.key</div><div>#virtual_create_maildirsize = yes</div><div>#virtual_maildir_extended = yes</div><div>proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks</div><div>virtual_transport = dovecot</div><div>dovecot_destination_recipient_limit = 1</div><div>smtpd_milters = inet:<a href="http://127.0.0.1:8891" target="_blank">127.0.0.1:8891</a></div><div>milter_default_action = accept</div></div><div><br></div><div><div style="color:rgb(0,0,0)"><div></div></div><span style="color:rgb(0,0,0);font-size:medium">========</span><span style="color:rgb(0,0,0);font-size:medium">========</span><span style="color:rgb(0,0,0);font-size:medium">=</span><span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">/etc/postfix/<a href="http://main.cf" target="_blank">main.cf</a></span><span style="color:rgb(0,0,0);font-size:medium">=====</span><span style="color:rgb(0,0,0);font-size:medium">=====</span><span style="color:rgb(0,0,0);font-size:medium">=====</span><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>