Uhh, that was either fast or simpler as i thought now :-)
#zfs create rpool/var/lib/gromox
cd /usr/local/share/
git clone --branch=create_extended_setup_script https://github.com/eryx12o45/grommunio-setup.git
ln -s /usr/local/share/grommunio-setup/setup.sh /usr/local/sbin/grommunio-setup
grommunio-setup
*whistle*


#Aktiviere alle grommunio/gromox-Dienste
find /lib/systemd/system -iname '*grom*' -exec systemctl enable --now {} \;
# Lizenz-Import via Admin-GUI
chown grommunio /etc/grommunio-admin-common/license
# https://community.grommunio.com/d/447-debian-11-clean-install-script/37
echo -n "/run/mysqld\t/var/spool/postfix/run/mysqld\tbind\tdefaults,bind\t0\t0\n" |tee -a /etc/fstab
reboot
systemctl enable --now redis@grommunio.service
#SQLITE3 needed for grommunio-spam-run as i recall
apt-get install --yes sqlite3
#GROMMUNIO-INDEX
mkdir /root/rpmconv
cd /root/rpmconv
apt-get install --yes alien
wget https://download.grommunio.com/community/openSUSE_Leap_15.3/grommunio-index-0.1.11.8787c3c-lp153.17.1.x86_64.rpm
alien grommunio-index-0.1.11.8787c3c-lp153.17.1.x86_64.rpm
dpkg -i grommunio-index_0.1.11.8787c3c-1_amd64.deb
systemctl enable --now grommunio-index.service
systemctl enable --now grommunio-index.timer
grommunio-index-run.sh
After those commands and a few of my own stuff like those...
OCSP für ACME-CERT
https://github.com/crpb/grommunio/blob/main/setup/nginx-ocsp.sh
RELAYHOST-Krempel
https://github.com/crpb/grommunio/tree/main/setup/postfix
with hash:/etc/postfix/sasl_passwd instead of lmdb...
[x] Domain Added
[x] License installed
[x] LDAP-Configured
[x] LDAP-Downsync worked
[x] Postfix Basic-Relay configured...
[x] Mails to external Recipient WEBMAIL
[x] Mails between local Mailboxes WEBMAIL
[x] Mailbox-Full-Permissions WEBMAIL
[x] Send-As-Permissions WEBMAIL
System-Mails
apt-get install postix-pcre
postconf smtp_generic_maps=pcre:/etc/postfix/generic
printf "/root(.*)/\tgromi@%s\n" "$(grommunio-admin domain query --filter ID=1 domainname)" >> /etc/postfix/generic
printf "root:\tSERVERMAILS@SERVERMAILS.TLD\n" >> /etc/aliases
postalias /etc/aliases
postfix reload
usermod --comment "$(dnsdomainname |cut -d. -f1 |tr 'a-z' 'A-z')-GROMI-ROOT" root