From owner-freebsd-questions@FreeBSD.ORG Mon Sep 22 08:33:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06C591065671 for ; Mon, 22 Sep 2008 08:33:58 +0000 (UTC) (envelope-from rock_on_the_web@comcen.com.au) Received: from angel.comcen.com.au (angel.comcen.com.au [203.23.236.69]) by mx1.freebsd.org (Postfix) with ESMTP id C2DD68FC2E for ; Mon, 22 Sep 2008 08:33:57 +0000 (UTC) (envelope-from rock_on_the_web@comcen.com.au) Received: from [192.168.0.185] (unknown [202.172.126.254]) by angel.comcen.com.au (Postfix) with ESMTP id ECDD65C2E72C for ; Mon, 22 Sep 2008 18:30:05 +1000 (EST) From: Da Rock To: freebsd-questions@freebsd.org Content-Type: text/plain Date: Mon, 22 Sep 2008 18:29:36 +1000 Message-Id: <1222072176.4625.48.camel@laptop1.herveybayaustralia.com.au> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-5.fc8) Content-Transfer-Encoding: 7bit X-comcen_com_au-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: ECDD65C2E72C.ABAD1 X-comcen_com_au-MailScanner: Found to be clean X-comcen_com_au-MailScanner-From: rock_on_the_web@comcen.com.au X-Spam-Status: No Subject: Postfix, maildir's, and writing filters X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2008 08:33:58 -0000 Howdy. This may seem simple, but I'm completely green on this: I have a postfix server with a courier-imap client frontend using maildir's. I'm using imap for an internal mta, but I need to setup a system which retains copies of sent emails on the network and not on individual workstations (which is what happens currently). I've looked at some of the solutions (bcc and send to a psuedo account for each user, bcc to the user and filter the incoming mail on this) but it seems like a very roundabout way of doing things. I've read up on Postfix, and there is support for custom filters, so: 1. what does it take to write one? 2. how does one copy email from one folder to another in maildirs? Is it possible? This idea I have should filter the outgoing mail and copy the messages to the sent folder as well as retaining its place in the queue. Any ideas? Maybe a link to some good info? I would like to know how to do this myself so I can do more in the future so info and pointers would be great (if you have a script you'd like to share then please show me how it works :) ). Cheers