New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Can't open log file /var/log/dovecot.log: Permission denied

Started by become, April 09, 2017, 12:03:04 PM

Previous topic - Next topic

become

I have error in maillog
Can't open log file /var/log/dovecot.log: Permission denied

How to fix it ?

become


wael

i have the same problem

dovecot[12559]: Can't open log file /var/log/dovecot-debug.log: Permission denied

i did all that

# chmod 660 /var/log/dovecot-debug.log
# chmod g+w /var/log
# usermod -a -G dovecot dovecot
# chown vmail:mail /var/log/dovecot-debug.log


and i have the same error

overseer

How are you trying to open the log file? If you just tail it in a root shell, you should have no trouble accessing it, so permissions don't really matter in that respect. Even the File Manager will be reading the files with root permissions from the CWP Admin panel, so you can view the log file or download it from the File Manager.

You didn't need need to do anything with the dovecot user group -- it is already in dovecot, mail, wheel. Correct permissions:
-rw-------. 1 vmail mail 2570571664 Jul 23 08:36 /var/log/dovecot-debug.log

(and that shows me I need to go add this log to logrotate, since it's 2.5GB!)