To be a bit more verbose. The problem you are having has nothing to do
with headers. Errors (Eg, nondelivery reports) are sent to the address
specifices by the _envelope sender_ of a message, which is not always
necesarrily contained in the headers. Exim is accepting a message from
the user "wwwrun" (or whatever id...), and since unix systems typically
are multiuser, and you dont normally want uses to be able to completely
forge the origin of their email, it (like sendmail) is forcing the
envelope sender to match the actual user logged in. Obviously in your
case this is not desirable. If you tell exim to "trust" the webserver
user, ten it will accept whatever envelope sender it specifies. (You of
course need to make sure IMP is properly specifying the envelope sender.
The most reliable way of doing this is by using bsmtp to inject the
message, but IMP is probably using "sendmail -f", which is and has
always been a hideous interface. (Not to mention with conflicting
documentation))
On Fri, 20 Jul 2001, randall ehren wrote:
> in your exim conf:
>
> trusted_users= <userid of webserver>
>
> - randall s. ehren -=- 805 893-5632
> system administrator -=- isber.ucsb.edu
> institute for social, behavioral, and economic research
> randall.cell@???
>
> On Fri, 20 Jul 2001, Jan Suchanek wrote:
>
> > Hello!
> >
> > I am using exim together with the Webmail interface IMP. The mails are
> > send under the userid the web server is using. So if the delivery of a
> > mail fails the mail returns to the user "wwwrun" (or whatever the user
> > of the web server is...). I tried some rewriting rules but without any
> > success so far. Using a rule which only changes the "Sender" does not
> > work. How can I rewrite the rest of the header so that the return-path
> > points to the user who sent the mail (or better make even exim believe
> > that it came from this user...).
> >
> > Any ideas?
> >
> > Thank you.
> >
> > Greetings, Jan Suchanek
> >
> > --
> > Jan Suchanek,
> > Universitaet Ulm, URG, Fakultaet fuer Informatik,
> > 89069 Ulm, Germany
> > Raum: O27/243
> >
> > Tel.: +49/(0)731-5024205, Fax: +49/(0)731-5024202
> >
> > --
> > ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
> >
>
>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
--