You are missing mail_location, the actual value is dependent on your
filesystem structure and used mail driver
Example:
mail_location = maildir:~/Maildir
Aki
On 08.06.2017 11:11, Alef Veld wrote:> Hi everyone. Nice to meet you.
>
> I?m new to dovecot and i came across a problem it seems.
>
> I setup a new user called sales with useradd, and gave it a password.
Although it has a home directory, i set login to /sbin/nologin.
>
> When logging into the pop server on port 110 (with telnet) i get this in
the logs:
>
> dovecot: pop3-login: Login: user=<sales>, method=PLAIN,
rip=127.0.0.1, lip=127.0.0.1, mpid=12938, secured,
session=<94SotWVRoAB/AAAB>
> Jun 7 21:49:24 www dovecot: pop3(sales): Error: user sales: Initialization
failed: Namespace '': Mail storage autodetection failed with
home=/home/sales
> Jun 7 21:49:24 www dovecot: pop3(sales): Error: Invalid user settings.
Refer to server log for more information.
>
>
> Did i have to initialise the mailbox in the homedirectory? What did i
forget. I didn't change anything to the default dovecot.conf, i just
installed the package with yum install dovecot (so latest version). This error
also shows up when logging into port 143. Thanks for your help.
>
> My dovecot -n output if that helps is :
> [ec2-user at www log]$ dovecot -n
> # 2.2.10: /etc/dovecot/dovecot.conf
> # OS: Linux 4.9.20-10.30.amzn1.x86_64 x86_64
> mbox_write_locks = fcntl
> namespace inbox {
> inbox = yes
> location > prefix > }
> passdb {
> driver = pam
> }
> ssl = required
> ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
> ssl_key = </etc/pki/dovecot/private/dovecot.pem
> ssl_protocols = !SSLv2 !SSLv3
> userdb {
> driver = passwd
> }
>
> Thanks a lot.
> -atv