Re: [exim] Urgent problem with exim, php and apache ("unabl…

Top Page
Delete this message
Reply to this message
Author: Karim 'Kasi Mir' Senoucci
Date:  
To: exim-users
Subject: Re: [exim] Urgent problem with exim, php and apache ("unable to set gid/uid" error)
Hi everyone,
Am 23.09.2014 um 12:43 schrieb Evgeniy Berdnikov:
> On Tue, Sep 23, 2014 at 12:20:56PM +0200, Karim 'Kasi Mir' Senoucci wrote:
>> Why doesn't this work when exim is called via apache/php? What can I
>> do to get PHP mail() working again with exim?
> Probably your php script uses "-f" command line option to specify
> envelope sender of the mail. If so, you should fill "trusted_users"
> and/or "trusted_groups" configuration variables by script name/uid.


No, that's not it.

My script uses the mail() function from PHP itself, in the php.ini

> $result = mail($email_to, $email_subject, $email_message, $headers);


I have:

> sendmail_path = "/usr/sbin/exim4 -ti"


(for the debug output, it was)

> sendmail_path = "/usr/sbin/exim4 -d -ti 2>>/tmp/exim.log"


There is no "-f" option set anywhere.

Plus, the web user (uid=1308) is included by name in "trusted_users".

Greetings
Kasi Mir