Hi All, I am looking to migrate from an old Sendmail configuration to Postfix for secondary mail. The environment services hundreds of domains.
The current configuration on Sendmail works as follows: 1. There are two mail servers - mx1 and mx2. 2. For any service that has mailboxes, mx1 is configured as the primary. 3. For any service that does not contain mailboxes has mx2 defined as the primary. 4. Alias and Mailbox mappings are stored in a MySQL database. This approach has served well for the past 6 years, but the current infrastructure is becoming difficult to maintain and since we have standardised on Postfix elsewhere, it seems a logical choice to move this environment to Postfix as well. Both mx1 and mx2 have a consistent view of the database containing aliases. On Sendmail, the system considers the MX priority when making a decision of whether or not to try and process the alias or relay it to the better suited MX. On my current minimal Postfix configuration, I seem to be having trouble getting this working. I'd like to be able to do the following: 1. Postfix first to look at the MX priority - if this server is the primary, then handle the virtual aliases accordingly. 2. If the Postfix server is NOT the primary, then relay it to the most appropriate destination. 3. To prevent abuse of the permit_mx_backup, I'd like to consider the domains/aliases in the database with permit_mx_backup_networks to validate if this is a domain we should be relaying for. What seems to happen at the moment is: 1. Postfix looks at the virtual_alias_maps and attempts to handle the alias mapping rather than first looking at the MX priority. Would anyone happen to have a few pointers on how I might be able to achieve the above? Many thanks, Jonathan