[exim] exim and php mail() - solved

Top Page
Delete this message
Reply to this message
Author: Klauss Fumuldavijus
Date:  
To: exim-users
Subject: [exim] exim and php mail() - solved
Hello again,
after digging for two more days for setuid() problems i finaly removed existing exim from my freebsd box and installed a fresh-one from the ports(freebsd 6.2)
suddenly all the problems have dissapeard and i managed to feed mails directly to exim through php's mail().

all I can suspect is some failure performing last portupgrade which led to some permission issues.

consider that

>>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)