PDA

View Full Version : [Exim] How to manipulate the 'Return-path:'?


pigpen
12th October 2004, 09:42 AM
Hi all,

I have a Debian server with Exim which (via PHP) generates mails with headers like this:Return-path: <www-data@www.myserver.de>
Received: from rrzmta1.rz.somehost.de [xxx.xxx.x.xx]
by gw.ngate.somehost.de; Thu, 07 Oct 2004 15:33:43 +0200
Received: from rrzmta1.rz.somehost.de (localhost [127.0.0.1])
...For some reason, certain recipients require the 'Return-path:' field to contain a valid mail address
(www-data is the user name of the web server, of course, and is not intended to receive mails ;))
Does anyone know how to manipulate the 'Return-path:' field in the mail header?

pigpen
13th October 2004, 02:56 PM
Answering my own question (once more):

(1) alter exim.conf to include the apache user# If this option is set, then any process that is running as one of the
# listed users may pass a message to Exim and specify the sender's
# address using the "-f" command line option, without Exim's adding a
# "Sender" header.

trusted_users = mail:www-data(2) in a php script use the "-f"-option like this:mail($to, $subject, $message, "from: $email\n", "-f$return_path");(3) happy happy joy joy

ewdi
13th October 2004, 03:04 PM
thx, i was looking for this answer for one of my cpanel server that uses exmin

Iran Photos on Instagram - Ryazan' Travel Photos on Instagram - Dortmund Travel Photos -