Hello!

I got a strange setup for several email addresses:
[email protected]
[email protected]
[email protected]

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 [email protected], in alias file it is forwarded to
local account SORTER and to [email protected] and [email protected].
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 [email protected], the FROM should be
rewritten to [email protected] 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: [email protected]
Fax: +43 316 873-5402       PGP-Key-ID: 0x4A9B1723

Attachment: signature.asc
Description: OpenPGP digital 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