Re: [Exim] add/remove header

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Hans Matzen
Datum:  
To: exim-users
Betreff: Re: [Exim] add/remove header
hi,



Am Sam, 23 Okt 1999 schrieb Vadim Vygonets:
> Quoth Hans Matzen on Sat, Oct 23, 1999:
> > I am searching for a possibility to rewrite (add/remove) the
> > following first line from mails via exim:
> >
> >     From aaa@aaa

>
> You mean envelope sender (SMTP MAIL FROM), right?
>


Yep.

> Why do you need it? If you describe your situation, I may be
> able to arrive to a cleaner solution.
>

I have got a local network which is connected only via ppp to the
internet.
well, if a local user sends mail to a list of users, some of
them local and some of them remote, either the local or the remote
users got wrong addresses in there mail header.
e.g. an error report would be sent to the local address which is
not valid outside my domain or if I do a global rewriting to the
remote address would be sent to the remote address which doesnt
make sense.

what i want is: rewrite everey local addresses in the header
concerning the originator of the mail
if the mail is remote and dont if its not.
it could be the same mail delivered to different recipients

thats no problem with From: ,Sender:, Return-path:, etc.
using add/remove header combined with a lookup from a local file
which maps the local addresses to the corresponding valid
remoteaddresses.
but I am not able to find a way to replace the From line
at transport time. maybe there is another way to do this ?

for the same mail delivered to different recipients that would be:
e.g.
local recipient:

    From blaa@???
    .
    Sender: blaa@???
    .
    .
remote recipient:
    From hans@???
    Sender: hans@???
    .
    .


then everyone is happy and the headers are correct from my point
of view.

thanks

hans