Add davmail

This commit is contained in:
JuliusFreudenberger 2023-08-16 00:39:16 +02:00
parent 3d379ae5ef
commit 210cdc36b5
3 changed files with 48 additions and 0 deletions

16
davmail/README.md Normal file
View file

@ -0,0 +1,16 @@
# DavMail
POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange and Office 365 Gateway
## Important steps when deploying
DavMail needs a certificate in PKCS12 format to be able to handle TLS connections.
To convert certificate and key created by certbot, use these commands (source: https://felix.nlogn.org/projects/davmail/)
```bash
sudo openssl rsa -aes256 -in hostname.key -out key.encrypted -passout pass:password
sudo openssl pkcs12 -export -in hostname.crt -inkey key.encrypted -certfile hostname.crt -out davmail.p12 -passin pass:password --passout pass:password
```
Adapt paths when necessary.
The password also needs to be set in the environment variables `DAVMAIL_SSL_KEYSTOREPASS` and `DAVMAIL_SSL_KEYPASS`.