Alois Mahdal grabbed a keyboard and wrote: > I wonder if there already is a solution for this: > > I have several mailboxes in various places that I access using > several clients (e.g. other from my laptop, other from my Android > and other from a public place). > > Some of boxes (e.g. the one I use for various mailing lists including > debian-user) are quite high-traffic and obviously in need of some > filtering, be it based on origin or the spam score. > > Since I'm using various clients, filtering using rules in MUA is not > practical. I would prefer to have all this logic in a single place, > (namely my personal VPS box), where for example a script would exist > just for purpose of regularly checking new mail and moving the > new messages to given folders based on pre-defined rules. > > I think that this could be nice universal solution for any number of > mailboxes (as long as they support IMAP), completely avoiding the > question of when I actually use which MUA to read/write stuff. > > Any ideas how to do this easily? (Of course, the mentioned VPS is Debian > Wheezy.) Or, is there a ready solution that could be used right away?
I'm in a similar situation (multiple mail clients on multiple machines, dealing with mail that comes from several sources and mailboxes, addressed to several different addresses). There are many ways to do what you want; here's how I handle this particular situation. One of the machines on my home network is my Linux server, running Debian Squeeze. I've got Postfix installed for the MTA and Procmail installed as the LDA. I've got a regular use account on the machine for my day-to-day stuff. My regular user account runs fetchmail via cron every so often, which goes out via secure (encrypted) IMAP connections to my various mailboxes scattered across the Internet. :-) That, in turn, feeds the mail to Postfix for handling, which then passes it off to Procmail for delivery. I've got a $HOME/.procmailrc file that's chock full of rules running the mail through spamassassin and then decides which mail folder a given message needs to go to, based on various criteria, and then delivers the mail to that folder. All of my mail clients on all of my various other machines are all configured to make an encrypted IMAP connection to the Linux server here at home and get the mail from there, already in the various folders they need to be in. I'm sure there will be others who will post ways that they do it, but that's how I handle the situation. Have done it this way for many years and it works just great. HTH. --Dave
signature.asc
Description: OpenPGP digital signature