1

Topic: Auto Forwarding Emails with Criteria

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Debian 7.6
- Related log if you're reporting an issue:
====

Hi Support,

I'm hosting an iRedMail Server with >10 users. I'm working on some filters inside the roundcube mail for my own account to achieve this:

when sender = somebody@somedomain.com, forward / redirect to recipienta@mydomain.com
when sender = anothersomebody@somedomain.com, forward / redirect to recipientb@mydomain.com

May I ask if it's possible to achieve this?

Regards,
Hang

----

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

2

Re: Auto Forwarding Emails with Criteria

Yes. You can login to Roundcube webmail, click "System -> Filters" to define this rule.

3

Re: Auto Forwarding Emails with Criteria

It doesn't work for me, is anything wrong?
http://i60.tinypic.com/fn94j8.png

I would like to deliver all @aia.com 's email to the somebody@somedomain.com

Thanks in advance!

4

Re: Auto Forwarding Emails with Criteria

Try '.*@aia.com$' instead of '@aia.com$'. It works for me.

5 (edited by thehanghk 2014-09-19 12:32:04)

Re: Auto Forwarding Emails with Criteria

Not for me, seems I got no luck.

original@somedomain.net is the original recipient, while I'm going to forward this email to somebody@somedomain.net

Sep 19 12:26:14 mail1 postfix/cleanup[20033]: 9EFEDC0070: message-id=<>
Sep 19 12:26:14 mail1 postfix/qmgr[3228]: 9EFEDC0070: from=<test@aia.com>, size=699, nrcpt=1 (queue active)
Sep 19 12:26:14 mail1 postfix/smtpd[20029]: disconnect from node-mec2.wormly.com[184.72.226.23]
Sep 19 12:26:15 mail1 postfix/smtpd[20037]: connect from localhost[127.0.0.1]
Sep 19 12:26:15 mail1 postfix/smtpd[20037]: 0F48FC0073: client=localhost[127.0.0.1]
Sep 19 12:26:15 mail1 postfix/cleanup[20033]: 0F48FC0073: message-id=<20140919042615.0F48FC0073@mail1.somedomain.net>
Sep 19 12:26:15 mail1 postfix/qmgr[3228]: 0F48FC0073: from=<test@aia.com>, size=1208, nrcpt=1 (queue active)
Sep 19 12:26:15 mail1 postfix/smtpd[20037]: disconnect from localhost[127.0.0.1]
Sep 19 12:26:15 mail1 amavis[17093]: (17093-06) Passed CLEAN {RelayedInternal}, LOCAL [184.72.226.23]:47290 [184.72.226.23] <test@aia.com> -> <original@somedomain.net>, Queue-ID: 9EFEDC
0070, mail_id: yFtxlozMzUjg, Hits: 1.112, size: 699, queued_as: 0F48FC0073, 702 ms
Sep 19 12:26:15 mail1 postfix/pipe[20038]: 0F48FC0073: to=<original@somedomain.net>, relay=dovecot, delay=0.15, delays=0.06/0/0/0.1, dsn=2.0.0, status=sent (delivered via dovecot servic
e)
Sep 19 12:26:15 mail1 postfix/qmgr[3228]: 0F48FC0073: removed
Sep 19 12:26:15 mail1 postfix/smtp[20034]: 9EFEDC0070: to=<original@somedomain.net>, relay=127.0.0.1[127.0.0.1]:10024, delay=4, delays=3.1/0/0/0.81, dsn=2.0.0, status=sent (250 2.0.0 fr
om MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0F48FC0073)
Sep 19 12:26:15 mail1 postfix/qmgr[3228]: 9EFEDC0070: removed

Here is my setting
http://i59.tinypic.com/15h0ci9.png

6

Re: Auto Forwarding Emails with Criteria

No idea, it works for me. Not sure why it doesn't for you.

By the way, maybe you can try this solution in your another topic:
http://www.iredmail.org/forum/post33140.html#p33140

7 (edited by thehanghk 2014-09-19 13:55:23)

Re: Auto Forwarding Emails with Criteria

That alias approach works only for forwarding all emails. What I want here is to forward mails based on filters. Anyway thanks very much for your patient! wink