Kopano to grommunio HowTo: Unterschied zwischen den Versionen

Aus Neobikers Wiki
Zur Navigation springen Zur Suche springen
Zeile 26: Zeile 26:
screen ssh -L 12345:localhost:3306 root@ucsmail
screen ssh -L 12345:localhost:3306 root@ucsmail


# EXAMPLE for user neobiker = neobiker@neobiker.de
# ------------------------------------------------
# ENVIRONMENT variable is used for SQL password
# ENVIRONMENT variable is used for SQL password
# either EXPORT it or write in one line with cmd
# either EXPORT it or write in one line with cmd
SQLPASS=$(ssh ucsmail cat /etc/mysql.secret) gromox-kdb2mt --sql-host 127.0.0.1 --sql-portq 12345 --src-attach /mnt/kopano_attachments --mbox-user neobiker | gromox-mt2exm -u neobiker@neobiker.de
SQLPASS=$(ssh ucsmail cat /etc/mysql.secret) gromox-kdb2mt --sql-host 127.0.0.1 --sql-portq 12345 --src-attach /mnt/kopano_attachments --mbox-user neobiker | gromox-mt2exm -u neobiker@neobiker.de


# LOOP over all email users
# -------------------------
for user in $(kopano-admin -l | tail +4 | awk '{print $1}' | grep -v SYSTEM); do
for user in $(kopano-admin -l | tail +4 | awk '{print $1}' | grep -v SYSTEM); do
   email=$(kopano-admin --details $user | grep -iA2 Username: | awk '/Emailaddress:/ {print $2}')
   email=$(kopano-admin --details $user | grep -iA2 Username: | awk '/Emailaddress:/ {print $2}')
   SQLPASS=$(ssh ucsmail cat /etc/mysql.secret) gromox-kdb2mt --sql-host 127.0.0.1 --sql-portq 12345 --src-attach /mnt/kopano_attachments --mbox-user $user | gromox-mt2exm -u $email
   SQLPASS=$(ssh ucsmail cat /etc/mysql.secret) gromox-kdb2mt --sql-host 127.0.0.1 --sql-portq 12345 --src-attach /mnt/kopano_attachments --mbox-user $user | gromox-mt2exm -u $email
done
done
</pre>
</pre>

Version vom 2. Januar 2024, 16:56 Uhr

Eine fertige grommunio Appliance ist auf Basis von S.u.S.E. erstellt und steht u.a. als ISO download zur Verfügung. Da ich derzeit ausschliesslich Debian basierte Systeme verwende, bevorzuge ich eine grommunio Installation auf Debian 12 (bookworm).

Im grommunio Forum findet sich ein Diskussionsthread für die grommunio Installation auf Debian 12 durch ein Script. Diese läuft auf einer neu erstellten VM auf Proxmox Server fehlerfrei durch. In einem LXC Container gab es Probleme, u.a. klemmte der POP3 Service.

Im Anschluss an das Installationsskript habe ich noch folgendes Script unter Additions - Fix Grommunio Admin Live Status page ausgeführt, welches ebenfalls funktionierte und die entsprechende Seite im Web Interface reparierte.

Kopano Core ist bei mir als Applikation auf meinem UCS File- und Mailserver installiert. Die Benutzerkonten und deren Konfiguration werden von UCS verwaltet und stehen per LDAP zur Verfügung.

gromox

Groupware Konfiguration

Import der Emails

gromox-kdb2mt — Utility for analysis/import of Kopano mailboxes
gromox-mt2exm — Utility for importing various mail items

# ssh conections without prompts
ssh-copy-id ucsmail

# mount /var/lib/kopano/attachments per sshfs
apt install sshfs
mkdir -p /mnt/kopano_attachments
sshfs ucsmail:/var/lib/kopano/attachments /mnt/kopano_attachments

# detach the SSH tunnel to SQL server (who only accepts localhost conections)
screen ssh -L 12345:localhost:3306 root@ucsmail

# EXAMPLE for user neobiker = neobiker@neobiker.de
# ------------------------------------------------
# ENVIRONMENT variable is used for SQL password
# either EXPORT it or write in one line with cmd
SQLPASS=$(ssh ucsmail cat /etc/mysql.secret) gromox-kdb2mt --sql-host 127.0.0.1 --sql-portq 12345 --src-attach /mnt/kopano_attachments --mbox-user neobiker | gromox-mt2exm -u neobiker@neobiker.de

# LOOP over all email users
# -------------------------
for user in $(kopano-admin -l | tail +4 | awk '{print $1}' | grep -v SYSTEM); do
  email=$(kopano-admin --details $user | grep -iA2 Username: | awk '/Emailaddress:/ {print $2}')
  SQLPASS=$(ssh ucsmail cat /etc/mysql.secret) gromox-kdb2mt --sql-host 127.0.0.1 --sql-portq 12345 --src-attach /mnt/kopano_attachments --mbox-user $user | gromox-mt2exm -u $email
done

Postfix

Mail Delivery Agent (MDA) Konfiguration

  • zum versenden von Emails
  • Mailaddress rewritings


Fetchmail

Fetchmail Konfiguration zum abholen der Emails von meinem Email Provider.