My SMTP server needs STARTTLS - from what I’ve read there used to be an option for this but on my install it’s gone!
Is there anything I can do?
Thanks!
My SMTP server needs STARTTLS - from what I’ve read there used to be an option for this but on my install it’s gone!
Is there anything I can do?
Thanks!
Try to set the encryption type to “none” in the WebUI, which should translate to "mail_smtpsecure" => '',
in the config.php
. With this, the connection will automatically be upgraded to STARTTLS if the SMTP server supports it.
See also here: Email — Nextcloud latest Administration Manual latest documentation
In older versions of NC this was necessary, but now STARTTLS is handled automatically. You didn’t specify what version you’re using, but if it’s gone from the user interface you’re almost certainly running a new enough version of NC that that is the case.
Many thanks for the replies however I’m banging my head against the wall with this. I’m trying to set it up to use my local Exchange server and it’s just not playing. Other devices/appliances can use it with either no creds (made up email addresses) or with a valid account and logins. Port 587, STARTTLS.
Any ideas?
Thanks!
Did you actually try Port 587 with Enrcyption set to “none”?
Yup - no joy.
Still getting nowhere - is there an easy way toi configure Sendmail with it, so I can drop using an external server?
Thanks.
I used this manual to get postfix (sendmail) working
with that you can use the following config in nextcloud
'mail_smtpmode' => 'sendmail',
'mail_smtpsecure' => 'ssl',
'mail_from_address' => 'SENDER',
'mail_domain' => 'YOUR.DOMAIN',
'mail_smtphost' => 'SMTP.YOUR.DOMAIN',
'mail_smtpport' => '465',
'mail_smtptimeout' => 10,
'mail_smtpauth' => 0,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpname' => '',
'mail_smtppassword' => '',
or
'mail_smtpmode' => 'sendmail',
'mail_smtpsecure' => 'tls',
'mail_from_address' => 'SENDER',
'mail_domain' => 'YOUR.DOMAIN',
'mail_smtphost' => 'SMTP.YOUR.DOMAIN',
'mail_smtpport' => '587',
'mail_smtptimeout' => 10,
'mail_smtpauth' => 0,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpname' => '',
'mail_smtppassword' => '',