[imp] apache user

Donald MacDougall dmacdoug@usc.edu
Wed, 10 Oct 2001 21:00:14 -0700


On Wed, Oct 10, 2001 at 05:28:20PM +0100, Andy wrote:
> ------------
> example mail
> 
> Return-Path: <apache@XXXXXX.com>
> Delivered-To: andyw@black.hole-in-the.net
> Received: (qmail 69009 invoked from network); 10 Oct 2001 16:22:29 -0000
> Received: from unknown (HELO mail.XXXXXXX.com) (xxx.xxx.xxx.xxx)
> by black.hole-in-the.net with SMTP; 10 Oct 2001 16:22:29 -0000
> Received: from apache by mail.XXXXXX.com with local (Exim 3.22 #6)
> id 15rM0P-0004BT-00
> for andyw@black.hole-in-the.net; Wed, 10 Oct 2001 17:14:49 +0100
> Received: from 172.16.0.1 ( [172.16.0.1])
> as user andy@mail by intranet.XXXXXX.com with HTTP;
> Wed, 10 Oct 2001 17:14:49 +0100
> Message-ID: <1002730489.3bc473f928fe7@intranet.XXXXXXX.com>
> Date: Wed, 10 Oct 2001 17:14:49 +0100
> From: Andrew Wilson <andy@XXXXXX.com>
> To: andyw@black.hole-in-the.net
> Subject: test
> MIME-Version: 1.0
> Content-Type: text/plain
> Content-Transfer-Encoding: 7bit
> User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
> Sender: Apache <apache@XXXXXX.com>
> 
> ------------
> 
> 
> Hi, is there any way to prevent the sender being apache and the return path to be the users name as 
> opposed to apache too.
> 
> The reason for this is that if the mail bounces it doesnt get returned to the user but gets send to the 
> return path address. This means that the user can not tell if his mail has been delivered.
> Ive gone though the conf files but cant find anything that may allow this behavior to be changed. I know 
> that the mail process is spawned by apache and I know that this cant really be changed (or can it?)

You need to add apache as a trusted user in your /etc/exim.conf file.  There's a line 
somewhere in there like "trusted_users = mail".  Whatever it says, just add ":apache" 
to the end of it and that should do it.

Don MacDougall