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

Top Pagina
Delete this message
Reply to this message
Auteur: Evgeniy Berdnikov
Datum:  
Aan: exim-users
Onderwerp: Re: [exim] Urgent problem with exim, php and apache ("unable to set gid/uid" error)
On Tue, Sep 23, 2014 at 01:18:03PM +0200, Karim 'Kasi Mir' Senoucci wrote:
> 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.


[...]

> (for the debug output, it was)
>
> >sendmail_path = "/usr/sbin/exim4 -d -ti 2>>/tmp/exim.log"


I suggest to look into uid/gid values.
Substitute your sendmail_path by path of this script:

#/bin/sh
log=/tmp/exim.log
ps -p $$ -o pid,ppid,uid,euid,ruid,suid,gid,egid,rgid,sgid,pgrp >$log
exec /usr/sbin/exim4 -d -ti "$@" 2>>$log

Let see the difference when run from console.
--
Eugene Berdnikov