You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Massimo <ma...@cedoc.mo.it> on 2005/06/06 10:15:49 UTC

commit-email.pl from address

Hi all,
  I got everything up and running and very happy, just on minor thing
bother me up.

I'm using commit-email.pl as a post-commit hook to have mails on every
commit.
The mail message is fine since all the info within are corret, just the
from: clause of the message is from the apache users which is the one my
web server runs on.
I'm using DAV on HTTPS to access the repository.
I've tried to change the script and or to set the -f command line
options but anything seems to work.

I would like to know if this script should be able to send mail
impersonating the author of the commit (From: <Commit_author>) instead
of the web server user when executed under, if so probably the mail
server on the machine is acting some kind of masquerading which i don't
know.

Thanks.
-- 
Massimo.run();


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: commit-email.pl from address

Posted by Benjamin Podszun <be...@galactic-tales.de>.
Massimo wrote:
> Hi all,
>   I got everything up and running and very happy, just on minor thing
> bother me up.
> 
> I'm using commit-email.pl as a post-commit hook to have mails on every
> commit.
> The mail message is fine since all the info within are corret, just the
> from: clause of the message is from the apache users which is the one my
> web server runs on.
> I'm using DAV on HTTPS to access the repository.
> I've tried to change the script and or to set the -f command line
> options but anything seems to work.
> 
> I would like to know if this script should be able to send mail
> impersonating the author of the commit (From: <Commit_author>) instead
> of the web server user when executed under, if so probably the mail
> server on the machine is acting some kind of masquerading which i don't
> know.

I'm not sure what the script does with the -f option and I don't know 
which MTA you are using..
Did you check the headers of the mail? A mail can contain sender 
information in both the envelope (what the MTA gets) and the header.
What is set to which value?
Lots of systems do prevent unprivileged users from "spoofing" the sender 
address, you have to be a "trusted mail user" for that. Consult your 
MTA's documentation if that applies for you as well - but I'm not sure 
if you want to add the apache user to that list..

HTH,
Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org