Import users can't use Lost Password

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version 20.0.4:
Operating system and version (Ubuntu 18.04):
Apache or nginx version _ Apache 2.4.29_:
PHP version 7.2:

The issue you are facing:
Contacts created manualy can use "Forgot Password " => mail is sent …
Contacts imported from file .vcf are visible by admin but can’t use “Forgot Password” ! => client receive “mail sent” but server log says “could not find user”

Is this the first time you’ve seen this error? (Y):
new install

Steps to replicate it:

  1. import users
  2. one of these users use "Forgot Password "

The output of your Nextcloud log in Admin > Logging:

Could not send password reset email: Could not find user

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

$CONFIG = array (
  'instanceid' => 'oc7hm3ts4610',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'xxx',
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => 'xxx/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_from_address' => 'xxx',
  'mail_domain' => 'xxx',
  'mail_smtphost' => 'xxx',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',

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


Well, these are just contact in your address book, no? You have to create a user on the system and set a mail address for the reset…