It sounds like you need a milter (mail filter) to me, the easiest way to write one I've found so far is by using python-libmilter:
http://stuffivelearned.org/doku.php?id=programming:python:python-libmilter https://github.com/crustymonkey/python-libmilter Of course, that's only if you prefer python to C. I don't know if there is any other way to do it, but I suspect not. On 12/12/2013 06:23 AM, Marko Weber | ZBF wrote: > > hello list, > its me again from hamburg. > > i googled some time to find a solution for following scene: > > incoming mails for import...@dingdong.com , should be copied to > mob...@dingdong.com AND > if Attachements are in the mail, they should be stripped out. > Only in the account import...@dingdong.com should be the full mail with > attachements. > > is there an solution to do this with postfix? > > thanks for any hints or guides > > marko