-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
Mailhog doesn't work with TYPO3 ddev configuration #924
Comments
Assigning over to @andrewfrench to help verify the pre/post behavior. Two things jumped out to me. One is that logging into a webhead and running |
I can confirm the issue on a fresh install of TYPO3 v9.3.0 using ddev v0.19.0:
|
@andrewfrench. Excellent! With the applied change can we confirm capture and that it’s not sent externally? If so we are probably safe to pull. Thanks! |
Yep, testing that now. |
I don't believe this would have anything to do with TYPO3, all uses of mailhog should be broken given this situation. |
I only can say that it works with parameter (and the mail was in MailHog), without it didn't work. |
I just tested I suspect that TYPO3 is configured to use sendmail directly, rather than using PHP? We may be dealing with a TYPO3 bug here. It's also reasonable to try using the mhsendmail utility suggested/provided with mailhog, https://github.com/mailhog/MailHog/blob/master/README.md I'm not objecting to the strategy here, just trying to make sure we completely understand and fix the right thing. If there's a TYPO3 bug, let's fix that. |
In my fresh installed TYPO3 v9 Installation I have to set this 2 settings in "Admin Tools" -> "Settings" -> "Configure Installation-Wide Options" to get the Testmail working: |
Copied from #925 (comment) Very thoughtful response from @jigal in slack:
Edit: Links to follow up on this: |
I just had this issue with TYPO3 v12. |
@DavidBruchmann it would be cool if you'd just do a quick install of generic TYPO3 quickstart and test. I think you'll find it works. https://ddev.readthedocs.io/en/latest/users/quickstart/#typo3 |
@rfay It was a single case and never ever had problems with it, so in general I can confirm that by default it's working. |
TYPO3 12 and Mailproblem Workaround I got this problem with a fresh DDEV Container and TYPO3 12 at trying to send a testmail: Error message: Connection could not be established with host "ssl://localhost:1025": stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number Setting this configuration to "false" and the testmail should work now:
Somthing to Explain about these option: Connect to the server using SSL/TLS (disables STARTTLS which is used by default if supported by the server). Must not be enabled when connecting to port 587, as servers will use STARTTLS (inner encryption) via SMTP instead of SMTPS. It will automatically be enabled if port is 465. This is only for your local development required and should be never used at production systems! |
The default configuration already has that, and has for some time, probably years, see https://github.com/drud/ddev/blob/master/pkg/ddevapp/typo3/AdditionalConfiguration.php#L34 You must not be using the If you think there's a problem with how this is working please open a new issue, but it looks to me like the traditional config is exactly correct? |
Thanks for reply then i guess this is the same Problem like David with the AdditionalConfiguration and i have to dive deeper here 😸 |
@ecosmox36 just for the case that you use already TYPO3 v12: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Breaking-98319-NewFileLocationForLocalConfigurationphpAndAdditionalConfigurationphp.html |
@DavidBruchmann talking about the Topic in the typo3 slack channel, now i know the config files have moved and renamed, reading the doc some Minutes before 😄 And my DDEV Container was 1.21.1 but there was a Release 3 days Ago with TYPO3 v12 Support So i will try it with the latest release again Thanks and many thanks to @rfay also for this great solution |
talked to @gilbertsoft! We will wait until the TYPO3 v12 will be released as LTS stable version. There might come some more changes in the TYPO3 core. Workaround for using TYPO3 12.x in DDEV: I also add the link to the cause for the sendmail config "error": https://github.com/symfony/mailer/blob/6.2/Transport/SendmailTransport.php#L57 |
another reference: mailhog/mhsendmail#22 |
Describe the bug
TYPO3 in its basic configuration cannot send test mails due to an error in the sendmail command:
/usr/local/bin/mailhog sendmail test@example.org --smtp-addr 127.0.0.1:1025
To Reproduce
Steps to reproduce the behavior:
/typo3/install.php
)Environment
Test Mail Setup
Something went wrong
, in the TYPO3 logUncaught TYPO3 Exception: Unsupported sendmail command flags [/usr/local/bin/mailhog sendmail test@example.org --smtp-addr 127.0.0.1:1025]. Must be one of "-bs" or "-t" but can include additional flags.
Expected behavior
It should send an email.
Screenshots
If applicable, add screenshots to help explain your problem.
Version and configuration information (please complete the following information):
docker version
) and insert it here.ddev version
)The text was updated successfully, but these errors were encountered: