From owner-freebsd-isp@FreeBSD.ORG Tue Jun 10 06:05:06 2008 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B78131065677 for ; Tue, 10 Jun 2008 06:05:06 +0000 (UTC) (envelope-from quakenet1@optusnet.com.au) Received: from fep01.mfe.bur.connect.com.au (fep01.mfe.bur.connect.com.au [203.63.86.21]) by mx1.freebsd.org (Postfix) with ESMTP id 6FE938FC13 for ; Tue, 10 Jun 2008 06:05:05 +0000 (UTC) (envelope-from quakenet1@optusnet.com.au) Received: from beastie.pamada.com (unknown [210.11.0.118]) by fep01.mfe.bur.connect.com.au (Postfix) with ESMTP id 51413F5B1 for ; Tue, 10 Jun 2008 15:11:13 +1000 (EST) Received: from [192.168.0.42] ([210.11.0.118]) (authenticated bits=0) by beastie.pamada.com (8.14.2/8.13.8) with ESMTP id m5A5BCr2001886 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 10 Jun 2008 15:11:12 +1000 (EST) (envelope-from quakenet1@optusnet.com.au) Message-Id: <54930FD0-5217-4D4A-8118-D2ADF8413514@optusnet.com.au> From: Jerahmy Pocott To: freebsd-isp@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Date: Tue, 10 Jun 2008 15:11:06 +1000 X-Mailer: Apple Mail (2.924) Subject: Storing a local copy of out going SMTP X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2008 06:05:06 -0000 Hi, I have a 6.3 system running as a mail server, offering imap, pop3 and smtp. The smtp server can be used from anywhere because all users are required to authenticate with SMTP AUTH and it supports TLS. This is using sendmail 8.14.2. What I would like to do is have any mail submitted to the SMTP server to get automatically stored into an imap mailbox (I'm using mbox format currently) for that user, preferably based on the username they supplied to authenticate, but it could also be by the 'mail from:' field. Previously I have been configuring the users mail clients to do this, but they have proven completely unreliable and of course they may use different clients at different locations etc. Obviously having the server do this is still not 100% reliable, since they could still possibly use a different SMTP server, but I'm not going to worry about that currently as it's unlikely to happen often. It's sort of an unusual thing to have the MTA do, so I'v not been able to find anything about how I can get this to happen.. I thought maybe there might be a way to get the sent mail to be processed through procmail or something first.. Any thoughts on the best way to make this happen? Cheers, J.