Uninstall OX Mail and use UCS Postfix Mail

Hi
I have uninstalled OpenXchange, but want to use Univention-mail-postfix/dovecot as mailserver.

I was able to delete all Ox attributes and ox ObjectClasses on groups and users,
Here an example:

 ldapmodify -x -D cn=admin,$(ucr get ldap/base) -y /etc/ldap.secret <<__EOT__
 dn: uid=sven,cn=users,dc=anders,dc=hamburg
 changetype: modify
 delete: objectClass
 objectClass: oxUserObject
 -
 delete: oxDrive
 -
 delete: oxTimeZone
 -
 delete: oxDisplayName
 -
 delete: oxAccess
 -
 delete: oxLanguage
 -
 delete: isOxUser
 -
 delete: oxUserQuota
 __EOT__

and deleted the follwoing objects:

ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=50_ox,cn=udm_syntax,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=context10,cn=open-xchange,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=open-xchange,cn=config-registry,cn=policies,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=open-xchange,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxAccess,cn=udm_hook,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxContextRW,cn=udm_hook,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxGroupHook,cn=udm_hook,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxmail/oxcontext,cn=udm_module,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxmail/oxdomain,cn=udm_module,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxmail/oxfetchmailmulti,cn=udm_module,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxmail/oxfetchmailsingle,cn=udm_module,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxmail/oxfolder,cn=udm_module,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxmail/oxlists,cn=udm_module,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxmail/oxmail,cn=udm_module,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxresources,cn=open-xchange,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxresources/oxresources,cn=udm_module,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxseforucs,cn=apps,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=oxUserDefaults,cn=udm_hook,cn=univention,dc=anders,dc=hamburg 
ldapdelete  -D cn=admin,dc=anders,dc=hamburg -y /etc/ldap.secret cn=udm-oxmail,cn=operations,cn=UMC,cn=univention,dc=anders,dc=hamburg 

I am unsure about how the /etc/postfix/ldap.* files are configured.
I thing I have got it, but I am not sure.

It would be very helpfull, if someone with a working mailserver could post the output of

ucr dump |grep /etc/postfix

(otherwise I have to install a test ucs only for this)

And I am unsure if I should delete the ldap schema and acl also:

dn: cn=oxforucs,cn=ldapschema,cn=univention,dc=anders,dc=hamburg
dn: cn=66oxforucs,cn=ldapacl,cn=univention,dc=anders,dc=hamburg
dn: cn=oxforucs-extra,cn=ldapschema,cn=univention,dc=anders,dc=hamburg

Okay, I started a virtual machine with mailserver, here is the output of ucr

ucr dump |grep postfix
mail/postfix/activate_ldap_attribute_mailForwardCopyToSelf_in_virtual_alias_maps: yes
mail/postfix/activate_unionmap_in_virtual_alias_maps: yes
mail/postfix/dovecot_sasl: yes
mail/postfix/inet/interfaces: all
mail/postfix/ldap/timeout: 15
mail/postfix/ldaptable/debuglevel: 0
mail/postfix/ldaptable/starttls: yes
mail/postfix/ldaptable/tlscacertfile: /etc/univention/ssl/ucsCA/CAcert.pem
mail/postfix/ldaptable/tlsrequirecert: yes
mail/postfix/masquerade/domains: $mydomain
mail/postfix/masquerade/exceptions: root
mail/postfix/mastercf/options/smtps/smtpd_sasl_auth_enable: yes
mail/postfix/mastercf/options/smtps/smtpd_tls_wrappermode: yes
mail/postfix/mastercf/options/submission/smtpd_enforce_tls: yes
mail/postfix/mastercf/options/submission/smtpd_sasl_auth_enable: yes
mail/postfix/policy/listfilter/use_sasl_username: yes
mail/postfix/policy/listfilter: no
mail/postfix/smtp/tls/loglevel: 0
mail/postfix/smtpd/restrictions/recipient/10: permit_mynetworks
mail/postfix/smtpd/restrictions/recipient/30: permit_sasl_authenticated
mail/postfix/smtpd/restrictions/recipient/50: reject_unauth_destination
mail/postfix/smtpd/restrictions/recipient/70: reject_unlisted_recipient
mail/postfix/smtpd/restrictions/recipient/80: check_policy_service inet:127.0.0.1:12340
mail/postfix/smtpd/tls/dh1024/param/file: /etc/postfix/dh_2048.pem
mail/postfix/smtpd/tls/dh512/param/file: /etc/postfix/dh_512.pem
mail/postfix/smtpd/tls/eecdh/grade: strong
mail/postfix/smtpd/tls/exclude_ciphers: RC4, aNULL
mail/postfix/smtpd/tls/loglevel: 0
mail/postfix/smtpd/tls/mandatory_protocols: !SSLv2,!SSLv3
mail/postfix/tls/client/exclude_ciphers: RC4, aNULL
mail/postfix/tls/client/mandatory_protocols: !SSLv2,!SSLv3
mail/postfix/tls/client/policy/amavis: [127.0.0.1]:10024 none
mail/postfix/tls/client/protocols: !SSLv2,!SSLv3
mail/postfix/tls/preempt/cipherlist: yes
mail/postfix/transport/ldap/enabled: yes
mail/postfix/virtual/enabled: yes
mail/postfix/virtual/transport: lmtp:unix:private/dovecot-lmtp
postfix/autostart: yes
security/packetfilter/package/univention-mail-postfix/tcp/25/all/en: SMTP
security/packetfilter/package/univention-mail-postfix/tcp/25/all: ACCEPT
security/packetfilter/package/univention-mail-postfix/tcp/465/all/en: SSMTP
security/packetfilter/package/univention-mail-postfix/tcp/465/all: ACCEPT
security/packetfilter/package/univention-mail-postfix/tcp/587/all/en: SMTP/submission
security/packetfilter/package/univention-mail-postfix/tcp/587/all: ACCEPT

If you unset mail/postfix/virtual/alias/maps it is the same as when you use:

ucr set "mail/postfix/virtual/alias/maps=unionmap:{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, ldap:/etc/postfix/ldap.virtual_mailbox, ldap:/etc/postfix/ldap.sharedfolderlocal}"

(in my case, i have to modify one entry).

Mastodon