Topic: Backup MX transport to dovecot bug ?
I had a problem with setting second node as backup mx. When I did it, postfix always send email to dovecot and dovect return error "Unknown user".
Same issue was reported here: http://www.iredmail.org/forum/topic4160 … up-mx.html
I think I found problem in SQL query for transports.
query = SELECT transport FROM domain WHERE domain='%s' AND active=1
This query apply transport field also to domains which are relay_domains, domains with backupmx = 1. My opinion is backupmx domain should be only received by postfix, stored in queue (maybe checked by amavis) and then resent to domain primary mailserver based on DNS mx records for domain, no transport magic.
So i changed this query to
query = SELECT transport FROM domain WHERE domain='%s' AND active=1 AND backupmx = 0
and now it works.
BUT i just look into
Can you please tell me what is wrong with this ? Before I put mailserver into production.
==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Linux/BSD distribution name and version: Debian Wheezy
- Related log if you're reporting an issue: