Univention Bugzilla – Bug 45083
Wrong query filter in /etc/postfix/ldap.virtual
Last modified: 2017-07-31 13:12:35 CEST
In /etc/postfix/ldap.virtual the query filter has changed from (&(objectClass=univentionMail)(|(mailAlternativeAddress=%s)(mailPrimaryAddress=%s))(!(univentionCanonicalRecipientRewriteEnabled=1))) to (&(objectClass=univentionMail)(mailAlternativeAddress=%s)(!(univentionCanonicalRecipientRewriteEnabled=1))) => The search in mailPrimaryAddress is missing Result: Users with only the primary address set couldn't receive mails any more; postfix rejected them with an "Recipient address rejected: User unknown in virtual mailbox table" error The root - of course - would be the template file /etc/univention/templates/files/etc/postfix/ldap.virtual.d/10_base
The virtual tables have been split into those for mailboxes and those for aliases. Aliases are now searched in /etc/postfix/ldap.virtual and mailboxes in /etc/postfix/ldap.virtual_mailbox. The list of maps considered for aliases is managed through the UCR variable mail/postfix/virtual/alias/maps and the list of tables to look in for mailboxes is in mail/postfix/virtual/mailbox/maps. If those UCR variables have been changed on your system, it's possible the required map isn't included. The defaults are: default_virtual_alias_maps = 'hash:/etc/postfix/virtual, ldap:/etc/postfix/ldap.groups, ldap:/etc/postfix/ldap.distlist, ldap:/etc/postfix/ldap.virtual, ldap:/etc/postfix/ldap.external_aliases, ldap:/etc/postfix/ldap.sharedfolderremote, ldap:/etc/postfix/ldap.sharedfolderlocal_aliases' default_virtual_mailbox_maps = 'ldap:/etc/postfix/ldap.virtual_mailbox, ldap:/etc/postfix/ldap.sharedfolderlocal' For systems with the OX app, the UCRVs are different: mail/postfix/virtual/mailbox/maps="ldap:/etc/postfix/ldap.ox-sharedfolder_mailbox, ldap:/etc/postfix/ldap.ox-virtual_mailbox" \ mail/postfix/virtual/alias/maps="hash:/etc/postfix/virtual, ldap:/etc/postfix/ldap.groups, ldap:/etc/postfix/ldap.ox-distlist, ldap:/etc/postfix/ldap.ox-sharedfolder, ldap:/etc/postfix/ldap.ox-virtual, ldap:/etc/postfix/ldap.external_aliases" Please check that mail/postfix/virtual/mailbox/maps on your system contains ldap:/etc/postfix/ldap.virtual_mailbox.
Thx for the explanation what pushed me to the root cause of my problem... For some reason during the update the template file "/etc/univention/templates/files/etc/postfix/main.cf.d/30_maps" didn't get updated, the new one was named "30_maps.dpkg-dist". As I never changed anything in the original template I'm wondering why the update thought it wasn't the original one and so didn't overwrite it.... anyway... I renamed the new file and did a "ucr commit /etc/postfix"... now the main.cf looks as u described and postfix behaves as it should.
That's good news. Thanks for reporting.