Dovecoti probleemid (kui webmailiga sisse logimisel on probleeme)

Kui webmail ei logi sisse ja annab meili logis veaks (dovecot: imap(usser1): Error: user user1: Initialization failed:
mail_location not set and autodetection failed:
Mail storage autodetection failed with home=/home/user1

siis käitu järgevalt, all poole 2 varianti probleemi lahendamiseks

1.
Looking in secure.log as authentication error, didn't get to maillog. 
maillog had error :-

dovecot: imap(usser1): Error: user user1: Initialization failed: 
mail_location not set and autodetection failed:
  Mail storage autodetection failed with home=/home/user1

So added this to dovecot.conf

mail_location = mbox:~/mail:INBOX=/var/mail/%u


2.
Hello,

In this file:

/etc/dovecot/conf.d/10-mail.conf

Try setting:

mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u

That should be all that’s needed for dovecot to see the mail in /var/spool/mail

Peale seda võib webmailiga sisselogimine mitte lasta kasutada INBOX kausta probleemi lahendus järgmine…..
lase käima selline käsk:  chmod 0600 /var/spool/mail/*