Re: archiving all IMAP mail?




Wael Nasreddine wrote:

This One Time, at Band Camp, C Thala [1]<cthala@xxxxxxxxx> 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@xxxxxxxxxxxxxx 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@xxxxxxxxxxxxxx, 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@xxxxxxxxxxxxxx (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@xxxxxxxxxxxxxx
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@xxxxxxxxxxxxxx'
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@xxxxxxxxxxxxxx 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@xxxxxxxxx
2. mailto:wael@xxxxxxxxxxxxxx
3. mailto:wael@xxxxxxxxxxxxxx
4. mailto:wael@xxxxxxxxxxxxxx
5. mailto:wael@xxxxxxxxxxxxxx
6. mailto:wael@xxxxxxxxxxxxxx
7. mailto:wael@xxxxxxxxxxxxxx
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: [SLE] POP Mail HOWTO?
    ... people, who have the option to log onto the serving machine and read mail from there, OR to read their mail from other PCs in the building, then you want fetchmail and and IMAP server to all start and run as processes when the machine boots. ... or can it handle /data/Maildir for the non-local subscribers as well as individual ~/Maildir for those who have local login accounts? ...
    (SuSE)
  • Re: [SLE] POP Mail HOWTO?
    ... and what about mail users who don't have login ... accounts on the server PC? ... Similar questions about IMAP. ...
    (SuSE)
  • Re: [SLE] 9.1 TO 10.1 QUESTIONS.
    ... If this is a server you should not be playing music on it, ... I can have 20+ different email accounts on the server for the ... I POP the mail to one logged in user on a remote machine then I have ... Learn how to setup aliases for the different mail accounts so that all ...
    (SuSE)
  • Re: IMAP in Outlook Express
    ... > How can you set up IMAP in Outlook Express? ... you'll need to know the type of e-mail server you use ... On the Tools menu, click Accounts. ... The root folder path identifies the mailbox that contains your folders on ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: mail setup recommendation
    ... > SMTP server with SSL/TLS authentication ... > sorted into different IMAP folders (dont need a interface, ... if you are setting up SMTP for the first time ever and using Fedora ... Of the two dovecot is significantly easier to setup (install it, ...
    (Fedora)