Re: Recipient rewrite based on sender
- Am 04.09.2013 21:01, schrieb Wietse Venema:
> Tobi:Hi Wietse
>> Hello list,
>> I have been asked if the following is possible somehow with postfix, but
>> as I'm quite unsure I try to ask the "gurus" :-)
>> The goal is something like a conditional recipient rewrite. The
>> condition would be the envelope sender.
>> Like: if sender is XXX rewrite the recipient to YYY but only if original
>> recipient is ZZZ.
>> The only way I see so far would be to use a postfix pipe to handover all
>> mails from defined sender to a script that does check the conditions for
>> recipient rewrite. But with the downsize that every mail from this
>> sender has to be piped through that script. Even those that would not
>> have met the conditions for rewrite.
>> Is there a way to achieve this without piping to an external script?
> I presented an example recently (one week ago) in the thread titled
> "recipient rewrite when sender != <>", including the limitations
> of that approach. You're welcome to adapt it.
> Sometimes I think that these questions are part of a distributed
> denial of service attack.
sorry for not using the search :-) Thought I'm the first one with such a
I found the other thread you mentioned and I will try what I can do with
it today after working
Thanks for the reply and I'm not part of a DDos :-)