Re: [Exim] Changing the Return-path

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Dominik Ruf
Date:  
À: exim-users
Sujet: Re: [Exim] Changing the Return-path
* Marc Perkel <marc@???> [2003-12-16 02:47]:
> Here's the problem. A user runs a perl script from apache and Exim
> generates an email message - but - the return-path is
> apache@???.
>
> I want the return-parth to be the sender.
>
> How do I make that happen?


The user may use the -f switch to /usr/sbin/sendmail to set the
sender, but IIRC this is only possible for "trusted users". So
you'd need to set the apache-user as trusted in exim.conf.

Another way would be to use suEXEC oder another cgi-wrapper to
run the script under the uid of the user which should then
automatically set the return-path correctly to that user.

Dominik