Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
Is there a way to filter mails in remote IMAP account?

I want to setup an system on my server to filter my emails in folders and so on. The server is not an email relay, I want to handle it like an email client via IMAP. The reason is that I have multiple email clients (smartphone, etc.), and therefore I want to avoid to setup filter rules on each device.

My Plan is: I want to setup an email client which works on the console and able to connect via IMAP.

share|improve this question

marked as duplicate by ewwhite, Scott Pack, voretaq7 Jul 24 '12 at 16:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Okay, I choosed the wrong keywords during the internet search, and server fault shows me now the right thread here: serverfault.com/questions/45081/… –  plucked Mar 22 '12 at 12:17
1  
I would think that ImapFilter recommend in the accept answer at your link is not what you want. This is a tool than can do filtering on remote servers in absence of filtering capabilities on the IMAP server. Sieve or procmail will filter the mails as they arrive at the server, both work great. –  SvW Mar 22 '12 at 12:21
    
Maybe I misrepresent my question. The IMAPFilter does excaclty what I wanted. Filter my Emails on a server, so I can get a filtering outside of my devices (e.g. for spam, ect.) –  plucked Mar 22 '12 at 16:22

2 Answers 2

I would advise you to set up and configure an MDA (Message Delivery Agent) that supports the Sieve mail filtering protocol; this MDA will then filter your mail before it even enters your IMAP server.

NOTE that mail reception and IMAP are unrelated; you can sort it when it is already delivered to your mail store, but this is decidedly sub-optimal.

I use and highly recommend Dovecot 2.x with the Pigeonhole Sieve plug=in.

share|improve this answer

Set up an IMAP server (e.g. Dovecot) that uses Sieve to filter the mails. You then can connect with whatever you want (including console based clients on the server directly) to your IMAP account.

The classical alternative to Sieve is procmail.

share|improve this answer
    
nice concept, I will read into details about it –  plucked Mar 22 '12 at 16:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.