I have a new Linode / Ubuntu / Nextcloud server build. Used this guide from Jay the Linux Guy
I’ve been trying to get the Basic Setting / Email Server to work and I get the the following on screen error.
A problem occurred while sending the email. Please revise your settings. (Error: Connection could not be established with host .********.com :stream_socket_client(): unable to connect to ssl://.:465 (Connection timed out) Log data: ++ Starting Swift_SmtpTransport !! Connection could not be established with host ****..com :stream_socket_client(): unable to connect to ssl://****.********.com:465 (Connection timed out) (code: 0))
I’ve search the community but not found a way to fix.
It appears Nextcloud uses Swift Mailer by default. How can I determine if Swift Mailer is installed correctly for Nextcloud?
Is there a linux Swift Mailer command I can use to test connection to my email server.
Are there issues with Swift Mailer and Let’s Encrypt SSL certificate?
Is there a way for Nextcloud to use php-mail?
Thank You
Server configuration detail
Operating system: Linux 5.4.0-80-generic #90-Ubuntu SMP Fri Jul 9 22:49:44 UTC 2021 x86_64
Webserver: Apache/2.4.41 (Ubuntu) (apache2handler)
Database: mysql 10.3.30
PHP version: 7.4.3
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, json, exif, msgpack, mysqli, pdo_mysql, apc, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Phar, memcached, Zend OPcache
Nextcloud version: 22.0.0 - 22.0.0.11
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: unknown
Signing status
Array ( )
List of activated apps
Enabled:
- accessibility: 1.7.0
- activity: 2.15.0
- admin_audit: 1.11.0
- bruteforcesettings: 2.2.0
- calendar: 2.3.1
- circles: 22.0.0
- cloud_federation_api: 1.4.0
- comments: 1.11.0
- contacts: 4.0.1
- contactsinteraction: 1.2.0
- dashboard: 7.1.0
- dav: 1.18.0
- deck: 1.5.0
- documentserver_community: 0.1.11
- federatedfilesharing: 1.11.0
- federation: 1.11.0
- files: 1.16.0
- files_external: 1.12.1
- files_pdfviewer: 2.3.0
- files_rightclick: 1.1.0
- files_sharing: 1.13.2
- files_trashbin: 1.11.0
- files_versions: 1.14.0
- files_videoplayer: 1.11.0
- firstrunwizard: 2.11.0
- logreader: 2.7.0
- lookup_server_connector: 1.9.0
- mail: 1.10.2
- nextcloud_announcements: 1.11.0
- notes: 4.1.0
- notifications: 2.10.1
- oauth2: 1.9.0
- onlyoffice: 7.0.4
- password_policy: 1.12.0
- photos: 1.4.0
- privacy: 1.6.0
- provisioning_api: 1.11.0
- recommendations: 1.1.0
- serverinfo: 1.12.0
- settings: 1.3.0
- sharebymail: 1.11.0
- spreed: 12.0.1
- support: 1.5.0
- survey_client: 1.10.0
- systemtags: 1.11.0
- tasks: 0.14.0
- text: 3.3.0
- theming: 1.12.0
- twofactor_backupcodes: 1.10.1
- updatenotification: 1.11.0
- user_status: 1.1.1
- viewer: 1.6.0
- weather_status: 1.1.0
- workflowengine: 2.3.0
Disabled:
- encryption
- user_ldap
Configuration (config/config.php)
{
"debug": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"borghoff.online"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "22.0.0.11",
"overwrite.cli.url": "https:\/\/borghoff.online\/",
"htaccess.RewriteBase": "\/",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"memcache.local": "\\OC\\Memcache\\APCu",
"default_phone_region": "US",
"app.mail.transport": "php-mail",
"mail_smtptimeout": 30,
"mail_smtpmode": "smtp",
"mail_smtpdebug": true,
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"maintenance": false
}
External storages: yes
External storage configuration
+----------+-------------+-----------+---------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+------------------+-------------------+-------+
| Mount ID | Mount Point | Storage | Authentication Type | Configuration | Options | Applicable Users | Applicable Groups | Type |
+----------+-------------+-----------+---------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+------------------+-------------------+-------+
| 1 | /Archive | Amazon S3 | Access key | bucket: "borghoff-archive-bucket", hostname: "us-east-1.linodeobjects.com", port: "443", region: "us-east-1", use_ssl: true, use_path_style: false, legacy_auth: false, key: "M3803MAA3D9AX43DQHQI", secret: "I2pGGB07Oq6zHiU6aHZEUPvUKrw6RsqSCHkVttKn" | readonly: false | Jeff.Borghoff | | Admin |
+----------+-------------+-----------+---------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+------------------+-------------------+-------+
Encryption: no
User-backends:
- OC\User\Database
Talk configuration:
STUN servers
- no custom server configured
TURN servers
- no custom server configured
Signaling servers (mode: internal):
- no custom server configured
Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.115 Safari/537.36