Problem with permissions of the logfile
ml+dovecot at valo.at
Fri Nov 6 16:46:20 UTC 2015
Am 06. November 2015 17:09:20 MEZ, schrieb Andreas Meyer <a.meyer at nimmini.de>:
>I want to have dovecot log into a separate file and set
>log_path = /var/log/dovecot instead of log_path = syslog
>Dovecot does not start if I do this. Tried to change
>permissions and overschip of the file, no luck, ha.
>Deleted it in the hope dovecot creates it but no.
>If I set log_path = syslog dovecot starts and I see
>it is running as
># ps aux |grep dove
>root 2429 0.2 0.0 3416 2568 ? Ss 16:42 0:00
>dovecot 2431 0.0 0.0 3100 2080 ? S 16:42 0:00
>root 2432 0.0 0.0 3228 2316 ? S 16:42 0:00
>root 2434 0.0 0.0 4220 3300 ? S 16:42 0:00
>What must be done to have dovecot log into the specified file?
Is the user dovecot is running as allowed to write to that file?
You could configure your syslog daemon to write all dovecot logging to a different file and don't write it to standard syslog file.
More information about the dovecot