Re: [Exim] Changing the Return-path

Top Page
Delete this message
Reply to this message
Author: Kevin Reed
Date:  
To: exim-users
New-Topics: [Exim] Changing the Return-path - with filter rule?
Subject: Re: [Exim] Changing the Return-path
Marc Perkel said:
> I read the manual - but still don't get it.
>
> 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?


apache is the user of mail system.

Add apache to the trusted_users line

trusted_users = whatever you have : apache

Now from the perl program you can create the mail file first into a temp
file and

exim -f senders_username@??? -t < tempfile

The tempfile would have the full mail file with all the headers or pipe
the same to exim:

.... | exim -f senders_username@???

Note that on some systems sendmail = exim ... common locations are

/usr/lib/sendmail
/usr/sbin/sendmail

etc..

Make Darn sure that this script is clean and doesn't allow someone to
modify the output or you are opening the door for spammers to abuse your
scripts.

--
Kevin W. Reed - TNET Services, Inc.
Unoffical Exim MTA Info Forums - http://exim.got-there.com/forums