Re: [exim] exim and php's (mail)

Pàgina inicial
Delete this message
Reply to this message
Autor: Magnus Holmgren
Data:  
A: exim-users
Assumpte: Re: [exim] exim and php's (mail)
On Tuesday 22 May 2007 09:37, Klauss Fumuldavijus wrote:
> May 21 16:51:06 myhost exim[50525]: exim: could not open panic log -
> aborting: see message(s) above May 21 20:15:01 myhost exim[51048]:
> 2007-05-21 20:15:01 1HqBTJ-000DHL-B9 Couldn't chown message log
> /var/spool/mqueue/msglog/J/1HqBTJ-000DHL-B9: Operation not permitted May 21
> 20:15:01 myhost exim[51048]: 2007-05-21 20:15:01 1HqBTJ-000DHL-B9 Cannot
> open main log file "/var/log/exim_mainlog": Permission denied: euid=80
> egid=80
>
> actualy - php's mail() calls exim as user www (80) and group www(80).
> and exim stores mails as well as handles logging as user exim:mail (1003:6)
> - that causes "Permission denied"


The exim binary is normally installed setuid root, which it doesn't seem to be
in your case. See
http://www.exim.org/exim-html-4.66/doc/html/spec_html/ch52.html#id2741468 for
when and how you can run exim without root privileges.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)