Well today I am trying to setup a ispconfig. When I try to log on mail I have a wired problem that imap is not working. So when I looked into maillog I see this error
auth: Error: Can’t open configuration file /etc/dovecot-sql.conf
Well the fis is pretty simple .
ln -s /etc/dovecot/dovecot-sql.conf /etc/dovecot-sql.conf
ln -s /etc/dovecot/dovecot.conf /etc/dovecot.conf
After this restart dovecot, and the mail will work.