Re: Catchall and plus addressing
This won't work.
This is current Postfix setting used by iRedMail:
virtual_alias_maps =
proxy:ldap:/etc/postfix/ldap/virtual_alias_maps.cf,
proxy:ldap:/etc/postfix/ldap/virtual_group_maps.cf,
proxy:ldap:/etc/postfix/ldap/virtual_group_members_maps.cf,
proxy:ldap:/etc/postfix/ldap/catchall_maps.cf
*) Problem #1: Postfix queries with these files in specified order, so if you return catch-all account in first file (virtual_alias_maps.cf), it will never use virtual_group_maps.cf and virtual_group_members_maps.cf. That means we don't have mailing list support with your modification.
*) Problem #2: recipient address is unknown if it's not an existing recipient, it might be 'john@', 'smith@', it never get a returned catch-all address with your modification, because '%s' in LDAP query files is full email address. And if you use '%d' (domain name) in query file, we have the same issue with current iRedMail setting (not modified), because '%d' always match with our catch-all account LDAP object (full dn: mail=@domain.com,ou=Users,domainName=domain.com,o=domains,dc=xx,dc=xx), so it will always return a catch-all address if someone sends email to 'user+ext@domain.com'.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.