Have a synology/portainer/docker/Nextcloud installation 6 (27.1.3)
I have a problem to setup Email server in Basic settings.
Always running into error message:
A problem occurred while sending the email. Please revise your settings. (Error: Email could not be sent. Check your mail server log)
Tried with gmail and yahoo address. Both accounts 2-factor authorized.
Meaning created passwords and use it in the credential part.
Found in the docs that setting
āmail_smtpdebugā => true,
in config/config.php would give some details about the problem.
Logged in and set the parameter.
Verified also the credentials in there entered via GUI.
But the GUI does not show anything at all.
Any advice how to proceed would be appreciated.
Thank you
Iām having the same issue. Iāve done this a million times without error. I needed to recreate my nextcloud docker container and now I am mystified. Iām using a gmail account (tried non gmail and no go).
GMail needs to be enabled for remote clients in the Google account for security reason.
Please alo check, whether really SSL-encryption will be needed, or TLS is required.
The access of non-ācertifiedā mail clients will be disabled by Google after several weeks or months and needs to be re-enabled manually in the Google account again.
Did not help. Iām not trying to setup an email client. Iāve been using nextcloud since version 12 and never had this problem, why this issue started I have no idea.
Nextcloud sends itās emails the same way an email client does.
A likely issue might be your docker container is missing some CAās or the container is seeing the wrong IP address and canāt verify the STARTTLS cert. Add this to your config and verify:
Itās not your cert itās ignoring errors on but the email servers. Give it a try before dismissing, For whatever reason itās possible for your nextcloud instance to be unable to verify the email serverās cert and so the TLS handshake fails. Iāve done this with a Microsoft exchange server in the past
[core] Debug: Symfony\Component\Mailer\Exception\TransportException: Expected response code ā250ā but got code ā550ā, with message ā550 Request failed; Mailbox unavailableā. at <>
/var/www/html/3rdparty/symfony/mailer/Transport/Smtp/SmtpTransport.php line 182
Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->assertResponseCode(ā550 Request fai ⦠nā, [250])
/var/www/html/3rdparty/symfony/mailer/Transport/Smtp/SmtpTransport.php line 235
Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->executeCommand(āMAIL FROM:\r\nā, [250])
/var/www/html/3rdparty/symfony/mailer/Transport/Smtp/SmtpTransport.php line 199
Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->doMailFromCommand(āMyEmailAddressā)
/var/www/html/3rdparty/symfony/mailer/Transport/AbstractTransport.php line 72
Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->doSend(["Symfony\Compo ⦠"])
/var/www/html/3rdparty/symfony/mailer/Transport/Smtp/SmtpTransport.php line 136
Symfony\Component\Mailer\Transport\AbstractTransport->send(["Symfony\Compo ⦠"], ["Symfony\Compo ⦠"])
/var/www/html/3rdparty/symfony/mailer/Mailer.php line 45
Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->send([āSymfony\Component\Mime\Emailā], null)
/var/www/html/lib/private/Mail/Mailer.php line 216
Symfony\Component\Mailer\Mailer->send([āSymfony\Component\Mime\Emailā])
/var/www/html/apps/settings/lib/Controller/MailSettingsController.php line 168
OC\Mail\Mailer->send([āOC\Mail\Messageā])
/var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230
OCA\Settings\Controller\MailSettingsController->sendTestMail()
/var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137
OC\AppFramework\Http\Dispatcher->executeController(["OCA\Settings\ ⦠"], āsendTestMailā)
/var/www/html/lib/private/AppFramework/App.php line 183
OC\AppFramework\Http\Dispatcher->dispatch(["OCA\Settings\ ⦠"], āsendTestMailā)
I checked Personal Settings. In there I used the yahoo email address.
In the Basic Settings Email Server settings I used the gmail address.
This happened because I tested with 2 mail addresses. After changing to gmail and recreation of a new app password everything works now. Thanks for your help.