better smtp setup, allow local sendmail, add secure flag, auth not required

This commit is contained in:
lesion
2022-06-23 13:07:46 +02:00
parent b436ff4772
commit 1862e0cb60
4 changed files with 65 additions and 26 deletions

View File

@@ -85,7 +85,8 @@ export default {
computed: {
...mapState(['settings']),
showSMTPAlert () {
return !this.setup && (!this.settings.admin_email || !this.settings.smtp || !this.settings.smtp.host || !this.settings.smtp.auth.user)
return !this.setup &&
(!this.settings.admin_email || !this.settings.smtp || (!this.settings.smtp.sendmail && !this.settings.smtp.host))
},
instance_locale: {
get () { return this.settings.instance_locale },