1

Topic: Delivering message to multiple mailboxes

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

Hi,
It's rather general question than a problem description.
The easiest way is to describe it by example.
We have two legitimate e-mail accounts with seperate maildirs:
- john@example.com,
- don@example.com.

I'd like a message delivered to John to be replicated to Don's maildir and opposite (message to Don replicated to John's maildir)
I've tried to add aliases:
don@example.com as alias for john,
john@example.com as alias for don,
but it complains about Primary Key in sql structure.

How can I acheive this ?


If I'd use .forward file in both home directories one message would be stored two times.

I've seen in PRO version forward option with copy on local accout. Will it work as I want?

----

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

2

Re: Delivering message to multiple mailboxes

misieq wrote:

I've seen in PRO version forward option with copy on local accout. Will it work as I want?

Yes it will. You can also achieve it with MySQL command line, simply append forwarder's email address in SQL table "vmail.alias" like below:

* For don@example.com:

address=don@example.com
goto=don@example.com,john@example.com

* For john@example.com:

address=john@example.com
goto=john@example.com,don@example.com

That's all.

Personally, i recommend to manage with iRedAdmin-Pro to make your life easier. smile

http://www.iredmail.org/images/iredadmin/user_profile_mail_forwarding.png