1

Topic: Forward Email Based on Subject

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Ubuntu 14.04.02 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes, v2.3.1 (LDAP)
- Related log if you're reporting an issue:
====

How do I forward incoming email to other email if match a specific subject?
For example, if subject is "Request Account" then forward to another@email.com

Thank you

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Forward Email Based on Subject

One simple way is to login to your account through Roundcube and go to:
Setting -> Filters -> managesieve -> Under Filters press +

And then modify ->  Subject - contains/is equal to -  "Request Account"
Then under -> ...execute the following actions:
Add - > Redirect message to: another@email.com

Hope it helps

3

Re: Forward Email Based on Subject

Hello,

You are right. I can do it from roundcube webmail. I thought that if I did it through webmail, then I need to log into webmail to make the filtering works. It looks that I do not need to log into webmail to make filtering works for every incoming emails.

Thank you

Kalpin

4

Re: Forward Email Based on Subject

*) Do it before-queue: Postfix has parameter 'header_checks' to check mail header before it enters queue, forward it with 'REDIRECT' action:
http://www.postfix.org/header_checks.5.html

*) Do it after-queue: If you want a server-wide filter like this, you can add similar filter in /var/vmail/sieve/dovecot.sieve.