php and exim return-path

joek168

Verified User
Joined
Jan 19, 2009
Messages
5
I have read through the forums and knowledge base and can't find a working solution.

when php sends an email through the mail() function, the following headers are added:

Return-Path: <jkhosting@iddslice>
Received: from jkhosting by iddslice with local (Exim 4.69)
(envelope-from <jkhosting@iddslice>)
id 1Mr02I-0008Ud-Ej
for [email protected]; Thu, 24 Sep 2009 21:55:50 -0400
Sender: <jkhosting@iddslice>


I am using the -f flag with the mail function as well as adding the following line to the httpd.conf through the CP

php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f |USER|@|DOMAIN|'

and still get the same headers.

Is it possible to override the iddslice with an actual domain name so that mail servers won't discard the email?

Thanks,

Joe
 
Last edited:
can you run php as apache module and cgi?

Is it possible to run php in both modes, apache module and cgi?
 
Only if are different versions. eg Php 5 as cgi and Php 4 as mod_php and vice versa
 
Set jkhosting as a trusted user in exim.

Look for the line trusted_users in exim; add another colon separator and then the username.

Be sure to restart exim after any change to exim.conf.

Jeff
 
Back
Top