-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
8000
[Mime] Line endings not correct when using S/MIME and Linux #36398
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
Labels
Comments
/cc @sstok maybe? |
But there is no way to use this constant directly in PHP (gotta love the OpenSSL extension). |
Just tried and can confirm that it is working with the change from this commit. |
fabpot
added a commit
that referenced
this issue
Apr 17, 2020
This PR was merged into the 5.0 branch. Discussion ---------- [Mime] Ensure proper line-ending for SMIME | Q | A | ------------- | --- | Branch? | 5.0 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #36398 | License | MIT | Doc PR | Commits ------- 5e3ccc2 [Mime] Ensure proper line-ending for SMIME
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 5.0+
Description
When sending mails using the symfony mailer the line endings in the message to the mailserver are missing the carriage return if S/MIME encryption is used on a linux server.
I've prepared four examples of what gets send to the mailserver:
Because of the wrong endings sending huge files leads to the following error:
PHP Fatal error: Uncaught Symfony\Component\Mailer\Exception\TransportException: Expected response code "250" but got code "501", with message "501 Syntax error - line too long". in /example/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php:298
How to reproduce
The Problem will occur always when sending an S/MIME encrypted Mail like this:
The wrong line endings are also present without an attachment but the server error will occure only if the message is long enough to exceed the maximal line length.
Possible Solution
Fix the line endings in S/MIME encrypted messages.
Additional Information
It is working using Swiftmailer on the same systems so I would conclude the error is in the mailer component and not in openssl or any other system.
The text was updated successfully, but these errors were encountered: