External mail addresses are being cached

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com 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 (eg, 12.0.2): 17.0.1
Operating system and version (eg, Ubuntu 17.04): 18.04 LTS
Apache or nginx version (eg, Apache 2.4.25): latest
PHP version (eg, 7.1): 7.2

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): No

Steps to replicate it:

  1. When I try to share a Folder with an “external” mail addresses it will be populated to other in the nextcloud.
  2. I don’t wnt to have nextcloud autocompletimg the mail adresse of external
  3. How can I block this

The output of your Nextcloud log in Admin > Logging:


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

$CONFIG = array (
  'passwordsalt' => 'greatpassword',
  'secret' => 'somesecret',
  'trusted_domains' =>
  array (
    1 => 'nextcloud',
    2 => 'nextcloud.somedomain.com',
  'datadirectory' => '/opt/data',
  'tempdirectory' => '/opt/data/upload-temp',
  'dbtype' => 'pgsql',
  'version' => '',
  'overwrite.cli.url' => 'https://nextcloud.somedomain.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:9999',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'ncdb',
  'dbpassword' => 'somesecret',
  'installed' => true,
  'instanceid' => 'fkhwklfhwlkf',
  'maintenance' => false,
  'default_language' => 'de',
  'default_locale' => 'de_DE',
  'session_lifetime' => 900,
  'remember_login_cookie_lifetime' => 0,
  'session_keepalive' => false,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'somemail',
  'mail_domain' => 'somedomain.com',
  'mail_smtpdebug' => true,
  'enable_previews' => false,
  'overwriteprotocol' => 'https',
  'trashbin_retention_obligation' => '7, 8',
  'loglevel' => 0,
  'logdateformat' => 'F d, Y H:i:s',
  'logfilemode' => 416,
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'mail_smtphost' => 'somedomain.somedomain.com',
  'mail_smtpport' => 'someport',

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