[exim] conditional address rewriting for single email addres…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Lars Schimmer
Data:  
Para: Exim-users
Assunto: [exim] conditional address rewriting for single email addresses possible?
Hello!

I got a strange setup for several email addresses:
user123@???
user234@???
user345@???

beside lots of other emails on that domain.

Those emails are forwarded with local alias file to a local account and
2-6 external email addresses.
The local account uses a sieve script to sort into different local IMAP
shared folders.
The external forwards do have SPF issues currently.

My idea is to rewrite the FROM header of these Emails forwarded to
external users with the address the mail is sent to initially.

E.g.
alice sends a mail to user123@???, in alias file it is forwarded to
local account SORTER and to bob@??? and cesar@???.
Local account SORTER has a local sieve script to sort it into several
IMAP shared folders in cyrus.
I want exim4 (on debian) to rewrite the FROM header of this eamil into
user123@abc before it is forwarded to alice and cesar.

And if alice sends a mail to user345@???, the FROM should be
rewritten to user345@??? before forwarding to external dave abd emil.

It maybe rewritten before the alias file, as long as the alias file is
still looked and followed.

Any ideas?

(the basic header rewrite is simple and done on several servers of mine,
but that replaces all emails with a special domain, here I want rewrite
based on TO address and replace the FROM with the content of the TO header).

Thank you!


MfG,
Lars Schimmer
-- 
-------------------------------------------------------------
TU Graz, Institut für ComputerGraphik & WissensVisualisierung
Tel: +43 316 873-5405       E-Mail: l.schimmer@???
Fax: +43 316 873-5402       PGP-Key-ID: 0x4A9B1723