Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    May 2004
    Posts
    10

    Default Filter emails into inbox folder

    Is there a server-side way to filter incoming emails and move them into a separate folder depending on specific conditions?

    For example, if the subject contains "Dilbert" - move it to the Dilbert folder or if the email is from @domain.com move it to the domain folder.

    Thanks,

    Chris

  2. #2
    Member
    Join Date
    May 2004
    Posts
    10

    Default

    Does anyone know an answer to this?

  3. #3
    Member
    Join Date
    Jan 2003
    Posts
    276

    Default

    I am not certain but I think you can set different rules in horde webmail where it would do that.
    www.ccccanada.com
    Web and Server Hosting

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    99

    Default

    I know he doesnt want this, he wants this done by exim. So It will get filtered and then put into different IMAP folders.

  5. #5
    Member
    Join Date
    May 2004
    Posts
    10

    Default

    Yes. I want exim or something to filter them -> I check email from different machines and don't want to remake the rules on every client.

  6. #6
    Member
    Join Date
    Jan 2005
    Posts
    13

    Default

    I agree completely... I want to be able to set up a filter in cpanel to filter certain emails into various mail foders... does anyone know how to do this? It can't be that hard.

    Thanks,

    Dana

  7. #7
    Member
    Join Date
    May 2004
    Posts
    10

    Default

    Dana,

    I managed to do this! It involes playing with /etc/vfilters/. Each domain has its own file, ie mine is ceejaycee.net.

    Here is an example of a line I put in my file:

    Code:
    if $header_subject: contains "The Planet Support Ticket"
    then
       save "/home/ceejayce/mail/ceejaycee.net/chris/Projects/Orbit Support Tickets" 0777
    endif
    
    if $header_subject contains "SPAM"
    then
       save "/home/ceejayce/mail/ceejaycee.net/chris/Trash" 0777
    endif
    If you need to find out some other rules, I think you can google for exim filters or rules - it's been a while since I made a rule. Hope that helps you.

    Chris

  8. #8
    Member
    Join Date
    Jan 2005
    Posts
    13

    Default

    Nice, that looks like it will work, if not I will post what did work back here.

    Dana

  9. #9
    Member
    Join Date
    Mar 2003
    Posts
    427

    Default

    You are not running maildir !?

    There's no file to write to with maildir, just the folder.
    Then you should add a "/" after the folder.

    But - then this error will show:

    "directory_transport unset in central_filter router"

    Anyone have any idea on this one ?
    I'm trying to find out but it's not funny ...:-)

  10. #10
    Member
    Join Date
    Mar 2003
    Posts
    427

    Default

    I found it!

    To filter mail to a Maildir accounts IMAP subfolder (!) you need to
    add this to exim conf under central_filter:

    It say already:
    file_transport = address_file

    Put this below:
    directory_transport = address_file

    This is because you are not writing to a file here, you're writing to a folder.

    You can use the cpanel filter interface as usally.
    Under "destination" write your path to the e-mail accounts "new" folder och
    the e-mailaccounts subfolders "new" folder.

    For example:
    Destination: /home/domain44/mail/domain44.com/support_email/.urgent/new/

    support_email = support_email@domain44.com
    .urgent = IMAP folder

    The "/" in the end is important.

    I will add this to a new thread as a how to - my first :-)

Similar Threads & Tags
Similar threads

  1. INBOX folder = INBOX\Sub-Folder of diff user? Possible?
    By doni49 in forum E-mail Discussions
    Replies: 3
    Last Post: 09-08-2009, 08:40 AM
  2. Only INBOX folder in Squirrelmail
    By swznd in forum E-mail Discussions
    Replies: 1
    Last Post: 05-19-2009, 06:12 PM
  3. Filter Spam before it hits the inbox
    By nexusnet in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-21-2006, 01:09 AM
  4. split/filter 1GB inbox
    By hicom in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-02-2006, 05:16 PM
  5. Inbox folder dont show new emails
    By Plattfuss in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-03-2003, 08:26 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube