Problem recovering lost passwords from public gateway

small issue that screws with my head

When logging on using my public ip i.e https://xxx.xxx.xxx.xxx:port and I want to recover a lost password, no email is sent through to the user.
Doing the same via my local ip works perfectly

Sending a test email as admin from the public gateway works as well

What is going on with that???

User have valid email registered and nothing ends up in a spam folder *dont think the email is being sent at all
Checked the nc logs and nothing indicating any errors or issues

suggestions…?

Sort of become an important feature for users to recover/reset lost passwords using the public gateway

Steps to replicate it:

  1. login to public gateway using https://xxx.xxx.xxx.xxx:port
  2. enter userid or email
  3. click recover password

The output of your Nextcloud log in Admin > Logging:

{"reqId":"GIpUH1sxSfXLAPUPgUu6","level":2,"time":"2019-03-30T09:41:30+00:00","remoteAddr":"137.59.252.200","user":"--","app":"core","method":"POST","url":"\/index.php\/login","message":"Login failed: 'helene' (Remote IP: '137.59.252.200')","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0","version":"15.0.5.3"}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
    1 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps-pkg',
      'url' => '/apps-pkg',
      'writable' => false,
    ),
  ),
//  'integrity.check.disabled' => true,
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'instanceid' => '<omitted>',
  'passwordsalt' => '<omitted>',
  'secret' => '<omitted>',
  'trusted_domains' => 
  array (
    0 => '192.168.2.160',
    1 => 'xxx.xx.xxx.xxx:8080', //<omitted>
  ),
  'datadirectory' => '/mnt/data',
  'dbtype' => 'mysql',
  'version' => '15.0.5.3',
  'overwrite.cli.url' => 'http://192.168.2.160',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/tmp/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud_admin',
  'dbpassword' => '<omitted>',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloudAdmin',
  'mail_domain' => 'iinet.net.au',
  'mail_smtphost' => 'mail.iinet.net.au',
  'mail_smtpport' => '465',
  'redis' => 
  array (
    'host' => '/tmp/redis.sock',
    'port' => 0,
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
);

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Not running nginx - actually freenas
Picked up this from the httpd-error.log though that might help
The cert used is a self signed one

[Sat Mar 30 17:38:08.713504 2019] [ssl:warn] [pid 37126] AH01909: 192.168.2.160:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 30 17:38:08.713944 2019] [ssl:error] [pid 37126] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: emailAddress=<omitted@domain.net.au>,CN=freenas,OU=homecloud,O=spap,L=Mandurah,ST=Western Australia,C=AU / issuer: emailAddress=<omitted@domain.net.au>,CN=freenas,OU=homecloud,O=spap,L=Mandurah,ST=Western Australia,C=AU / serial: BBE4ACD36BF6AD67 / notbefore: Mar 30 03:50:41 2019 GMT / notafter: Mar 28 03:50:41 2024 GMT]
[Sat Mar 30 17:38:08.713976 2019] [ssl:error] [pid 37126] AH02604: Unable to configure certificate 192.168.2.160:443:0 for stapling
[Sat Mar 30 17:38:08.733794 2019] [ssl:warn] [pid 37127] AH01909: 192.168.2.160:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 30 17:38:08.733994 2019] [ssl:error] [pid 37127] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: emailAddress=<omitted@domain.net.au>,CN=freenas,OU=homecloud,O=spap,L=Mandurah,ST=Western Australia,C=AU / issuer: emailAddress=<omitted@domain.net.au>,CN=freenas,OU=homecloud,O=spap,L=Mandurah,ST=Western Australia,C=AU / serial: BBE4ACD36BF6AD67 / notbefore: Mar 30 03:50:41 2019 GMT / notafter: Mar 28 03:50:41 2024 GMT]
[Sat Mar 30 17:38:08.734043 2019] [ssl:error] [pid 37127] AH02604: Unable to configure certificate 192.168.2.160:443:0 for stapling
[Sat Mar 30 17:38:08.736395 2019] [mpm_prefork:notice] [pid 37127] AH00163: Apache/2.4.38 (FreeBSD) OpenSSL/1.0.2o-freebsd configured -- resuming normal operations
[Sat Mar 30 17:38:08.736525 2019] [core:notice] [pid 37127] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'