Topic: backupmx bug?
==== Required information ====
- iRedMail version: 0.7.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: ubuntu 10.04
- Related log if you're reporting an issue:
====
Hello, after install iredmail as primary mx, switch server to secondary by inserting in mysql backupmx=1
all mails to my domains return with code 5.1.1 unknown user
i check all settings and find problem - in transport_maps_domain.cf
query SELECT transport FROM domain WHERE domain='%s' AND active=1
for my domains return transport=dovecot,
and dovecot in /etc/dovecot/dovecot-mysql.conf
query user_query = SELECT CONCAT(mailbox.storagebasedirectory, '/', mailbox.storagenode, '/', mailbox.maildir) AS home, CONCAT('*:bytes=', mailbox.quota*1048576) AS quota_rule FROM mailbox,domain WHERE mailbox.username='%u' AND mailbox.domain='%d' AND mailbox.enable%Ls%Lc=1 AND mailbox.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND mailbox.active=1
return nothing and send mail with 5.5.1 code
I change query in transport_maps_domain.cf
SELECT transport FROM domain WHERE domain='%s' AND active=1 AND backupmx=0
and mails sended to primary MX server
What this - iRedMail bug or my mistake ?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.