Please help me! Nextcloud cannot send registration emails! !!

The test email and password recovery email can be sent normally, but the registration email cannot be sent. Why?

Nextcloud.log

reqId : "pFCSsj2EAuCxdPhO4a2w"
level : 3
time : "2021-04-26T14:13:02+00:00"
remoteAddr : "x.x.x.x"
user : "--"
app : "PHP"
method : "POST"
url : "/apps/registration/"
message
Exception : "Error"
Message : "fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:140D00CF:SSL routines:SSL_write:protocol is shutdown at /apps/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php#223"
Code : 0

config.php

  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.xxxx.com',
  'mail_smtpport' => '465',
  'mail_from_address' => 'xxxxxx',
  'mail_domain' => 'xxxxxx.com',
  'mail_smtpname' => 'xxxxxxxxxx@xxxx.com',
  'mail_smtppassword' => 'xxxxxxxxxxxxxxx',
  'mail_smtpsecure' => 'ssl',
  "mail_smtpdebug" => true,

Has anyone encountered a similar problem? :sob:

You can try to setup localhost as mailserver and tail -f /var/log/mail.log while sending the mail.

Hi Sanook,

I’ve the same problem as Vincent. And if I look at /var/log, there is no mail.log.
I’ve modify config.php add : ‘mail_smtpdebug’ => true

Can you help?
Thanks

What is the output of

netstat -anput | grep master