Hello
Iām trying to configure the email server for my NCP, but I always get this error message when sending a test mail:
A problem occurred while sending the email. Please revise your settings. (Error: Connection could not be established with host smtpauths.bluewin.ch :stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small)
config:
<?php $CONFIG = array ( 'passwordsalt' => 'sensitive', 'secret' => 'sensitive', 'trusted_domains' => array ( 0 => 'localhost', 5 => 'nextcloudpi.local', 7 => 'nextcloudpi', 8 => 'nextcloudpi.lan', 11 => 'sensitive', 1 => 'sensitive', 20 => 'sensitive', 21 => 'sensitive', 12 => 'sensitive', ), 'datadirectory' => '/media/myCloudDrive/ncdata', 'dbtype' => 'mysql', 'version' => '18.0.1.3', 'overwrite.cli.url' => 'sensitive', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'ncadmin', 'dbpassword' => 'sensitive', 'installed' => true, 'instanceid' => 'sensitive', 'memcache.local' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => '/var/run/redis/redis.sock', 'port' => 0, 'timeout' => 0.0, 'password' => 'sensitive', ), 'tempdirectory' => '/media/myCloudDrive/ncdata/tmp', 'mail_smtpmode' => 'smtp', 'mail_from_address' => 'sensitive', 'mail_domain' => 'bluewin.ch', 'preview_max_x' => '2048', 'preview_max_y' => '2048', 'jpeg_quality' => '60', 'overwriteprotocol' => 'https', 'maintenance' => false, 'logfile' => '/media/myCloudDrive/ncdata/nextcloud.log', 'loglevel' => '2', 'log_type' => 'file', 'mail_sendmailmode' => 'smtp', 'mail_smtphost' => 'smtpauths.bluewin.ch', 'mail_smtpport' => '465', 'mail_smtpsecure' => 'ssl', 'mail_smtpauth' => 1, 'mail_smtpname' => 'sensitive@bluewin.ch', 'mail_smtppassword' => 'sensitive', 'mail_smtpauthtype' => 'LOGIN', 'theme' => '', 'data-fingerprint' => 'sensitive', 'htaccess.RewriteBase' => '/', 'updater.secret' => 'sensitive', );
Iāve tried using gmail (with IMAP enabled in settings) instead but there I get the following error:
A problem occurred while sending the email. Please revise your settings. (Error: Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Connection timed out))
Any suggestions how to solve this would be highly appreciated!
Thanks