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]: SMTP Debug mode seem not to work in 26 // "mail_smtpdebug" option ignored #11082
Comments
I can't get SMTP email working at all using the latest version of Nextcloud with PHP 8.2: occ status --output=json | jq {
"installed": true,
"version": "26.0.1.1",
"versionstring": "26.0.1",
"edition": "",
"maintenance": false,
"needsDbUpgrade": false,
"productname": "Nextcloud",
"extendedSupport": false
} The server accepts unauthenticated email to port 25 on {
"mail_sendmailmode": "smtp",
"mail_smtpauth": "False",
"mail_smtpauthtype": "",
"mail_smtpdebug": true,
"mail_smtphost": "localhost",
"mail_smtpmode": "smtp",
"mail_smtpname": "",
"mail_smtppassword": "",
"mail_smtpport": 25,
"mail_smtpsecure": ""
} However the "Send email" click results in:
And in the Apache log a
Nothing in the PHP log and nothing in the
So it looks like something happens but no mail is sent. However if I use these settings: {
"mail_sendmailmode": "smtp",
"mail_smtpauth": "False",
"mail_smtpauthtype": "",
"mail_smtpdebug": true,
"mail_smtphost": "localhost",
"mail_smtpmode": "sendmail",
"mail_smtpname": "",
"mail_smtppassword": "",
"mail_smtpport": 25,
"mail_smtpsecure": ""
} The
And the email is sent. I'd like to solve this if possible as I don't really want to switch sites from using SMTP to sendmail as I upgrade them, however for now that appears to be the only option. I did try installing a few PHP mail packages but that made no difference: aptitude search php | grep -i mail | grep ^i
i A php-email-validator - A library for validating emails against several RFCs
i php-mail - Class that provides multiple interfaces for sending emails
i php-mail-mime - PHP PEAR module for creating MIME messages
i php-swiftmailer - Swiftmailer, free feature-rich PHP mailer
i php-symfony-mailer - help sending emails |
Same issue here, installed manually on our server. All the upgrades since OC (maybe 5 years before) was seamless on the mails side. |
Same issue here, email broke after updating |
Yeah, but it did not help at all. |
Thanks for your bug report 👍 The relevant change from 25 to 27 is that we replaced Swift Mailer with Symfony Mailer. Please check the other issues for troubleshooting tips: nextcloud/server#37329 |
In addition to setting |
Bug description
I try to set up my SMTP email server, but currently running into some issues. The test mail on the configuration page cannot be sent. I tried lots of different configurations for the mail settings, but the error message always re-appears.
However, when I try to investigate the exact problem, it would be great if I had some further information. I set the
"mail_smtpdebug" => true,
option in order to retain more detailed information.
Documentation says that debugging messages should be displayed on the Shame configuration page, where one can trigger the test mail. Also, there is nothing related in the PHP logs (except for a PHP error in the temnplate file
/apps/settings/templates/settings/admin/additional-mail.php
"Undefined array key 'mail_smtpathtype' -- but I don't think this is related to the main problem though)Steps to reproduce
mail_smtpdebug
Expected behavior
Detailled information is shown - either on screen or in the logs
Installation method
Community Web installer on a VPS or web space
Nextcloud Server version
26
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: