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:
parent
803102f733
commit
5115ab1c39
2 changed files with 14 additions and 10 deletions
|
@ -557,7 +557,7 @@ configuration: ## Section
|
||||||
|
|
||||||
## This selects which mailer should be used. Use 'smtp' for a smtp
|
## This selects which mailer should be used. Use 'smtp' for a smtp
|
||||||
## connection or 'sendmail' to use the sendmail binary.
|
## connection or 'sendmail' to use the sendmail binary.
|
||||||
method: 'sendmail'
|
method: 'smtp'
|
||||||
|
|
||||||
## Ignore if method isn't 'smtp'.
|
## Ignore if method isn't 'smtp'.
|
||||||
smtp: ## Section
|
smtp: ## Section
|
||||||
|
@ -565,36 +565,39 @@ configuration: ## Section
|
||||||
## Host and port of the smtp server handling outgoing mail.
|
## Host and port of the smtp server handling outgoing mail.
|
||||||
## This should match the common name of the certificate sent by
|
## This should match the common name of the certificate sent by
|
||||||
## the SMTP server, if it sends one. (default port=587)
|
## the SMTP server, if it sends one. (default port=587)
|
||||||
#host: 'smtp.example.org'
|
# we use localhost because I don't know an easy way to determine the main domain of an ynh instance
|
||||||
#port: 587
|
# it forces us to disable certificate verification below though...
|
||||||
|
host: 'localhost'
|
||||||
|
port: 25
|
||||||
|
|
||||||
## Authentication required to send mail (default='plain').
|
## Authentication required to send mail (default='plain').
|
||||||
## Use one of 'plain', 'login' or 'cram_md5'. Use 'none'
|
## Use one of 'plain', 'login' or 'cram_md5'. Use 'none'
|
||||||
## if server does not support authentication.
|
## if server does not support authentication.
|
||||||
#authentication: 'plain'
|
authentication: 'plain'
|
||||||
|
|
||||||
## Credentials to log in to the SMTP server.
|
## Credentials to log in to the SMTP server.
|
||||||
## May be necessary if authentication is not 'none'.
|
## May be necessary if authentication is not 'none'.
|
||||||
#username: 'change_me'
|
username: '__APP__'
|
||||||
#password: 'change_me'
|
password: '__MAIL_PWD__'
|
||||||
|
|
||||||
## Automatically enable TLS (default=true).
|
## Automatically enable TLS (default=true).
|
||||||
## Leave this commented out if authentication is set to 'none'.
|
## Leave this commented out if authentication is set to 'none'.
|
||||||
#starttls_auto: true
|
#starttls_auto: true
|
||||||
|
|
||||||
## The domain for the HELO command, if needed.
|
## 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.
|
## OpenSSL verify mode used when connecting to a SMTP server with TLS.
|
||||||
## Set this to 'none' if you have a self-signed certificate. Possible
|
## Set this to 'none' if you have a self-signed certificate. Possible
|
||||||
## values: 'none', 'peer'.
|
## values: 'none', 'peer'.
|
||||||
#openssl_verify_mode: 'none'
|
# We use localhost because I don't
|
||||||
|
openssl_verify_mode: 'none'
|
||||||
|
|
||||||
## Ignore if method isn't 'sendmail'
|
## Ignore if method isn't 'sendmail'
|
||||||
sendmail: ## Section
|
# sendmail: ## Section
|
||||||
|
|
||||||
## The path to the sendmail binary (default='/usr/sbin/sendmail')
|
## The path to the sendmail binary (default='/usr/sbin/sendmail')
|
||||||
location: '/usr/sbin/sendmail'
|
# location: '/usr/sbin/sendmail'
|
||||||
|
|
||||||
## Use exim and sendmail (default=false)
|
## Use exim and sendmail (default=false)
|
||||||
#exim_fix: false
|
#exim_fix: false
|
||||||
|
|
|
@ -53,6 +53,7 @@ ram.runtime = "2000M"
|
||||||
autoupdate.strategy = "latest_github_release"
|
autoupdate.strategy = "latest_github_release"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
allow_email = true
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue