1
0
Fork 0

updated for latest kopano version

This commit is contained in:
ston1th 2020-01-18 16:24:09 +01:00
commit 197ecbb5b1
5 changed files with 27 additions and 30 deletions

View file

@ -1,8 +1,8 @@
# SMTP Authentication Sync
This is a small daemon to sync Zarafa/Kopano users and passwords to an authentication file which can be used by OpenSMTPD.
This is a small daemon to sync Kopano users and passwords to an authentication file which can be used by OpenSMTPD.
Any successful login or password change will be synced to this file.
Any successful webapp login will be synced to this file.
The passwords are stored as Bcrypt hashes generated by `smtpctl encrypt`.
## Install
@ -45,21 +45,19 @@ table secrets file:/etc/mail/secrets
listen on egress port 587 smtps pki mx.example.com auth <secrets>
```
## Zarafa/Kopano Password Change Plugin
## Kopano Authentication Class Patch
Plugin (version 1.3): https://github.com/silentsakky/zarafa-webapp-passwd
Apply this patch to send changed passwords to `smtp_auth_sync`:
Apply this patch to send passwords to `smtp_auth_sync` after a successful login:
Depending on your setup you may need to change `"/run/smtp_auth_sync.sock"` to the appropriate socket path inside your chroot.
```
# Default path on OpenBSD
cd /var/www/kopano-webapp/plugins/passwd/php
cd /var/www/kopano-webapp/server/includes/core
ftp -o class.passwdmodule.php.patch https://git.giftfish.de/ston1th/smtp_auth_sync/raw/branch/master/class.passwdmodule.php.patch
ftp -o class.webappauthentication.php.patch https://git.giftfish.de/ston1th/smtp_auth_sync/raw/branch/master/class.webappauthentication.php.patch
patch -p0 <class.passwdmodule.php.patch
patch -p0 <class.webappauthentication.php.patch
rm class.passwdmodule.php.orig class.passwdmodule.php.patch
rm class.webappauthentication.php.orig class.webappauthentication.php.patch
```