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 -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
