1

Topic: VIRTUAL DOMAIN

SETUP: 2 Servers with Debian OS installed iRedMail 0.6.1
            Domain: mydomain.biz & mydomain.net
            Server1-  mydomain.biz (as primary)
                           mydomain.net (virtual) (backup mx of mydomain.net)
            Server2-  mydomain.net (as primary)
                           mydomain.biz (virtual) (backup mx of mydomain.biz)
         
Problem: When I send email to user1@mymdomain.net using my account user1@mydomain.biz, it will not send to Server2. It was received/saved in Server1.(which is my backup mx for mydomain.net).

----

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

2

Re: VIRTUAL DOMAIN

When sending out email, Postfix will lookup destination domain from local database(mysql/ldap) first, it it exists locally, mail will be delivered to local mailbox.

You should disable your backup mx domain in ldap/mysql, but configure them as backup mx in DNS.

3

Re: VIRTUAL DOMAIN

Same problem. See steps taken in disabling the backup mx domain in mysql.(in Server1)

mysql> use vmail;

mysql> update domain set active='0' where domain='domain.net';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> select domain,active from domain;
+------------+--------+
| domain     | active |
+------------+--------+
| domain.biz |      1 |
| domain.net |      0 |
+------------+--------+
2 rows in set (0.00 sec)

4

Re: VIRTUAL DOMAIN

You should also apply update here:
http://iredmail.org/wiki/index.php?titl … mx_support

Note: Just apply "Improve backup mx support" section.

5

Re: VIRTUAL DOMAIN

Still the same problem.

1. Edit the two files.
2. Restart postfix.

6

Re: VIRTUAL DOMAIN

I think I need to revised my setup.

Server1: main mx of mydomain.biz
              main mx of mydomain.net

Server2: backup mx of mydomain.biz
              backup mx of mydomain.net

Thanks Zhang. If you find a better solution other than that, I'm happy to hear it.

Best Regards,