From :admin@<base server domain> on behalf of <sender email address>

Line Yoble

Verified User
Joined
Feb 4, 2009
Messages
38
Hello,

I have just switched a domain from a shared server (with qmail) to a dedicated one with DA (with exim).
On this domain, I have a PHP script which sends several emails calling the mail() function after having prepared a header containing several lines among which there are :
Return-Path: <my email address>,
Return-Errors-To: <my email address>,
Reply-To: noreply@<my domain>

This worked fine on my previous server.
Now, in my email software, the messages received from the script display a
From :admin@<base server domain> on behalf of <my email address>

I have checked the message header and there are :
Return-Path: admin@<base server domain>
Sender: admin@<base server domain>

So, my script added Return-path directive (at least) was changed by Exim.

How can I avoid this and get the standard From : <my email address> in my email software ?

Thanks.

Line.
 
Last edited:
Have you added the account username to the 'trusted_users' section in exim.conf?

# TRUSTED USERS
# OPTIONAL MODIFICATIONS:
# if you must add additional trusted users, do so here; continue the
# colon-delimited list

trusted_users = mail:majordomo:apache:diradmin
After adding it to trusted_users restart exim and try again.
 
Back
Top