On Tue, Mar 4, 2014 at 6:49 PM, Matthias Egger <[email protected]> wrote:

> Hello List
>
> Can somebody point me to the propper direction on how to solve this?
>
> What we have:
>
> * <[email protected]> has bought a long time ago some software where
> she regulary receives "hidden" (to the public) download links for upgrades.
> * Secretary has quit and her account will be removed soon.
> * We have contacted <[email protected]> and asked to replace the
> secretary address by some other address. Unfortunately
> <[email protected]> is ignoring us and still sends the download links
> to <[email protected]>.
>
> What i would like to:
>
> I would like to make sure, that these specific upgrade mails coming from
> <[email protected]> sent to <[email protected]> will be redirected
> to another address. But Emails coming from <[email protected]>
> (which also could include <[email protected]>) should
> receive a regular "Recipient address rejected: User unknown" message.
>
> Is this possible somehow?
>
> Best regards
> Matthias
>
> --
> Matthias Egger
> ETH Zurich
> Department of Information Technology          [email protected]
> and Electrical Engineering
> IT Support Group (ISG.EE), ETL/F/24.1         Phone +41 (0)44 632 03 90
> Physikstrasse 3, CH-8092 Zurich               Fax   +41 (0)44 632 11 95
>

I'd totally solve this problem using sieve at IMAP level.
But an alternate postfix level solution is -

http://mattshaw.org/news/how-to-filter-mail-with-postfix-header_checks/ &
http://www.postfix.org/header_checks.5.html

(untested!!)

if /^From: sales@software\.tld/
/^To: seceratary@ee\.ethz\.ch/ REDIRECT ...
endif

Reply via email to