I'm trying to install exim + dovecot on my centOS server. And when i tried to run( as root ) it, I am getting the below message:
Starting Dovecot Imap: Error: Can't write to log directory /var/log: Permission denied Fatal: Invalid configuration in /etc/dovecot.conf
I even tried to set permissions to 777, but that didn't help. Also I had the same problem with dovecot.conf, I solved this by deleting dovecot.conf and creating it again. Would appreciate for any help. My dovecot.conf looks like this:
log_path = /var/log/dovecot.log
login_greeting = pop3/imap service.
protocol imap {
}
protocol pop3 {
}
pop3_uidl_format = %08Xu%08Xv
protocol lda {
postmaster_address = postmaster@example.com
mail_plugin_dir = /usr/lib/dovecot/lda
}
auth default {
mechanisms = plain login cram-md5 digest-md5
passdb passwd-file {
args = /etc/dovecot.passwd
}
userdb passwd-file {
args = /etc/dovecot.passwd
}
user = root
socket listen {
client {
`}