1 (edited by suto 2014-01-07 22:32:34)

Topic: domainBackupMX problem in iRedMail-0.8.6

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

Hi Zhang,

I have a problem after upgraded to iRedMail-0.8.6. I modified transport_maps_domain.cf following the upgrade howto on one of our business partners mail server (mail.partnersdomain.com) where I am admin. The server logged the following error message in /var/log/maillog:

Jan  7 10:17:58 mail postfix/smtp[12011]: ABFAD39800B7: to=<partner@relayedhost.partnersdomain.com>, relay=none, delay=0.56, delays=0.45/0.1/0.01/0, dsn=5.4.6, status=bounced (mail for relayedhost.partnersdomain.com loops back to myself)

The domainBackupMX=yes and mtaTransport=smtp:[192.168.1.10]:25 attributes were enabled for relayedhost.partnersdomain.com in LDAP tree. 192.168.1.10 is IP address of relayedhost.partnersdomain.com.

When I delete the domainBackupMX attribute, comes the following message in maillog:

Jan  7 10:26:33 mail postfix/smtpd[9640]: NOQUEUE: reject: RCPT from mail.mydomain.com[192.0.2.5]: 550 5.1.1 <partner@relayedhost.partnersdomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<suto@mydomain.com> to=<partner@relayedhost.partnersdomain.com> proto=ESMTP helo=<mail.mydomain.com>

The mail.partnersdomain.com is really not a backup MX server, but the relay_domains.cf requires the domainBackupMX attribute for the relaying.

(Logs are anonymized.)

----

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

2

Re: domainBackupMX problem in iRedMail-0.8.6

suto wrote:

The domainBackupMX=yes and mtaTransport=smtp:[192.168.1.10]:25 attributes were enabled for relayedhost.partnersdomain.com in LDAP tree. 192.168.1.10 is IP address of relayedhost.partnersdomain.com.

Could you please show me output of below commands:

# cd /etc/postfix/ldap/
# for cf in $(ls *cf); do echo ${cf}; postmap -q 'partner@relayedhost.partnersdomain.com' ldap:./${cf}; done
# for cf in $(ls *cf); do echo ${cf}; postmap -q 'relayedhost.partnersdomain.com' ldap:./${cf}; done
# grep 'query_filter' *

3 (edited by suto 2014-01-08 01:48:46)

Re: domainBackupMX problem in iRedMail-0.8.6

The output:

catchall_maps.cf
recipient_bcc_maps_domain.cf
recipient_bcc_maps_user.cf
relay_domains.cf
sender_bcc_maps_domain.cf
sender_bcc_maps_user.cf
sender_login_maps.cf
transport_maps_domain.cf
transport_maps_user.cf
virtual_alias_maps.cf
virtual_group_maps.cf
virtual_group_members_maps.cf
virtual_mailbox_domains.cf
virtual_mailbox_maps.cf

catchall_maps.cf
recipient_bcc_maps_domain.cf
recipient_bcc_maps_user.cf
relay_domains.cf
relayedhost.partnersdomain.com
sender_bcc_maps_domain.cf
sender_bcc_maps_user.cf
sender_login_maps.cf
transport_maps_domain.cf
transport_maps_user.cf
virtual_alias_maps.cf
virtual_group_maps.cf
virtual_group_members_maps.cf
virtual_mailbox_domains.cf
virtual_mailbox_maps.cf

catchall_maps.cf:query_filter    = (&(objectClass=mailUser)(accountStatus=active)(|(mail=@%d)(shadowAddress=@%d)))
recipient_bcc_maps_domain.cf:query_filter    = (&(objectClass=mailDomain)(|(domainName=%d)(domainAliasName=%d))(accountStatus=active)(enabledService=mail)(enabledService=recipientbcc))
recipient_bcc_maps_user.cf:query_filter    = (&(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s)))(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=recipientbcc))
relay_domains.cf:query_filter    = (&(objectClass=mailDomain)(|(domainName=%s)(&(enabledService=domainalias)(domainAliasName=%s)))(domainBackupMX=yes)(accountStatus=active)(enabledService=mail))
sender_bcc_maps_domain.cf:query_filter    = (&(objectClass=mailDomain)(|(domainName=%d)(domainAliasName=%d))(accountStatus=active)(enabledService=mail)(enabledService=senderbcc))
sender_bcc_maps_user.cf:query_filter    = (&(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s)))(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=senderbcc))
sender_login_maps.cf:query_filter    = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=smtp)(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s))))
transport_maps_domain.cf:query_filter    = (&(objectClass=mailDomain)(accountStatus=active)(enabledService=mail)(!(domainBackupMX=yes))(|(domainName=%s)(domainAliasName=%s)))
transport_maps_user.cf:query_filter    = (&(objectClass=mailUser)(mail=%s)(accountStatus=active)(enabledService=mail))
virtual_alias_maps.cf:query_filter    = (&(|(mail=%s)(shadowAddress=%s))(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(objectClass=mailAlias)(&(objectClass=mailUser)(enabledService=forward))))
virtual_group_maps.cf:query_filter    = (&(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(&(|(memberOfGroup=%s)(shadowAddress=%s))(objectClass=mailUser))(&(memberOfGroup=%s)(!(shadowAddress=%s))(|(objectClass=mailExternalUser)(objectClass=mailList)(objectClass=mailAlias)))))
virtual_group_members_maps.cf:query_filter    = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s))))
virtual_mailbox_domains.cf:query_filter    = (&(objectClass=mailDomain)(|(domainName=%s)(&(enabledService=domainalias)(domainAliasName=%s)))(!(domainBackupMX=yes))(accountStatus=active)(enabledService=mail))
virtual_mailbox_maps.cf:query_filter    = (&(objectClass=mailUser)(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s)))(accountStatus=active)(enabledService=mail)(enabledService=deliver))

If downgrade to old settings (as in 0.8.5) for transport_maps_domain.cf the outputs are:

transport_maps_domain.cf

transport_maps_domain.cf
smtp:[192.168.1.10]:25

transport_maps_domain.cf:query_filter    = (&(objectClass=mailDomain)(|(domainName=%s)(domainAliasName=%s))(accountStatus=active)(enabledService=mail))

4

Re: domainBackupMX problem in iRedMail-0.8.6

OK, looks like this backupmx related change in iRedMail-0.8.6 causes problem. I will send an email in our mailing list to ask users to revert this change.

So sorry about this trouble.