From owner-freebsd-questions@FreeBSD.ORG Tue Sep 23 00:09:01 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 BFCD91065680 for ; Tue, 23 Sep 2008 00:09:01 +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 81EF48FC18 for ; Tue, 23 Sep 2008 00:09:01 +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 D86A55C2EBD1 for ; Tue, 23 Sep 2008 10:00:26 +1000 (EST) From: Da Rock To: freebsd-questions@freebsd.org In-Reply-To: <200809221918.56935.fbsd.questions@rachie.is-a-geek.net> References: <1222072176.4625.48.camel@laptop1.herveybayaustralia.com.au> <200809221918.56935.fbsd.questions@rachie.is-a-geek.net> Content-Type: text/plain Date: Tue, 23 Sep 2008 10:00:04 +1000 Message-Id: <1222128004.4625.101.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: D86A55C2EBD1.3F584 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: Re: 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: Tue, 23 Sep 2008 00:09:01 -0000 On Mon, 2008-09-22 at 19:18 +0200, Mel wrote: > On Monday 22 September 2008 10:29:36 Da Rock wrote: > > 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). > > Just so I'm clear, postfix will deliver all mail? If so: > always_bcc (default: empty) > > Optional address that receives a "blind carbon copy" of each message that > is received by the Postfix mail system. > > Note: if mail to the BCC address bounces it will be returned to the > sender. > > Note: automatic BCC recipients are produced only for new mail. To avoid > mailer loops, automatic BCC recipients are not generated for mail that > Postfix forwards internally, nor for mail that Postfix generates itself. > > recipient_bcc_maps (default: empty) > > Optional BCC (blind carbon-copy) address lookup tables, indexed by > recipient address. The BCC address (multiple results are not supported) is > added when mail enters from outside of Postfix. > > I am not sure, whether "forwards internally" means mail between two users of > the same postfix installation. It applies also to recipient_bcc_maps. If > postfix won't do this, there's probably a good reason for it, so then I'd > think twice if I really wanted this feature. > I've read about all that but its not what I'm looking for, thanks anyway. I just want to (possibly) send to a filter mail that comes into the queue, check to see if it has been generated by a local domain, and put a copy of the message in the sender's sent folder in the maildir. If there is a better way then I'm open to suggestion, but everything I've read so far (such as the bcc settings) appears to be a bandaid or workaround rather than attacking the solution head on. Its appears simpler to me to avoid using the mailer and filtering per recipient by simply copying using and external filter on postfix. I'm obviously not the only one who would like a feature like this for maildir setups on postfix based on how many times that suggested workaround appears on the google searches. Once I have worked out a proper solution I'll post it and I can almost guarantee the popularity of it :)