add sendmail support

This commit is contained in:
nd 2020-07-10 13:50:00 +02:00
parent 7c06a367b4
commit 8d57c52637
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 5 additions and 4 deletions

View file

@ -6,6 +6,7 @@ nextcloud:
datadir: /var/www/nextcloud/data
externalurl: example.com
mail:
mode: sendmail
from: www-data
domain: localhost
server: ~

View file

@ -39,12 +39,12 @@
with_items:
- { key: "mail_from_address", value: "{{ nextcloud.mail.from }}" }
- { key: "mail_domain", value: "{{ nextcloud.mail.domain }}" }
- { key: "mail_smtpmode", value: "smtp" }
- { key: "mail_smtpmode", value: "{{ nextcloud.mail.mode }}" }
- { key: "mail_smtpauthtype", value: "PLAIN" }
- { key: "mail_smtphost", value: "{{ nextcloud.mail.server }}" }
- { key: "mail_smtphost", value: "{{ nextcloud.mail.server|d('') }}" }
- { key: "mail_smtpport", value: "25" }
- { key: "mail_smtppassword", value: "{{ nextcloud.mail.password }}" }
- { key: "mail_smtpname", value: "{{ nextcloud.mail.user }}" }
- { key: "mail_smtppassword", value: "{{ nextcloud.mail.password|d('') }}" }
- { key: "mail_smtpname", value: "{{ nextcloud.mail.user|d('') }}" }
- { key: "memcache.local", value: '{{ "\OC\Memcache\APCu" }}' }
- { key: "datadirectory", value: "{{ nextcloud.datadir }}" }