> If a node has mail OR mailAlternateAddress email will be delivered. Yes, that's my understanding that if the mailAlternateAddress is being serviced by the mail server (as indicated in /var/qmail/control/locals), the server would deliver the email locally. But that's not happening in my case.
This is part of a project to migrate mail accounts in phases to a new server (qmai-ldap), Current email address will be retained. The intention is: 1. Existing mail server (netqmail/POP3) is servicing @pb.xxx.com. 2. Mail accounts will be migrated to the new qmail-ldap/Courier-IMAP server. Migrated mail accounts will have records in LDAP with mail attribute value the same as existing email address (@pb.xxx.com) and a mailAlternateAddress (@pb2.xxx.com). New server is configured to deliver @pb2.xxx.com locally (as indicated in /var/qmail/control/locals). 3. Old server will serve as the SMTP gateway. @pb.xxx.com mails for migrated accounts will be forwarded to @pb2.xxx.xom. This is working. 4. Would want that emails from the new server that is addressed to the migrated accounts (addressed to @pb.xxx.com but mail account has mailAlternateAddress @pb2.xxx.com in LDAP) be delivered locally. Currently, these emails are still relayed to old server (the SMTP gateway) which then returns/forwards it back as @pb2.xxx.com. I would like to eliminate the depency of having to send out emails from the new qmail-ldap server that is intended for itself. Is this setup possible? What config changes do I need to make?