Re: [exim] exim rewrite envelope-from for one router only

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Mueller
Datum:  
To: 'Tim Watts via Exim-users'
CC: mueller
Betreff: Re: [exim] exim rewrite envelope-from for one router only
Try it this way:
My Example, where @tplk.loc change to s @your.domain
And /etc/exim/lokal_remote is the alias file change the path to where you
want
In the alias file:

Your.real@??? : remote=my-alias[-bounces]@mydomain.example.com



#                      REWRITE CONFIGURATION                         #
######################################################################


# There are no rewriting specifications in this default configuration file.

begin rewrite
##way out send Emails change smtp header your way
*@tplk.loc "${extract{remote}
{${lookup{$0}lsearch{/etc/exim/lokal_remote}{$value}fail}}{$value} fail}"
rsfF


Greetings
Daniel


EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen
Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller@???
Internet: www.tropenklinik.de




-----Ursprüngliche Nachricht-----
Von: Tim Watts via Exim-users [mailto:exim-users@exim.org]
Gesendet: Donnerstag, 21. März 2019 16:57
An: exim-users@???
Betreff: [exim] exim rewrite envelope-from for one router only

Hi. This one has got me completely stumped. Any tips would be very much
appreciated :)

I need to rewrite the SMTP-From header for /etc/alias type redirects.

This is to avoid upsetting the SPF checker on the next mail gateway (for
external users mailing into one of my aliases).

I would like to do what mailman does and replace the SMTP-From with
something like:

my-alias[-bounces]@mydomain.example.com
for the redirect of the same name.


OK - You can headers_add in a router so changing From: and Reply-To:
headers is simple enough...

But I can see no way to change the SMTP-From/Envelope-From within a router
or indeed anywhere using the same conditions the router triggers on.

This is for Departmental contact addresses, where running a full mailman
list for 2-15 recipients is a bit inelegant.

I've tried *conditional* rewrite rules but to be honest, I've never done
those before and I'm getting in a muddle.

I have considered a systemfilter too, or as someone else suggested off list,
piping to a script. But I feel there must be a way to do this inside the
exim config and I must be missing a trick.

Many thanks,

Tim
--
Tim Watts

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus