<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><span style="font-family: monospace;">Hi, </span><br style="font-family: monospace;"><br style="font-family: monospace;"><span style="font-family: monospace;">Since the bug ist still present in the latest release, I have written a </span><br style="font-family: monospace;"><span style="font-family: monospace;">replacement systemd unit for kopano server which fixes the problem. Not</span><div><font face="monospace">sure this will get included since the future maintenance of kopano seems</font></div><div><font face="monospace">questionable regarding to the latest statements here? Anyways, this may</font></div><div><font face="monospace">help out someone so I'll leave the systemd unit here for future reference.<br></font><div><span style="font-family: monospace;"><br></span></div><div><span style="font-family: monospace;">The </span><span style="font-family: monospace;">environment variables could be split out in a separate environment file </span><br style="font-family: monospace;"><span style="font-family: monospace;">("/etc/default/kopano-server" perhaps?) and included via "EnvironmentFile=" </span><br style="font-family: monospace;"><span style="font-family: monospace;">too I guess. </span><br style="font-family: monospace;"><br style="font-family: monospace;"><span style="font-family: monospace;">The "CAP_NET_BIND_SERVICE" is necessary because kopano-server binds port 236. </span><br style="font-family: monospace;"><br style="font-family: monospace;"><span style="font-family: monospace;">Unit file: </span><br style="font-family: monospace;"><span style="font-family: monospace;">/etc/systemd/system/kopano-server.service </span><br style="font-family: monospace;"><br style="font-family: monospace;"><span style="font-family: monospace;">############################################################################### </span><br style="font-family: monospace;"><span style="font-family: monospace;">[Unit] </span><br style="font-family: monospace;"><span style="font-family: monospace;">Description=Kopano Server </span><br style="font-family: monospace;"><span style="font-family: monospace;">Before=kopano-dagent.service kopano-gateway.service kopano-ical.service kopano-monitor.service kopano-search.service kopano-spamd.serv</span><br style="font-family: monospace;"><span style="font-family: monospace;">ice kopano-spooler.service </span><br style="font-family: monospace;"><span style="font-family: monospace;">After=network.target postfix.service </span><br style="font-family: monospace;"><br style="font-family: monospace;"><span style="font-family: monospace;">[Service] </span><br style="font-family: monospace;"><span style="font-family: monospace;">Type=forking </span><br style="font-family: monospace;"><span style="font-family: monospace;">AmbientCapabilities=CAP_NET_BIND_SERVICE </span><br style="font-family: monospace;"><span style="font-family: monospace;">Environment=SERVER_CONFIG="/etc/kopano/server.cfg" </span><br style="font-family: monospace;"><span style="font-family: monospace;">Environment=SERVER_OPTS="" </span><br style="font-family: monospace;"><span style="font-family: monospace;">Environment=KOPANO_USERSCRIPT_LOCALE="C" </span><br style="font-family: monospace;"><span style="font-family: monospace;">ExecStart=/usr/sbin/kopano-server -c ${SERVER_CONFIG} </span><br style="font-family: monospace;"><span style="font-family: monospace;">ExecReload=/bin/kill -s HUP $MAINPID </span><br style="font-family: monospace;"><span style="font-family: monospace;">ExecStop=/bin/kill -s TERM $MAINPID </span><br style="font-family: monospace;"><span style="font-family: monospace;">PIDFile=/run/kopano/server.pid </span><br style="font-family: monospace;"><span style="font-family: monospace;">TimeoutStopSec=60 </span><br style="font-family: monospace;"><span style="font-family: monospace;">Restart=always </span><br style="font-family: monospace;"><span style="font-family: monospace;">User=kopano </span><br style="font-family: monospace;"><span style="font-family: monospace;">Group=kopano </span><br style="font-family: monospace;"><span style="font-family: monospace;">RuntimeDirectory=kopano </span><br style="font-family: monospace;"><span style="font-family: monospace;">RuntimeDirectoryMode=2755 </span><br style="font-family: monospace;"><br style="font-family: monospace;"><span style="font-family: monospace;">PrivateTmp=yes </span><br style="font-family: monospace;"><span style="font-family: monospace;">PrivateDevices=yes </span><br style="font-family: monospace;"><span style="font-family: monospace;">ProtectHome=yes </span><br style="font-family: monospace;"><span style="font-family: monospace;">ReadOnlyDirectories=/ </span><br style="font-family: monospace;"><span style="font-family: monospace;">ReadWriteDirectories=-/var/lib/kopano </span><br style="font-family: monospace;"><span style="font-family: monospace;">ReadWriteDirectories=-/var/log/kopano </span><br style="font-family: monospace;"><span style="font-family: monospace;">ReadWriteDirectories=-/run/kopano </span><br style="font-family: monospace;"><span style="font-family: monospace;">NoNewPrivileges=true </span><br style="font-family: monospace;"><span style="font-family: monospace;">ProtectSystem=full </span><br style="font-family: monospace;"><br style="font-family: monospace;"><span style="font-family: monospace;">[Install] </span><br style="font-family: monospace;"><span style="font-family: monospace;">WantedBy=multi-user.target </span><br style="font-family: monospace;"><span style="font-family: monospace;">############################################################################### </span><br style="font-family: monospace;"><br style="font-family: monospace;"><span style="font-family: monospace;">fyi there is more broken stuff in the kopano packages; you can check this how-to </span><br style="font-family: monospace;"><span style="font-family: monospace;">for more fixes: </span><span style="font-family: monospace; color: rgb(255, 84, 255);">https://wiki.dest-unreachable.net/x/SgBEAg</span><span style="font-family: monospace;"> </span><br style="font-family: monospace;"><br style="font-family: monospace;"><span style="font-family: monospace;">greez, </span><br style="font-family: monospace;"><span style="font-family: monospace;">David</span></div></div></body></html>