HOWTO: Catch-all for Postfix in Kolab 3.2

This blog article is outdated. It was written for Kolab 3.2. Please don't use it.

Create the file /etc/postfix/ldap/virtual_alias_maps_catchall.cf

server_host = localhost
server_port = 389
version = 3
search_base = dc=example,dc=org
scope = sub
domain = ldap:/etc/postfix/ldap/mydestination.cf
bind_dn = uid=kolab-service,ou=Special Users,dc=example,dc=org
bind_pw = PASSWORD_FROM_kolab-service
query_filter = (&(alias=catchall@%d)(objectclass=kolabinetorgperson))
result_attribute = mail

Change dc=example,dc=org twice and the password in this file.

Then edit /etc/postfix/main.cf add

,   ldap:/etc/postfix/ldap/virtual_alias_maps_catchall.cf

at the end of virtual_alias_maps

In the kolab-webadmin page you can now add a new alias called catchall@domain.org

Comments !

social