> > Hi,
> >
> > is there a way to rewrite a sender address in
> dependence of
> > the recipient?
> >
> > Example:
> > sender + recipient = new sender address
> > ----------------------------------------------
> > j...@example.net
> + j...@example.net
> = robotforj...@example.net
> > j...@example.net
> + <anything else> = j...@example.net
> (no change)
> >
>
> The less convoluted way I see would be to write a content
> filter to do
> that.
>
> what "real" problem are you trying to solve?
>
The problem:
- I have a webapp for an affiliate bussiness. The app sends emails to the 
registered users in dependence off a workflow-state.
- the sender-email-address is an email-address of the affiliated business 
(marketing decision)
- in some cases the affiliated business whants also to receive a CC of the 
message. But its email-server will not accept an email (sender-address) of its 
domain coming from outside of their network (SPAM-prevention).
=> Thats because I _must_ send the email in my address, but for marketing 
reasons all other emails must be send like they are send now (in their name)

The actual solution is, that I send all emails for j...@example.net to a third 
email-server which has a sender_canonical-rewrite rule. This emailserver sends 
the email than forward with the changed sender-email-address to the MX of 
j...@example.net. This runs so actually successful for years. But I'm confident 
that there must be also a solution to solve the problem using only one 
email-server.

Is the problem understandable?

Karfunckel




Reply via email to