1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00

Switch to smtp method for sending mail, to have all the dkim,spf things

The sendmail method didn't set all the correct headers for mail not to
go in spams.

Fixes #9
This commit is contained in:
Augustin Trancart 2024-03-09 14:09:57 +01:00
parent 803102f733
commit 5115ab1c39
2 changed files with 14 additions and 10 deletions

View file

@ -557,7 +557,7 @@ configuration: ## Section
## This selects which mailer should be used. Use 'smtp' for a smtp
## connection or 'sendmail' to use the sendmail binary.
method: 'sendmail'
method: 'smtp'
## Ignore if method isn't 'smtp'.
smtp: ## Section
@ -565,36 +565,39 @@ configuration: ## Section
## Host and port of the smtp server handling outgoing mail.
## This should match the common name of the certificate sent by
## the SMTP server, if it sends one. (default port=587)
#host: 'smtp.example.org'
#port: 587
# we use localhost because I don't know an easy way to determine the main domain of an ynh instance
# it forces us to disable certificate verification below though...
host: 'localhost'
port: 25
## Authentication required to send mail (default='plain').
## Use one of 'plain', 'login' or 'cram_md5'. Use 'none'
## if server does not support authentication.
#authentication: 'plain'
authentication: 'plain'
## Credentials to log in to the SMTP server.
## May be necessary if authentication is not 'none'.
#username: 'change_me'
#password: 'change_me'
username: '__APP__'
password: '__MAIL_PWD__'
## Automatically enable TLS (default=true).
## Leave this commented out if authentication is set to 'none'.
#starttls_auto: true
## The domain for the HELO command, if needed.
#domain: 'smtp.example.org'
domain: '__DOMAIN__'
## OpenSSL verify mode used when connecting to a SMTP server with TLS.
## Set this to 'none' if you have a self-signed certificate. Possible
## values: 'none', 'peer'.
#openssl_verify_mode: 'none'
# We use localhost because I don't
openssl_verify_mode: 'none'
## Ignore if method isn't 'sendmail'
sendmail: ## Section
# sendmail: ## Section
## The path to the sendmail binary (default='/usr/sbin/sendmail')
location: '/usr/sbin/sendmail'
# location: '/usr/sbin/sendmail'
## Use exim and sendmail (default=false)
#exim_fix: false

View file

@ -53,6 +53,7 @@ ram.runtime = "2000M"
autoupdate.strategy = "latest_github_release"
[resources.system_user]
allow_email = true
[resources.install_dir]