On Tue, Nov 27, 2001 at 07:10:50AM +0100, Hans Matzen wrote:
> Hello,
>
> I have got the following problem.
> When sending messages as replay there are somteimes
> internal email adresses (local adresses) which can not be uses as a
> replay adress. but my recipients use them for replies.
> how can I replaxe those local adresses before sending a mail?
> e.g. there is hans@localhost in the body of the mail and I want it to be
> hans@??? before sending the email outside my local net.
>
> any ideas ?
If I got you right, header rewriting is the solution for your problem.
If you just want to replace the domain:
root@localhost * # so messages concerning root won't be touched
*@localhost $1@???
If you want to use completly different addresses for each user:
*@localhost ${lookup{$1}lsearch{/etc/email-addresses}\
{$value}fail} frFs
At least this works for me.
See the exim documentation
http://www.exim.org/exim-html-3.30/doc/html/spec_34.html#SEC752
for detailed information.
--
Florian Friesdorf <42ff@???>
OpenPGP key available on public key servers
------> Save the future of Open Source <------
-> Online-Petition against Software Patents <-
------>
http://petition.eurolinux.org <-------