Re: Address Rewriting for relayed emails
- On Thu, Dec 02, 2010 at 05:23:33PM +0100, Jeroen Geilman wrote:
> On 12/02/2010 10:10 AM, Michael.H.Grimm@... wrote:No.
>> Thanks for the config hint.
>> It works fine if I add an email address like this to generic
>> laserjetscanner@... notifications@...
>> It does not work if I want to do the following:
>> @... notifications@...
>> It then appears to rewrite the recipients address as well and not only the
>> senders address.
>> So the account notifications@... receives it's own emails.
>> Can I restrict the rule to the sender only?
> Use sender_canonical_classes combined with sender_canonical_maps instead.
When rewriting addresses in headers, all addresses, both sender
and recipint should be rewritten, if a domain is invalid in the sender
address, it is also invalid in the To/Cc addresses which are used in
the same way as "From:" in Reply-All.