--> somehow it has an old "state" of mail system
GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/11106 (Documentation of "use of the the built in php mailer is no longer supported"), https://github.com/nextcloud/server/issues/2577 (PHP 7.1 support), https://github.com/nextcloud/server/issues/2506 (Do not upgrade if PHP version is not supported by new version), https://github.com/nextcloud/server/issues/2474 (Upgrade PHP-opencloud to support Swift DLO), and https://github.com/nextcloud/server/issues/8210 (Document support for PHP 7.2 in Changelog).
@tobiasKaminsky Is send mode PHP deprecated or not working in nc 14?
I'm just asking because the nc14 docs don't mention anything about PHP being deprecated or removed.
Removed by upstream (swiftmailer dropped support for PHP transport). Here is the related pr https://github.com/nextcloud/server/pull/9791 and it's also mentioned in https://github.com/nextcloud/server/issues/7827 but the issue for updating docs is still open https://github.com/nextcloud/documentation/issues/787
@danielkesselberg Thx for the info.
is there another way to get rid of this message, docs suggest encryption can't be reversed if a user would create a file in the meantime
The encryption you linked has nothing to do with email, but it about encrypting the files stored on server.
To get rid of this message, you would have to a different email system than PHP.
This issue is about a false positive message that is shown even if SMTP is used.
i already have smtp setup from the older versions but now the error is shown and i just want to get rid of it as you described in you first post
I already have smtp setup from the older versions, but now the error is displayed and i just want to get rid of it, as you described in your first post
SMTP definitely does not work
For me SMTP is working. This issue is only about the misleading warning.
If you experience a real problem with SMTP, then please open up a new issue.
I had the same isse, with the misleading error message although SMTP was already set in the admin settings interface (since NC12).
Check your config.php file for the value
mail_smtpmode
mine was still set to "_php_" as the updater did not change it automatically to "_smtp_"
After setting it manually to "_smtp_" the error message was gone.
Can we get this prioritized for 14.0.2?
I've just tested this with the snap and adding a config file like this:
$ cat /var/snap/nextcloud/current/nextcloud/config/email.config.php
<?php
$CONFIG = array (
'mail_smtpmode' => ''
);
Makes the warning go away.
Could it be that the check to see if mail_smtpmode is still php implemented in https://github.com/nextcloud/server/commit/6a0c54d5bfd70baeed2438ac05278a9b4cb73d88 also triggers when the variable mail_smtpmode is not set at all @rullzer ?
Maybe something similar to this should be done:
To check if the variable is set before doing the comparison.
I was wondering what the status of this issue is (Is anyone working on this? Scheduled for 14.02?). The last update was 2 weeks ago and this is currently blocking Nextcloud 14 for SNAP users.
Thanks all! I don't mean to sound pushy, just wanting to make sure this isn't forgotten about. :)
Could it be that the check to see if
mail_smtpmodeis stillphpimplemented in 6a0c54d also triggers when the variablemail_smtpmodeis not set at all @rullzer ?
Yes (the second argument is the default value returned when nothing defined).
@pachulo @fishscene Do you run nextcloud without mail?
Do you run nextcloud without mail?
I doubt it. Putting my own words in their mouth, I think what they're driving at is that this big warning is the _default experience_ once someone installs Nextcloud for the first time. We try to streamline that flow in the snap as much as possible, and this gets in the way. We've already received bug reports about it, and we haven't even released it!
I agree with you that the warning is misleading. When i select either smtp or sendmail the message is gone. Just to be safe this is working for you? Then i would suggest to change https://github.com/nextcloud/server/blob/6a0c54d5bfd70baeed2438ac05278a9b4cb73d88/settings/Controller/CheckSetupController.php#L527 to $this->config->getSystemValue('mail_smtpmode') and things should work.
@danielkesselberg indeed, that patch removes the warning upon initial install, and email still works with it. Would you like to propose it, or shall I?
Would you like to propose it, or shall I?
Do it 馃憤
Well, I've created a PR with the proposed fix by @danielkesselberg ! Comments are very welcome!!