From owner-freebsd-questions@FreeBSD.ORG Fri Feb 15 02:08:42 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 4FDFB16A417 for ; Fri, 15 Feb 2008 02:08:42 +0000 (UTC) (envelope-from jackbarnett@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 0D20013C46A for ; Fri, 15 Feb 2008 02:08:41 +0000 (UTC) (envelope-from jackbarnett@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so664695pyb.10 for ; Thu, 14 Feb 2008 18:08:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=9az50Vtssurd/X3g1PhpsjA3ace3cs/lTCW06lj7Y9o=; b=TiXQMXdRIUNIL+u4uiApOJxcvnhPJcpwBRquLJA218RdTEKAyR3yk+9kpqUJNhV6m8ZAB5oYZwSrspPc1dfxu8cmGRX7quR1DCKr+4qj4lhlLFUqgBtgi9HjuejmFCBPyQJbgVZv5C/4+IxMRyDZe9Nlj+R1+q4qcrOTIo1omk4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=aEHDdkKjB1lP0zGzRLNvu7cwlbR6HHnUj/WpGxqUAsnRoLAY1XAq6ZmWcNi2fI8ck5B+5CinFjMirxxm5vIKb3YQvsPVU/43KGVCa8wlMaXRF1qR+FNbYCkhsul0ppWuxjCa89hzUvEYDscw0KYPdd7t6xIOLW7NIFWfvZfhk+8= Received: by 10.65.15.19 with SMTP id s19mr2665217qbi.77.1203041320740; Thu, 14 Feb 2008 18:08:40 -0800 (PST) Received: from ?192.168.17.10? ( [69.180.183.25]) by mx.google.com with ESMTPS id q17sm3019144qbq.34.2008.02.14.18.08.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 14 Feb 2008 18:08:40 -0800 (PST) Message-ID: <47B4F41B.9070005@gmail.com> Date: Thu, 14 Feb 2008 20:08:27 -0600 From: Jack Barnett User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) To: freebsd-questions@freebsd.org References: <77647f500802132332p735a53c7i10a76a3e909dfb7f@mail.gmail.com> <77647f500802140025q4ab4296bt529b41684ccad5db@mail.gmail.com> <47B3FE16.1000009@gmail.com> <77647f500802140115u1f2bbeb9x447c485a290fc8c3@mail.gmail.com> <20080214094338.GA21341@phoenix.nasreddine.info> In-Reply-To: <20080214094338.GA21341@phoenix.nasreddine.info> Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: archiving all IMAP mail? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jackbarnett@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2008 02:08:42 -0000 Wael Nasreddine wrote: This One Time, at Band Camp, C Thala [1] said, On Thu, Feb 14 , 2008 at 04:15:03AM -0500: On Thu, Feb 14, 2008 at 02:38:46AM -0600, Jack Barnett wrote: This is the setup I use: external accounts (pop, imap, etc) <->fetchmail -> procmail -> filter&archive -> imap local accounts -> procmail -> filter&archive -> imap Then my imap clients connect to the imap server. Please explain what you mean by "local accounts". If I'm not mistaken from reading your reply, this implies one of two things: 1. That I have two IMAP servers, one where I get all my mail, and a second one where I push mail after I have filtered/archived it. The first one should only by used by fetchmail, the second one is read by my various IMAP MUAs. 2. That I somehow have write access to the backend of my IMAP server, so I can pull all the mail from INBOX, do my archiving/filtering, and then repush to various folders and read from there. Is that correct? This isn't how I have it, I suppose Jack has a similar setup to mine, I'll detail my setup: First I have postfix installed with sasl/mysql backend, in MySQL I have all the virtual accounts for various domains, for example I have an entry for [2]wael@nasreddine.com which states that it's a normail Mailbox, not an alias it also guides postfix/courier-imap to the folder where the e-mails are stored. When you send an email to [3]wael@nasreddine.com, it goes to the vmail folder, Now using the package courier-imap which BTW provides both IMAP and POP3 Server, the email received by postfix can be checked using POP3 and the username [4]wael@nasreddine.com (Full username because this way I can have virtual domains, and the second most important reason is below) Now I have a normal UNIX user account 'wael' which has fetchmail that downloads emails from many accounts, Gmail, Hotmail, Yahoo, and local accounts (Which Jack mentioned as well and it's [5]wael@nasreddine.com for my case), fetchmail spits the mail out to procmail which do all the filtering and deliver the email to /home/wael/.mail folder (If you left the courier-imap config files as they are then you should deliver to Mailfolder instead of .mail, check /usr/local/etc/courier-imap/*) For the IMAP part, When I Use 'wael' instead of '[6]wael@nasreddine.com' it doesn't use the vmail but the UNIX user instead (see below) so it delivers whatever is under /home/wael/.mail :) The trick is that courier-imap has authlib backend (authdaemon) , and authlib has mysql/pam backends, so when u request mails for [7]wael@nasreddine.com it matches mysql qnd goes to virtual mail dir, when you send wael it matches pam and so mail on home folder If you need more assistance don't hesitate to ask... By local accounts, I mean mail that is delivered directly to the server (instead of getting pulled in via fetchmail). And yep, that is basically my setup to. I use sendmail and don't have a mysql backend, but the concept is the same. Have one imap server and then pull/push all emails from all accounts into that imap account The benefits of this, is that all your email is in one location and you have access to it all, regardless of what workstation or client you are using to connect to that server. Once place to filter, backup, search, etc. It can take awhile to setup if your not familiar with mail server software, but once it's working it's very easy to manage a lot of different email accounts/addresses. -J References 1. mailto:cthala@gmail.com 2. mailto:wael@nasreddine.com 3. mailto:wael@nasreddine.com 4. mailto:wael@nasreddine.com 5. mailto:wael@nasreddine.com 6. mailto:wael@nasreddine.com 7. mailto:wael@nasreddine.com