On 01/31/2012 11:01 AM, Maxim Z. wrote:
>
>
> for test, manual run:
>
> root# dbmail-pop3d -f /etc/dbmail.conf -p /var/run/dbmail-pop3d.pid -v
>
> messages in dbmail.log:
>
> [0x7b6f50] EMERGENCY:[pidfile] pidfile_create(+113): Cannot open pidfile
> [/var/run/dbmail-pop3d.pid], error was [Permission denied]
>
> But I running the daemon from root.
Privileges are dropped as soon as possibe: right after binding the socket.
The pid file and log-files need to be writable by the effective user.
That is why for debian I use a /var/run/dbmail/ and /var/log/dbmail/
directory respectively which are owned by the effective user.
logfile = /var/log/dbmail/dbmail.log
errorlog = /var/log/dbmail/dbmail.err
pid_directory = /var/run/dbmail
So the startup script you deploy needs to make sure at least the pid
directory exists, and is writable by the effective user.
--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, skype, linkedin
* Premium Hosting Services and Web Application Consultancy *
www.nfg.nl/[email protected]/+31.85.877.99.97
________________________________________________________________
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail