How do I set up server-side custom IMAP mail filters/rules?

  • Posted February 21, 2014

I am upgrading from a shared hosting setup with cPanel to DO. cPanel allows me to setup account-level and user-level filters with IMAP accounts. For instance:

  1. forwarded email from can be set to be delivered to IMAP folder “something” on address
  2. subject lines containing “x” can be set to be delivered to imap folder “x”

How would I accomplish this either with a feature on any of the free admin panels like vesta or even SSH?



Hi, did you figure this out? I am looking for solution for a while, but no luck so far. Essentially I need to:

  • specify rules based on sender e-mail address (wildcart support needed)
  • specify rules based on subject of e-mail (wildcard support needed)

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

What are you using for mail on your server, postfix? Or have you gotten that far? We’ve got an article that should point you in the right direction to set up postfix: <br> <br> <br> <br>It also covers forwarded email to an “alias.” Let us know how it goes! <br> <br>
<br> <br>