Nextcloud version (eg, 17.0) : 17.0
Operating system and version (eg, Ubuntu 17) : 11.2-STABLE FreeBSD 11.2-STABLE #0 r325575+5920981193f(HEAD): Mon Sep 16 23:00:13 UTC 2019
Apache or nginx version (eg, Apache 2.4.25) : Server version: Apache/2.4.41 (FreeBSD)
PHP version (eg, 7.1) : PHP 7.2.23 (cli) (built: Oct 1 2019 01:15:37) ( NTS )
So I upgraded to Nextcloud 17 (argh. hate upgrades), and now the mail settings don’t work – such as when trying to send test mail in Basic Settings ->Email server
Nothing shows up in the logs at all, but here is the error I get when I push button “Send email”
A problem occurred while sending the email. Please revise your settings. (Error: Address in mailbox given [kevdog@] does not comply with RFC 2822, 3.6.2.)
I’m using gmail as the smtp server and I have enabled 2 step authentication and I’m using app specific password. It doesnt matter what I put in the credentials box – I can put any name since the error posted above is always shown. I’ve included by config.php and you can see the options at the bottom of the file" Do I rebuild the database or something? It’s really screwy?
$ sudo cat config.php
Password:
<?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,
),
),
'logfile' => '/var/log/nextcloud/nextcloud.log',
'loglevel' => '0',
'logdateformat' => 'F d, Y H:i:s',
'memcache.local' => '\\OC\\Memcache\\APCu',
'instanceid' => 'ocny42d5quk3',
'passwordsalt' => 'salt',
'secret' => 'secret',
'trusted_domains' =>
array (
0 => '10.0.1.158',
1 => 'nextcloud.example.com',
2 => '10.0.1.162',
3 => 'office.example.com',
),
'datadirectory' => '/mnt/data',
'dbtype' => 'mysql',
'version' => '17.0.0.9',
'overwrite.cli.url' => 'http://10.0.1.158',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/tmp/mysql.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud_admin',
'dbpassword' => 'pass',
'installed' => true,
'redis' =>
array (
'host' => '/tmp/redis.sock',
'port' => 0,
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'maintenance' => false,
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'nextcloud-admin',
'mail_domain' => 'gmail.com',
'mail_smtphost' => 'smtp.gmail.com',
'mail_smtpport' => '465',
'mail_smtpauth' => 1,
'mail_smtpsecure' => 'ssl',
'mail_smtpname' => 'xxxx@gmail.com',
'mail_smtppassword' => 'pass',
'theme' => '',
'mail_smtpauthtype' => 'PLAIN',
);