Page 1 of 1

Connection to IMAP server failed

Posted: Wed Jun 05, 2019 8:35 pm
by enterprise
Hello everyone,

I get the "Connection to IMAP server failed" error on roundcube when I try to login to a mailbox I created.

I also noticed that I can't start or restart dovecot. I also noticed the error below when I run "service dovecot status"

Code: Select all

dovecot[6186]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 24: Unknown setting: namespace
systemd[1]: dovecot.service: Control process exited, code=exited status=89
systemd[1]: Failed to start Dovecot IMAP/POP3 email server.
Here is my configuration file

/etc/dovecot/dovecot.conf

Code: Select all

protocols = imap pop3
listen = *, ::
base_dir = /var/run/dovecot/
!include conf.d/*.conf

namespace {
    type = private
    separator = /
    prefix =
    inbox = yes

    mailbox Sent {
        auto = subscribe
        special_use = \Sent
    }
    mailbox Drafts {
        auto = subscribe
        special_use = \Drafts
    }
    mailbox Trash {
        auto = subscribe
        special_use = \Trash
    }
    namespace inbox {
	inbox = yes
    }
}
Any assistance is greatly appreciated.

Thanks

Re: Connection to IMAP server failed

Posted: Wed Jun 19, 2019 8:25 pm
by dreiggy
Hi,

remove this part from /etc/dovecot/dovecot.conf

Code: Select all

namespace {
    type = private
    separator = /
    prefix =
    inbox = yes

    mailbox Sent {
        auto = subscribe
        special_use = \Sent
    }
    mailbox Drafts {
        auto = subscribe
        special_use = \Drafts
    }
    mailbox Trash {
        auto = subscribe
        special_use = \Trash
    }
    namespace inbox {
	inbox = yes
    }
}
And then restart dovecot: service dovecot restart