What was wrong with the following (admittedly not hightech) solution:
(it is assumed that the local host is bbconsult.co.uk, and do the
substitutions
somewhereelse.co.uk -> fruitconsultants.co.uk
dom -> bannas
)
Do you have more than one domain you need to use these mappings?
Date: Tue, 23 Feb 1999 22:55:08 CST
To: "Martin Green" <[EMAIL PROTECTED]>
cc: [EMAIL PROTECTED]
From: Mate Wierdl <mw>
Subject: Re: Filtering outgoing mail
In-Reply-To: Message from "Martin Green" <[EMAIL PROTECTED]>
of "Wed, 24 Feb 1999 00:29:05 GMT." <000b01be5f8c$afd49f80$210be83e@de
***v>
Why not set up, for each domain an alias, and then do the filtering in
the alias file. This would mean though that even if you reply to a
message, you would need to send the message to the alias.
Here is what I mean. For the domain dom.com, (for which you want to
appear as [EMAIL PROTECTED]), create the file
~martin/.qmail-dom-default
with (all on one line)
|reformail -I"From: [EMAIL PROTECTED]"
-I"Reply-To: [EMAIL PROTECTED]" |
forward $[EMAIL PROTECTED]
This would make sure that if you address a message to martin-dom-joe,
then it will be forwarded to [EMAIL PROTECTED] with the From: and the Reply-To:
appropriately rewritten.
If it is a concern, you can always rewrite the To: header as well
adding
-I"To: $[EMAIL PROTECTED]"
This is not perfect, since maybe you are cc-ing a message to
[EMAIL PROTECTED]
reformail is part of the maildrop package.
Mate