On 8/10/22 09:51, Andrew C Aitchison wrote:

the command, including any surrounding angle brackets.

Argh, RTFM :(

So $1 *does* include the opening "<" which is why you had to add the ">"

The rule
     ^([^<]*)@(.*)\\.olddomain\\.org $1@$2.newdomain.org TS
seems to work for me.

I still had problems, with your suggested [^<]
Rewriting was OK, but my routing still was unhappy.
Anyway I ended up with

^(.*)@(.*)\\.olddomain\\.org(>?) $1@$2.newdomain.org$3 TS


Without the doubled slash:
     ^([^<]*)@(.*)\.olddomain\.org $1@$2.newdomain.org TS
we would also rewrite f...@subolddomain.org as f...@su.newdomain.org

Thanks for the hint about the double slash.
But since I have no MX on "subolddomain.org" this more a cosmetic problem ;-)

Thanks for your help,
Olaf



--
Karlsruher Institut für Technologie (KIT)
Steinbuch Centre for Computing (SCC)

Dipl.-Geophys. Olaf Hopp

Zirkel 2
Gebäude 20.21, Raum 316
76131 Karlsruhe

Telefon: +49 721 608-48009
E-Mail: olaf.h...@kit.edu
Web: www.scc.kit.edu

Sitz der Körperschaft:
Kaiserstraße 12, 76131 Karlsruhe

KIT - Die Forschungsuniversität in der Helmholtz-Gemeinschaft

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
## 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/

Reply via email to