Sending mail to users or reset password via email is not working
Nextcloud version (eg, 18.0.2): 19.0.3
Operating system and version (eg, Ubuntu 20.04): Docker image: nextcloud:latest
The issue you are facing:
I can not use the email to reset password, to send share…
I get the following error:
An error came when sending an email. Check you parameters. (Error: Connection to tcp://ssl0.ovh.net:465 Timed Out Log data: ++ Starting Swift_SmtpTransport !! Connection to tcp://ssl0.ovh.net:465 Timed Out (code: 0))
I have tried every possible setting. Nothing work???
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
Set email parameter:
SMTP
Cypher: STARTTLS
Source address: noreply-nc @ nikolov.fr
authentication methode: login
Authentification required: checked
Server adress: ssl0.ovh.net : 465
identification information: xxxxx : password
Thanks for the help
vandman
The output of your Nextcloud log in Admin > Logging:
[webdav] Debug: Sabre\DAV\Exception\NotAuthenticated: Username or password was incorrect, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured at <<closure>>
0. /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\Auth\Plugin->beforeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
1. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 458
Sabre\DAV\Server->emit("beforeMethod:HEAD", [Sabre\HTTP\Requ ... }])
2. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 251
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
3. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 319
Sabre\DAV\Server->start()
4. /var/www/html/apps/dav/appinfo/v1/webdav.php line 82
Sabre\DAV\Server->exec()
5. /var/www/html/remote.php line 167
require_once("/var/www/html/a ... p")
HEAD /remote.php/webdav/InstantUpload/DCIM/%EC%95%99%EB%9C%A8%EC%99%84%EC%A7%90/20200814_162043.jpg
from 221.142.199.94 at 2020-09-21T21:52:58+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'trusted_proxies' =>
array (
0 => 'xxx.xxx.xxx.xxx',
1 => 'xxxx:xxxx:xxxx:xxxx:xxxx::xxxx',
),
'overwritehost' => 'xxxxxxx',
'overwriteprotocol' => 'https',
'overwritewebroot' => '/',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'redis',
'port' => '6379',
),
'mail_sendmailmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtpname' => 'xxxxxxxxx...',
'mail_smtppassword' => 'xxxxxxxxxxxxxx...',
'mail_smtphost' => 'ssl0.ovh.net',
'mail_smtpport' => '587',
'mail_smtpsecure' => 'tls',
'mail_from_address' => 'no-reply',
'mail_domain' => 'nc.nikolov.fr',
'mail_smtpdebug' => true,
'instanceid' => 'xxxxxxxxx',
'passwordsalt' => 'xxxxxxxxxxxxxxxxx...',
'secret' => 'xxxxxxxxxx...',
'trusted_domains' =>
array (
0 => 'nc.nikolov.fr',
1 => 'onlyoffice-documentserver-data',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '19.0.3.1',
'overwrite.cli.url' => 'https://xxxxxxxx',
'dbname' => 'xxxxxxxxx',
'dbhost' => 'xxxxxxxx',
'dbport' => '',
'dbtableprefix' => 'xxxx_',
'mysql.utf8mb4' => true,
'dbuser' => 'xxxxxx',
'dbpassword' => 'xxxxxxx',
'installed' => true,
'overwritecondaddr' => '^xxx\\.xxx\\.xxx\\.[1-254]$',
'onlyoffice' =>
array (
'DocumentServerUrl' => '/oo/',
'DocumentServerInternalUrl' => 'http://oo-document/',
'StorageUrl' => 'https://nc.nikolov.fr/',
),
'maintenance' => false,
'app_install_overwrite' =>
array (
0 => 'dicomviewer',
1 => 'ocr',
2 => 'radio',
3 => 'camerarawpreviews',
4 => 'joplin',
),
'theme' => '',
'loglevel' => 0,
'mail_smtpmode' => 'smtp',
);
The output of your Apache/nginx/system log in `/var/log
Log of traefik:
[21/Sep/2020:22:05:47 +0000] "POST /index.php/settings/admin/mailtest HTTP/2.0" 400 264 "-" "REDACTED" 93294 "nc-https@docker" "http://xxx.xxx.xxx.xxx:80" 10119ms