Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: NEXTCLOUD 26 Email Setup no Test successfully #37329

Closed
6 of 9 tasks
Tracked by #1846 ...
apg1980 opened this issue Mar 21, 2023 · 69 comments · Fixed by #37340
Closed
6 of 9 tasks
Tracked by #1846 ...

[Bug]: NEXTCLOUD 26 Email Setup no Test successfully #37329

apg1980 opened this issue Mar 21, 2023 · 69 comments · Fixed by #37340
Assignees
Labels
4. to release Ready to be released and/or waiting for tests to finish 26-feedback bug pending documentation This pull request needs an associated documentation update

Comments

@apg1980
Copy link

apg1980 commented Mar 21, 2023

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

After updating to NC26 from NC25 the Email Test ist not working anymore as before.
Beim Senden der E-Mail ist ein Problem aufgetreten. Bitte überprüfe deine Einstellungen. (Fehler: E-Mail konnte nicht versandt werden. Prüfe dein E-Mail-Server-Protokoll)
It worked since years with the same setup.
Debug Log for smtp is enabled but no output.

Steps to reproduce

Goto Grundeinstellungen Send Test Mail

Expected behavior

success

Installation method

Other Community project

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "10.10.20.49",
            "cloud.grunet.de",
            "signaling.grunet.de"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "tempdirectory": "\/NEXTCLOUD-DATA\/data\/tmp",
        "dbtype": "mysql",
        "version": "26.0.0.11",
        "overwrite.cli.url": "https:\/\/cloud.grunet.de",
        "overwriteprotocol": "https",
        "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,
        "filelocking.enabled": true,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "dbindex": 0
        },
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtpdebug": true,
        "auth.bruteforce.protection.enabled": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "allow_local_remote_servers": true,
        "simpleSignUpLink.shown": false,
        "skeletondirectory": "",
        "auth.webauthn.enabled": false,
        "auto_logout": false,
        "session_keepalive": true,
        "session_lifetime": 86400,
        "remember_login_cookie_lifetime": 1296000,
        "login_form_autocomplete": true,
        "default_language": "de",
        "default_locale": "de_DE",
        "quota_include_external_storage": false,
        "logtimezone": "Europe\/Berlin",
        "loglevel": 2,
        "log_rotate_size": 26214400,
        "filesystem_check_changes": 1,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "appstore.experimental.enabled": false,
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\TXT",
            "OC\\Preview\\PDF",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\Image",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\SVG",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\BMP",
            "OC\\Preview\\GIF",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\HEIF"
        ],
        "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
        "preview_max_x": "1080",
        "preview_max_y": "1920",
        "preview_max_scale_factor": 1,
        "preview_max_memory": 512,
        "activity_expire_days": 90,
        "jpeg_quality": "60",
        "defaultapp": "files",
        "updater.release.channel": "stable",
        "maintenance": false,
        "data-fingerprint": "a5a9ea759f55ea52cd84a318a8071c2e",
        "app.mail.verify-tls-peer": false,
        "app.mail.imap.timeout": 30,
        "app.mail.smtp.timeout": 30,
        "theme": "",
        "knowledgebaseenabled": false,
        "default_phone_region": "DE",
        "ncd_admin_settings": {
            "disallow_aria2_settings": "1"
        },
        "app_install_overwrite": [
            "news",
            "richdocumentscode",
            "fulltextsearch",
            "files_fulltextsearch",
            "fulltextsearch_elasticsearch",
            "passwords",
            "files_fulltextsearch_tesseract",
            "memories"
        ],
        "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/lib\/..\/exiftool-bin\/exiftool-amd64-glibc",
        "blacklisted_files": [
            ".htaccess",
            "Thumbs.db",
            "thumbs.db"
        ],
        "memories.gis_type": 1,
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/exiftool-bin\/go-vod-amd64",
        "memories.vod.disable": false
    }
}

List of activated Apps

Enabled:
  - activity: 2.18.0
  - admin_audit: 1.16.0
  - calendar: 4.3.0
  - circles: 26.0.0
  - cloud_federation_api: 1.9.0
  - collectives: 2.3.0
  - comments: 1.16.0
  - contacts: 5.2.0
  - contactsinteraction: 1.7.0
  - dav: 1.25.0
  - deck: 1.9.0
  - federatedfilesharing: 1.16.0
  - federation: 1.16.0
  - files: 1.21.1
  - files_automatedtagging: 1.16.0
  - files_external: 1.18.0
  - files_fulltextsearch: 25.0.0
  - files_pdfviewer: 2.7.0
  - files_rightclick: 1.5.0
  - files_sharing: 1.18.0
  - files_trashbin: 1.16.0
  - files_versions: 1.19.1
  - fulltextsearch: 25.0.0
  - fulltextsearch_elasticsearch: 25.0.0
  - groupfolders: 14.0.0
  - integration_openai: 1.0.2
  - integration_youtube: 0.1.3
  - logreader: 2.11.0
  - lookup_server_connector: 1.14.0
  - maps: 1.0.0
  - memories: 4.12.3
  - news: 21.1.0
  - nextcloud_announcements: 1.15.0
  - notes: 4.7.0
  - notifications: 2.14.0
  - notify_push: 0.6.0
  - oauth2: 1.14.0
  - password_policy: 1.16.0
  - passwords: 2023.3.21
  - previewgenerator: 5.2.1
  - provisioning_api: 1.16.0
  - recognize: 3.7.0
  - related_resources: 1.1.0-alpha1
  - richdocuments: 8.0.0
  - richdocumentscode: 22.5.802
  - serverinfo: 1.16.0
  - settings: 1.8.0
  - sharebymail: 1.16.0
  - snappymail: 2.27.1
  - spreed: 16.0.0
  - systemtags: 1.16.0
  - text: 3.7.2
  - theming: 2.1.1
  - twofactor_backupcodes: 1.15.0
  - updatenotification: 1.16.0
  - user_status: 1.6.0
  - viewer: 1.10.0
  - weather_status: 1.6.0
  - workflowengine: 2.8.0
Disabled:
  - bruteforcesettings: 2.6.0
  - dashboard: 7.6.0 (installed 7.5.0)
  - encryption: 2.14.0 (installed 2.7.0)
  - firstrunwizard: 2.15.0 (installed 2.13.0)
  - metadata: 0.17.0 (installed 0.17.0)
  - ncdownloader: 1.0.2 (installed 1.0.2)
  - photos: 2.2.0 (installed 2.0.1)
  - privacy: 1.10.0 (installed 1.2.0)
  - quota_warning: 1.15.0 (installed 1.15.0)
  - recommendations: 1.5.0 (installed 1.4.0)
  - support: 1.9.0 (installed 1.0.0)
  - survey_client: 1.14.0 (installed 1.4.0)
  - suspicious_login: 4.4.0 (installed 3.1.0)
  - twofactor_totp: 8.0.0-alpha.0 (installed 5.0.0)
  - user_ldap: 1.16.0 (installed 1.15.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

`<html><body>
<!--StartFragment-->

  | Undefined array key "mail_smtpauthtype" at /var/www/nextcloud/apps/settings/templates/settings/admin/additional-mail.php#132
-- | --


<!--EndFragment-->
</body>
</html>`

Additional info

'mail_from_address' => 'noreply', 'mail_smtpmode' => 'smtp', 'mail_sendmailmode' => 'smtp', 'mail_domain' => 'domain.de', 'mail_smtphost' => 'IP', 'mail_smtpport' => '25', 'mail_smtpdebug' => true,

@apg1980 apg1980 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Mar 21, 2023
@szaimen
Copy link
Contributor

szaimen commented Mar 21, 2023

Cc @miaulalala @come-nc

@apg1980
Copy link
Author

apg1980 commented Mar 22, 2023

hello, is here any workarround to be able sending mails again?

@miaulalala
Copy link
Contributor

Are you using authentication, i. e. is this tickbox checked for you?

image

@apg1980
Copy link
Author

apg1980 commented Mar 22, 2023

no i do not need it, it has neven been checked.

@apg1980
Copy link
Author

apg1980 commented Mar 22, 2023

grafik

@apg1980
Copy link
Author

apg1980 commented Mar 22, 2023

btw the dropbox on authmethod is not working.

@miaulalala
Copy link
Contributor

I can reproduce

@miaulalala
Copy link
Contributor

btw the dropbox on authmethod is not working.

can you elaborate?

@chrissi55
Copy link

chrissi55 commented Mar 22, 2023

I can confirm that the error log message

Undefined array key "mail_smtpauthtype" at /var/www/nextcloud/apps/settings/templates/settings/admin/additional-mail.php#132

also occur when using sendmail as smtpmode!

Having this config:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/email_configuration.html

my config from that is:

'mail_smtpmode' => 'sendmail',
  'mail_smtpsecure' => 'ssl',
  'mail_from_address' => 'SENDER-ADDRESS',
  'mail_domain' => 'MY.DOMAIN',
  'mail_smtphost' => 'SMTP.MY.DOMAIN',
  'mail_smtpport' => '465',
  'mail_smtptimeout'  => 10,
  'mail_smtpauth'     => false,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpname'     => '',
  'mail_smtppassword' => '',

Sending Testmails is working but the error is logged. Also logged at startup of NC Server as well.

First time i saw this error was today after updating NC from 25.0.4 to 26.0.0

@miaulalala

This comment was marked as outdated.

@apg1980
Copy link
Author

apg1980 commented Mar 22, 2023

didnt work after setting your recommendation
same error as before

@miaulalala
Copy link
Contributor

didnt work after setting your recommendation same error as before

Sorry, wrong config param. There's an isset check missing in the template. I've pushed a fix, but let me test some more.

@miaulalala
Copy link
Contributor

I can confirm that the error log message

Undefined array key "mail_smtpauthtype" at /var/www/nextcloud/apps/settings/templates/settings/admin/additional-mail.php#132

also occur when using sendmail as smtpmode!

Having this config: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/email_configuration.html

my config from that is:

'mail_smtpmode' => 'sendmail',
  'mail_smtpsecure' => 'ssl',
  'mail_from_address' => 'SENDER-ADDRESS',
  'mail_domain' => 'MY.DOMAIN',
  'mail_smtphost' => 'SMTP.MY.DOMAIN',
  'mail_smtpport' => '465',
  'mail_smtptimeout'  => 10,
  'mail_smtpauth'     => false,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpname'     => '',
  'mail_smtppassword' => '',

Sending Testmails is working but the error is logged. Also logged at startup of NC Server as well.

First time i saw this error was today after updating NC from 25.0.4 to 26.0.0

We moved to symfony mailer for 26. Unfortunately it looks like I've missed a check on the mail_smtpauthtype here. Since this param isn't used any longer, it also isn't passed from the config to the template, so setting it in the backend won't help after all.

Fix is linked above.

You can patch your instance via the instructions here if it's very intrusive to you to have that error message:
https://docs.nextcloud.com/server/latest/admin_manual/issues/applying_patch.html#patching-apps

@apg1980
Copy link
Author

apg1980 commented Mar 22, 2023

i am sorry, i am unable to understand the latest comment.
does a fix exists right now or not?

@miaulalala miaulalala self-assigned this Mar 22, 2023
@miaulalala miaulalala added 2. developing Work in progress and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Mar 22, 2023
@miaulalala miaulalala added this to the Nextcloud 26.0.1 milestone Mar 22, 2023
@miaulalala
Copy link
Contributor

i am sorry, i am unable to understand the latest comment. does a fix exists right now or not?

Yes, there is. You take this link: https://github.com/nextcloud/server/pull/37340.diff

download the file and follow the information in this link:

https://docs.nextcloud.com/server/latest/admin_manual/issues/applying_patch.html#patching-apps

on how to patch your instance. This will fix the issue. The fix itself will be released with 26.0.1.

@apg1980
Copy link
Author

apg1980 commented Mar 22, 2023

sorry i have patched my system, error still appears while hitting send mail

@apg1980
Copy link
Author

apg1980 commented Mar 22, 2023

i have reloadet nginx and cleared my cache, it does not send an mail, issue like descrived

@apg1980
Copy link
Author

apg1980 commented Mar 22, 2023

grafik

this still appears after the Patch.

@apg1980
Copy link
Author

apg1980 commented Mar 23, 2023

Iam sorry issue is still not solved.
no email notifications can be sent out.

@miaulalala
Copy link
Contributor

miaulalala commented Mar 23, 2023

grafik

this still appears after the Patch.

That looks like the settings are wrong somewhere. What's in your logs now after patching?

@apg1980
Copy link
Author

apg1980 commented Mar 23, 2023

nothing in the log.
i got this before the patch
`

| Undefined array key "mail_smtpauthtype" at /var/www/nextcloud/apps/settings/templates/settings/admin/additional-mail.php#132
-- | --

`

after raising debug level i got this:
Symfony\Component\Mailer\Exception\TransportException: Unable to connect with STARTTLS: stream_socket_enable_crypto(): Peer certificate CN=maymaildomain' did not match expected CN=10.10.20.10'

it seems it wants startls but i have not configured starttls

@sulfatchlorid
Copy link

I had to apply the fix from #37329 (comment) to be able to send emails.
No encryption or authentication on a private IP that can be reached internally only.
Please fix it in the next release. Btw. i am running the nextcloud docker container but map the html directory to the docker host.

@punkyard
Copy link

punkyard commented Jun 8, 2023

using port 25 and no login nor encryption is not an option for my config ..
I'm still blocked with the mail server.

@skjnldsv
Copy link
Member

skjnldsv commented Jun 8, 2023

@come-nc @miaulalala
It seems 25 without auth is still failing

@skjnldsv
Copy link
Member

skjnldsv commented Jun 8, 2023

@punkyard are you saying 25 without auth is NOT working for you?
Or that you do NOT want to use 25 without auth?

@punkyard
Copy link

hi @skjnldsv
I'm saying I'm not going to use port 25 without authentification.
Plus, port 25 is now closed, since robot attacks, which will typically use that port to do .. what ever they have to do ^^

@InFFOrmatik
Copy link

@come-nc @miaulalala It seems 25 without auth is still failing

I can confirm that the above mentioned workaround in the config does solve the problem for the "port 25/noauth"-case too.

Deric-W added a commit to Deric-W/home_network that referenced this issue Jun 20, 2023
@btakita
Copy link

btakita commented Jun 27, 2023

I was getting the error:

Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:0A000086:SSL routines::certificate verify failed

Enabling allow_self_signed works but would it not be more secure to use the cert provided by protonmail-bridge?

The cert can be obtained by running:

openssl s_client -starttls imap -connect 127.0.0.1:1143 -showcerts

See

https://stackoverflow.com/questions/57746821/getting-a-self-signed-certificate-error-with-protonbridge-and-mbsync

@danielepercivaldi
Copy link

I can confirm that version 26.0.3 does not fix the issue yet.

@unbranched
Copy link

I upgraded NC docker from 26.0.1 to 26.0.3 and the mail stopped working.
My setup is:

 'mail_smtpmode' => 'smtp',
 'mail_sendmailmode' => 'smtp',
 'mail_from_address' => 'name',
 'mail_domain' => 'prettydomain.com',
 'mail_smtphost' => 'xxx.prettydomain.com',
 'mail_smtpport' => '25',

I confirm too that the workaround by @MR-Welk solved the issue.

@danielepercivaldi
Copy link

I can confirm that version 26.0.4 does not fix the issue yet.

@dnviti
Copy link

dnviti commented Jul 27, 2023

I have the same problem with the patch in 26.0.1. But these parameters in config.php save my life and mail is now ok. The main difference is 'mail_smtpauth' => 0 instead of 'mail_smtpauth' => ''. 'mail_smtpmode' => 'smtp', 'mail_smtpauthtype' => '', 'mail_smtphost' => 'XXX.XXX.XXX.XXX', 'mail_smtpport' => '25', 'mail_smtptimeout' => 30, 'mail_sendmailmode' => 'smtp', 'mail_from_address' => 'no-reply', 'mail_domain' => 'mondomaine.fr', 'mail_send_plaintext_only' => false, 'mail_smtpauth' => 0, 'mail_smtpname' => '', 'mail_smtppassword' => '', 'mail_smtpstreamoptions' => array( 'ssl' => array( 'allow_self_signed' => true, 'verify_peer' => false, 'verify_peer_name' => false ) ),

'mail_smtpauthtype' => 0
It worked...
How in hell they passed a pull request with such a disruptive USELESS change?
It destroyed my shares workflow for 2 weeks and i had to contact all my users (500+ instance) and explain to everyone how to manually share with link (which also is missing user share traceability lowering security).
My boss also now wants to switch to onedrive cause of this problem.
Please try to pay more attention next time or you'll lose users...

@come-nc
Copy link
Contributor

come-nc commented Jul 27, 2023

I can confirm that version 26.0.4 does not fix the issue yet.

Can you clarify which issue you are talking about?
The error about an undefined value should be fixed.

Otherwise, there was behavior changes in the mail configuration due to changing the library we are using (not for fun but because it was needed for security and future development).

@danielepercivaldi
Copy link

danielepercivaldi commented Jul 27, 2023

Hello @come-nc .
If you set up email parameters as shown in figure, sending email fails. It starts working with configuration suggested by @MR-Welk .

Thanks.

image

@sheggy-rin
Copy link

I have same problem.
On Nextcloud 26.0.4, i'm getting error with the following settings
new
but, if i set up another server withoutt checkbox "authentication required" on same port, its worked
on Nextcloud 24, its ok
old

'mail_smtpdebug' => true also does not work

@come-nc
Copy link
Contributor

come-nc commented Jul 31, 2023

Hello @come-nc . If you set up email parameters as shown in figure, sending email fails. It starts working with configuration suggested by @MR-Welk .

You use localhost to connect to your mailserver and most likely your SSL certificate is not valid for localhost. Your mail server advertise support for STARTTLS and with the new library we use it is not possible to avoid it in this case. So either you need a certificate valid for localhost, or you need to use the domain matching the certificate instead of localhost, or you need to add the configuration suggested by MR-Welk which ignores SSL validation.
We could see about adding either a UI to support this configuration, or maybe force it for localhost and make it a special case, but that is a subject for another ticket, please open it if you want to follow on this subject.

I have same problem.
On Nextcloud 26.0.4, i'm getting error with the following settings

@sheggy-rin This is not the same problem, you are not using localhost and you say that using STARTTLS does work with your mailserver. I suspect it might be an encryption configuration which is not supported anymore by the new library but it might also be a bug, you can open a bug ticket on the subject if you need, but in this case provide as many details as possible, especially look if you get log entries related to the connection attempt in the logs. Maybe enable debug logging before attempting the connection to get more logs and disable it after.

@sheggy-rin
Copy link

sheggy-rin commented Jul 31, 2023

@come-nc, thank you for your answer
you're right, its not the same problem
i have resolved it, by changing the account password for email server
the new password contains only numbers and letters of different case. old pass contains -+()@&
I noticed that in nextcloud 26, the value of 'mail_smtppassword' is the plain text in config.php, and in nextcloud 24 it is password hash, not the plain text
maybe a problem with escaping metacharacters

@danielepercivaldi
Copy link

danielepercivaldi commented Aug 11, 2023

Hi @come-nc
I can confirm that after assigning an SSL certificate to the local mail server and using an FQDN in replacement of "localhost" sending email works.

Thanks.

@Baltimorepc
Copy link

i have this issue in the AIO V28 it was working fine before this 28 update

@ayoahha
Copy link

ayoahha commented Jun 22, 2024

Yes, so am i, same f**** issue with 29.0.0.2
Trying to solve since 2 days now

No reco here are functioning

In the logs (debug) i see :

TransportException
Connection could not be established with host "smtp.domain.com:587": stream_socket_client(): Unable to connect to smtp.domain.com:587 (Connection timed out)
Sending mail to "Array ( [address@gmail.com] => ncc_login ) " with subject ".........................." failed

I do not want to open 25 port
Tried also with 465, but no success

Can we reopen this please ?
Where can we find other logs ?

Here is my config.php file for email :

  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'info',
  'mail_domain' => 'domain.com',
  'mail_smtpport' => '587',
  'mail_smtphost' => 'smtp.domain.com',
  'mail_smtpstreamoptions' => 
  array (
    'ssl' => 
    array (
      'allow_self_signed' => true,
      'verify_peer' => false,
      'verify_peer_name' => false,
    ),
  ),
  'mail_smtptimeout' => 30,
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'info@domain.com',
  'mail_smtppassword' => 'PASSWD',
  'mail_smtpdebug' => true,
  'loglevel' => 0,

Many thanks for those who can help

@miaulalala
Copy link
Contributor

Yes, so am i, same f**** issue with 29.0.0.2 Trying to solve since 2 days now

No reco here are functioning

In the logs (debug) i see :

TransportException
Connection could not be established with host "smtp.domain.com:587": stream_socket_client(): Unable to connect to smtp.domain.com:587 (Connection timed out)
Sending mail to "Array ( [address@gmail.com] => ncc_login ) " with subject ".........................." failed

I do not want to open 25 port Tried also with 465, but no success

Can we reopen this please ? Where can we find other logs ?

Here is my config.php file for email :

  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'info',
  'mail_domain' => 'domain.com',
  'mail_smtpport' => '587',
  'mail_smtphost' => 'smtp.domain.com',
  'mail_smtpstreamoptions' => 
  array (
    'ssl' => 
    array (
      'allow_self_signed' => true,
      'verify_peer' => false,
      'verify_peer_name' => false,
    ),
  ),
  'mail_smtptimeout' => 30,
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'info@domain.com',
  'mail_smtppassword' => 'PASSWD',
  'mail_smtpdebug' => true,
  'loglevel' => 0,

Many thanks for those who can help

You've got a connection timeout, not a code issue. Can you PING the domain? Is port 578 open? Can you connect from any other client and send emails?

@Baltimorepc
Copy link

Baltimorepc commented Jun 25, 2024 via email

@SuperdukeGates
Copy link

SuperdukeGates commented Jun 26, 2024 via email

@Baltimorepc
Copy link

Baltimorepc commented Jun 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish 26-feedback bug pending documentation This pull request needs an associated documentation update
Projects
None yet
Development

Successfully merging a pull request may close this issue.