On Tue, Mar 4, 2014 at 6:49 PM, Matthias Egger <maeg...@ee.ethz.ch> wrote:
> Hello List > > Can somebody point me to the propper direction on how to solve this? > > What we have: > > * <secret...@ee.ethz.ch> 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 <sa...@software.tld> and asked to replace the > secretary address by some other address. Unfortunately > <sa...@software.tld> is ignoring us and still sends the download links > to <secret...@ee.ethz.ch>. > > What i would like to: > > I would like to make sure, that these specific upgrade mails coming from > <sa...@software.tld> sent to <secret...@ee.ethz.ch> will be redirected > to another address. But Emails coming from <some...@somewhere.tld> > (which also could include <some.othersen...@software.tld>) 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 maeg...@ee.ethz.ch > 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