Hi, I am trying to use alternative mail drivers. The reason is that I don't want my server to handle the emails and that management is done by an external SMTP service. This way I save resources/performance.
The problem is that no possible SMTP configuration works. I've read practically all the help threads on Flarum, and nothing works, neither removing the encryption, nor writing the encryption in lowercase, nor using GMAIL or third party services... And yes, if I use the external SMTP settings in WordPress or a Mautic installation, it works without problems. My forum can only send mails if I use the "mail" driver, if I switch to any other it will always give an error, regardless of the settings I use.
I leave the output from flarum.
Flarum core: 1.8.1
PHP version: 8.1.21
MySQL version: 5.7.42
Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, json, iconv, intl, SPL, mbstring, session, standard, exif, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, mysqli, SimpleXML, soap, sockets, sodium, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, redis, Zend OPcache
+----------------------------------------+---------+--------+
| Flarum Extensions | | |
+----------------------------------------+---------+--------+
| ID | Version | Commit |
+----------------------------------------+---------+--------+
| flarum-flags | v1.8.0 | |
| flarum-approval | v1.8.0 | |
| askvortsov-auto-moderator | v0.1.2 | |
| flarum-likes | v1.8.0 | |
| flarum-tags | v1.8.0 | |
| flarum-suspend | v1.8.0 | |
| flarum-subscriptions | v1.8.0 | |
| antoinefr-money | v1.3.1 | |
| flarum-lock | v1.8.0 | |
| flarum-markdown | v1.8.0 | |
| afrux-forum-widgets-core | v0.1.7 | |
| fof-oauth | 1.3.1 | |
| fof-byobu | 1.3.1 | |
| ianm-level-ranks | 1.1.0 | |
| fof-follow-tags | 1.1.7 | |
| fof-polls | 1.4.2 | |
| fof-merge-discussions | 1.4.0 | |
| fof-masquerade | 2.1.3 | |
| ziiven-money-leaderboard | v0.1.6 | |
| zerosonesfun-composer-preview | 1.1.9 | |
| yohtozze-markdown-paste | 1.1.0 | |
| v17development-seo | v1.8.0 | |
| v17development-blog | v0.6.5 | |
| therealsujitk-gifs | v4.1.1 | |
| the-turk-flamoji | 1.0.4 | |
| rob006-last-post-avatar | 1.2.4 | |
| nearata-twofactor | v2.2.0 | |
| nearata-related-discussions | 1.4.0 | |
| nearata-login-notification | 1.0.0 | |
| michaelbelgium-discussion-views | v7.2.1 | |
| matteocontrini-imgur-upload | v3.9.1 | |
| matteociaroni-public-suspensions | v1.0.0 | |
| malago-ads | 0.3.2 | |
| justoverclock-guestengagement | 1.0.3 | |
| justoverclock-custom-html-widget | 0.1.4 | |
| justoverclock-be-active-user-indicator | 0.1.0 | |
| ianm-syndication | 1.3.1 | |
| ianm-log-viewer | 0.1.1 | |
| ianm-html-head | 1.1.0 | |
| glowingblue-redis-setup | 1.2.0 | |
| fof-sitemap | 1.0.3 | |
| fof-recaptcha | 1.1.1 | |
| fof-pages | 1.0.5 | |
| fof-nightmode | 1.5.1 | |
| fof-moderator-notes | 1.2.0 | |
| fof-links | 1.1.4 | |
| fof-linguist | 1.1.1 | |
| fof-ignore-users | 1.2.0 | |
| fof-html-errors | 1.1.1 | |
| fof-forum-statistics-widget | 1.1.0 | |
| fof-formatting | 1.0.3 | |
| fof-drafts | 1.2.2 | |
| fof-cookie-consent | 1.1.1 | |
| fof-best-answer | 1.2.5 | |
| fof-ban-ips | 1.0.3 | |
| flarumtr-mobile-search | v1.2 | |
| flarum-sticky | v1.8.0 | |
| flarum-statistics | v1.8.0 | |
| flarum-nicknames | v1.8.0 | |
| flarum-mentions | v1.8.0 | |
| flarum-lang-spanish | 1.6.0 | |
| flarum-emoji | v1.8.0 | |
| flarum-bbcode | v1.8.0 | |
| ecnu-im-sticky-sidenav | v1.1.0 | |
| davwheat-share | v1.1.0 | |
| davwheat-custom-sidenav-links | 1.0.1 | |
| davwheat-ads | 1.2.0 | |
| datlechin-title-length | v0.1.1 | |
| datlechin-link-preview | v1.3.2 | |
| datlechin-add-like-controls | v1.0.6 | |
| darkle-fancybox | 1.1.2 | |
| clarkwinkelmann-vote-with-money | 1.0.0 | |
| clarkwinkelmann-shadow-ban | 1.1.0 | |
| clarkwinkelmann-roll-die | 1.0.0 | |
| clarkwinkelmann-post-bookmarks | 1.0.0 | |
| clarkwinkelmann-likes-received | 1.0.2 | |
| clarkwinkelmann-circle-groups | 1.0.1 | |
| clarkwinkelmann-author-change | 1.0.3 | |
| blomstra-usercard-stats | 0.1.2 | |
| blomstra-flag-duplicates | 0.1.8 | |
| askvortsov-moderator-warnings | v0.6.1 | |
| afrux-asirem | v0.1.8 | |
| acpl-mobile-tab | 1.1.1 | |
| acpl-lscache | v2.2.0 | |
+----------------------------------------+---------+--------+
Base URL: https://foro.es
Installation path: /home/foro/domains/foro.es/public_html
Queue driver: sync
Session driver: file
Scheduler status: Inactive
Mail driver: mail
Debug mode: off
The console does not throw any relevant error. And the logs don't show anything useful:
[2023-08-11 17:43:03] flarum.ERROR: Symfony\Component\Filesystem\Exception\IOException: Cannot rename "/home/foroes/domains/foro.es/public_html/storage/locale/catalogue.es.8Fea9HX.phpAqRUbm" to "/home/foroes/domains/foro.es/public_html/storage/locale/catalogue.es.8Fea9HX.php": rename(/home/foroes/domains/foro.es/public_html/storage/locale/catalogue.es.8Fea9HX.phpAqRUbm,/home/foroes/domains/foro.es/public_html/storage/locale/catalogue.es.8Fea9HX.php): No such file or directory in /home/foroes/domains/foro.es/public_html/vendor/symfony/filesystem/Filesystem.php:293
Stack trace:
#0 /home/foroes/domains/foro.es/public_html/vendor/symfony/filesystem/Filesystem.php(660): Symfony\Component\Filesystem\Filesystem->rename()
#1 /home/foroes/domains/foro.es/public_html/vendor/symfony/config/ResourceCheckerConfigCache.php(123): Symfony\Component\Filesystem\Filesystem->dumpFile()
#2 /home/foroes/domains/foro.es/public_html/vendor/symfony/translation/Translator.php(333): Symfony\Component\Config\ResourceCheckerConfigCache->write()
#3 /home/foroes/domains/foro.es/public_html/vendor/symfony/translation/Translator.php(298): Symfony\Component\Translation\Translator->dumpCatalogue()
#4 /home/foroes/domains/foro.es/public_html/vendor/symfony/config/ConfigCacheFactory.php(42): Symfony\Component\Translation\Translator->Symfony\Component\Translation\{closure}()
#5 /home/foroes/domains/foro.es/public_html/vendor/symfony/translation/Translator.php(299): Symfony\Component\Config\ConfigCacheFactory->cache()
#6 /home/foroes/domains/foro.es/public_html/vendor/symfony/translation/Translator.php(270): Symfony\Component\Translation\Translator->initializeCacheCatalogue()
#7 /home/foroes/domains/foro.es/public_html/vendor/symfony/translation/Translator.php(241): Symfony\Component\Translation\Translator->loadCatalogue()
#8 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Locale/Translator.php(44): Symfony\Component\Translation\Translator->getCatalogue()
#9 /home/foroes/domains/foro.es/public_html/vendor/symfony/translation/Translator.php(207): Flarum\Locale\Translator->getCatalogue()
#10 /home/foroes/domains/foro.es/public_html/vendor/flarum/bbcode/src/Render.php(29): Symfony\Component\Translation\Translator->trans()
#11 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Foundation/ContainerUtil.php(30): Flarum\BBCode\Render->__invoke()
#12 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Formatter/Formatter.php(121): Flarum\Foundation\ContainerUtil::Flarum\Foundation\{closure}()
#13 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Post/CommentPost.php(176): Flarum\Formatter\Formatter->render()
#14 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Api/Serializer/BasicPostSerializer.php(63): Flarum\Post\CommentPost->formatContent()
#15 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Api/Serializer/AbstractSerializer.php(88): Flarum\Api\Serializer\BasicPostSerializer->getDefaultAttributes()
#16 /home/foroes/domains/foro.es/public_html/vendor/sycho/json-api/src/Resource.php(183): Flarum\Api\Serializer\AbstractSerializer->getAttributes()
#17 /home/foroes/domains/foro.es/public_html/vendor/sycho/json-api/src/Resource.php(81): Tobscure\JsonApi\Resource->getAttributes()
#18 /home/foroes/domains/foro.es/public_html/vendor/sycho/json-api/src/Document.php(194): Tobscure\JsonApi\Resource->toArray()
#19 [internal function]: Tobscure\JsonApi\Document->Tobscure\JsonApi\{closure}()
#20 /home/foroes/domains/foro.es/public_html/vendor/sycho/json-api/src/Document.php(193): array_map()
#21 /home/foroes/domains/foro.es/public_html/vendor/sycho/json-api/src/Document.php(232): Tobscure\JsonApi\Document->toArray()
#22 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Api/JsonApiResponse.php(27): Tobscure\JsonApi\Document->jsonSerialize()
#23 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(139): Flarum\Api\JsonApiResponse->__construct()
#24 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractSerializeController->handle()
#25 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
#26 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ExecuteRoute->process()
#27 /home/foroes/domains/foro.es/public_html/vendor/acpl/flarum-lscache/src/Abstract/PurgeMiddleware.php(28): Laminas\Stratigility\Next->handle()
#28 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): ACPL\FlarumCache\Abstract\PurgeMiddleware->process()
#29 /home/foroes/domains/foro.es/public_html/vendor/acpl/flarum-lscache/src/Abstract/PurgeMiddleware.php(28): Laminas\Stratigility\Next->handle()
#30 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): ACPL\FlarumCache\Abstract\PurgeMiddleware->process()
#31 /home/foroes/domains/foro.es/public_html/vendor/acpl/flarum-lscache/src/Abstract/PurgeMiddleware.php(28): Laminas\Stratigility\Next->handle()
#32 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): ACPL\FlarumCache\Abstract\PurgeMiddleware->process()
#33 /home/foroes/domains/foro.es/public_html/vendor/acpl/flarum-lscache/src/Middleware/LSTagsMiddleware.php(16): Laminas\Stratigility\Next->handle()
#34 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): ACPL\FlarumCache\Middleware\LSTagsMiddleware->process()
#35 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#36 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\ThrottleApi->process()
#37 /home/foroes/domains/foro.es/public_html/vendor/acpl/flarum-lscache/src/Middleware/LSCacheControlMiddleware.php(28): Laminas\Stratigility\Next->handle()
#38 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): ACPL\FlarumCache\Middleware\LSCacheControlMiddleware->process()
#39 /home/foroes/domains/foro.es/public_html/vendor/acpl/flarum-lscache/src/Middleware/VaryCookieMiddleware.php(35): Laminas\Stratigility\Next->handle()
#40 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): ACPL\FlarumCache\Middleware\VaryCookieMiddleware->process()
#41 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(36): Laminas\Stratigility\Next->handle()
#42 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\CheckCsrfToken->process()
#43 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(69): Laminas\Stratigility\Next->handle()
#44 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ResolveRoute->process()
#45 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
#46 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\SetLocale->process()
#47 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(58): Laminas\Stratigility\Next->handle()
#48 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#49 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()
#50 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithSession->process()
#51 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#52 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\RememberFromCookie->process()
#53 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#54 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\StartSession->process()
#55 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#56 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\FakeHttpMethods->process()
#57 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#58 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ParseJsonBody->process()
#59 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#60 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\HandleErrors->process()
#61 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()
#62 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\InjectActorReference->process()
#63 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
#64 /home/foroes/domains/foro.es/public_html/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#65 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\RequestHandler->process()
#66 /home/foroes/domains/foro.es/public_html/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
#67 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePathRouter->process()
#68 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()
#69 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Laminas\Stratigility\Middleware\OriginalMessages->process()
#70 /home/foroes/domains/foro.es/public_html/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
#71 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePath->process()
#72 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
#73 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ProcessIp->process()
#74 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
#75 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(64): Laminas\Stratigility\MiddlewarePipe->process()
#76 /home/foroes/domains/foro.es/public_html/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(73): Laminas\Stratigility\MiddlewarePipe->handle()
#77 /home/foroes/domains/foro.es/public_html/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#78 /home/foroes/domains/foro.es/public_html/index.php(26): Flarum\Http\Server->listen()
#79 {main}
I had thought of installing php mailer in my Flarum installation (I don't know if this is possible) and have the mails sent from there.